Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 114.6 kB / 17.7 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001079, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009932/0.0009933, allocations: 50.78 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09747/0.09848, allocations: 49.44 MB / 351.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004068/0.1026, allocations: 2.862 MB / 354.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.1039, allocations: 0.7322 MB / 355.1 MB, free: 104 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.104, allocations: 4 kB / 355.1 MB, free: 100 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.1042, allocations: 51.5 kB / 355.2 MB, free: 48 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001856/0.1044, allocations: 91.25 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.1047, allocations: 99.69 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003493/0.1051, allocations: 374.3 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002182/0.1053, allocations: 131.2 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.1054, allocations: 135.5 kB / 356 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001891/0.1056, allocations: 159.3 kB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.388e-05/0.1057, allocations: 32 kB / 356.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.367e-05/0.1057, allocations: 31.94 kB / 356.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.098e-05/0.1058, allocations: 67.77 kB / 356.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.106, allocations: 163.2 kB / 356.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003356/0.1063, allocations: 366.7 kB / 356.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1063, allocations: 0 / 356.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1063, allocations: 0 / 356.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1063, allocations: 0 / 356.8 MB, free: 14.42 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009516/0.1073, allocations: 0.6018 MB / 357.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.1073, allocations: 8.031 kB / 357.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.695e-05/0.1074, allocations: 36.56 kB / 357.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.1078, allocations: 276.8 kB / 357.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.731e-05/0.1079, allocations: 76.62 kB / 357.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.8e-05/0.1079, allocations: 28.38 kB / 357.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004471/0.1084, allocations: 301.8 kB / 358.1 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1084, allocations: 4 kB / 358.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.1084, allocations: 8 kB / 358.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.1084, allocations: 8 kB / 358.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003264/0.1088, allocations: 194.1 kB / 358.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001538/0.1103, allocations: 1.119 MB / 359.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002866/0.1106, allocations: 165.1 kB / 359.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.1108, allocations: 84.83 kB / 359.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.1108, allocations: 4 kB / 359.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002346/0.111, allocations: 149.8 kB / 359.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.745e-06/0.111, allocations: 0 / 359.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009538/0.112, allocations: 396.7 kB / 360.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.1121, allocations: 106.8 kB / 360.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/0.1123, allocations: 221 kB / 360.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.1123, allocations: 33.7 kB / 360.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.1125, allocations: 176.1 kB / 360.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.43e-05/0.1125, allocations: 75 kB / 360.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.335e-05/0.1126, allocations: 61.69 kB / 360.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1127, allocations: 330.8 kB / 361.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.1129, allocations: 67.97 kB / 361.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/0.113, allocations: 140.6 kB / 361.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.1133, allocations: 190 kB / 361.6 MB, free: 9.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1133, allocations: 4 kB / 361.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004137/0.1137, allocations: 276.3 kB / 361.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.1137, allocations: 11.98 kB / 361.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1138, allocations: 0 / 361.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002493/0.114, allocations: 61.03 kB / 361.9 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.1142, allocations: 51.92 kB / 362 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.1156, allocations: 1.564 MB / 363.5 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/0.1158, allocations: 39.67 kB / 363.6 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.1158, allocations: 12.09 kB / 363.6 MB, free: 7.094 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001507/0.116, allocations: 153.7 kB / 363.7 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.357e-05/0.116, allocations: 23.72 kB / 363.7 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.482e-05/0.1161, allocations: 22.19 kB / 363.8 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1161, allocations: 0 / 363.8 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.1161, allocations: 0 / 363.8 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1161, allocations: 7.984 kB / 363.8 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002995/0.1164, allocations: 317.4 kB / 364.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.1164, allocations: 4 kB / 364.1 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.1166, allocations: 31.92 kB / 364.1 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001745/0.1168, allocations: 48.81 kB / 364.2 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.1168, allocations: 4 kB / 364.2 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001051/0.1179, allocations: 1.426 MB / 365.6 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.1179, allocations: 8.062 kB / 365.6 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005694/0.1185, allocations: 323 kB / 365.9 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.081e-05/0.1186, allocations: 124.6 kB / 366 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/0.1186, allocations: 8 kB / 366.1 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.1188, allocations: 16.05 kB / 366.1 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.371e-05/0.1189, allocations: 31.95 kB / 366.1 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.1189, allocations: 4 kB / 366.1 MB, free: 4.324 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001285/0.119, allocations: 164.5 kB / 366.3 MB, free: 4.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.119, allocations: 0 / 366.3 MB, free: 4.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003392/0.1194, allocations: 79.84 kB / 366.3 MB, free: 4.086 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001064/0.1195, allocations: 99.25 kB / 366.4 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004855/0.12, allocations: 294.4 kB / 366.7 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.12, allocations: 4 kB / 366.7 MB, free: 3.676 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002516/0.1203, allocations: 192.7 kB / 366.9 MB, free: 3.477 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.1205, allocations: 44.02 kB / 367 MB, free: 3.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/0.1219, allocations: 0.6552 MB / 367.6 MB, free: 2.754 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.1222, allocations: 0.7597 MB / 368.4 MB, free: 1.965 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.198e-05/0.1223, allocations: 18.3 kB / 368.4 MB, free: 1.949 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.64e-05/0.1224, allocations: 27.44 kB / 368.4 MB, free: 1.922 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1224, allocations: 0 / 368.4 MB, free: 1.922 MB / 302.1 MB Notification: Performance of Templates: time 0.1411/0.2635, allocations: 3.039 MB / 371.5 MB, free: 25.02 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches