Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 108.6 kB / 17.93 MB, free: 5.656 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.001158/0.001158, allocations: 193.8 kB / 18.86 MB, free: 4.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.1 MB / 224.7 MB, free: 12.48 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 43.94 kB / 280.8 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09635/0.09771, allocations: 46.64 MB / 327.4 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005043/0.1028, allocations: 3.142 MB / 330.6 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.1045, allocations: 0.7721 MB / 331.3 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00037/0.1049, allocations: 8 kB / 331.4 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000299/0.1052, allocations: 47.61 kB / 331.4 MB, free: 0.793 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003649/0.1056, allocations: 83.31 kB / 331.5 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004631/0.1061, allocations: 99.84 kB / 331.6 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005345/0.1066, allocations: 414.1 kB / 332 MB, free: 212 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002663/0.1069, allocations: 139.7 kB / 332.1 MB, free: 72 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002211/0.1072, allocations: 155.4 kB / 332.3 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002035/0.1074, allocations: 179.2 kB / 332.4 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.238e-05/0.1074, allocations: 32 kB / 332.5 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.779e-05/0.1075, allocations: 36 kB / 332.5 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.024e-05/0.1076, allocations: 75.77 kB / 332.6 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.1078, allocations: 191 kB / 332.8 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003118/0.1081, allocations: 319.5 kB / 333.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1081, allocations: 0 / 333.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1081, allocations: 0 / 333.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.1081, allocations: 0 / 333.1 MB, free: 15.1 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001036/0.1092, allocations: 0.6548 MB / 333.7 MB, free: 14.39 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.1092, allocations: 11.89 kB / 333.8 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.945e-05/0.1093, allocations: 44.5 kB / 333.8 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.1097, allocations: 281.1 kB / 334.1 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.041e-05/0.1098, allocations: 80.61 kB / 334.2 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.608e-05/0.1098, allocations: 32.38 kB / 334.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005529/0.1104, allocations: 342.8 kB / 334.5 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.1104, allocations: 0 / 334.5 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.701e-05/0.1104, allocations: 16 kB / 334.5 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1105, allocations: 8 kB / 334.5 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004009/0.1109, allocations: 218.5 kB / 334.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.1127, allocations: 1.364 MB / 336.1 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.113, allocations: 174.5 kB / 336.3 MB, free: 11.67 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000195/0.1132, allocations: 88.77 kB / 336.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.1133, allocations: 4 kB / 336.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003636/0.1136, allocations: 165.8 kB / 336.5 MB, free: 11.39 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.1136, allocations: 0 / 336.5 MB, free: 11.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001083/0.1147, allocations: 395.1 kB / 336.9 MB, free: 10.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.1148, allocations: 114.8 kB / 337 MB, free: 10.84 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002405/0.1151, allocations: 258.6 kB / 337.3 MB, free: 10.58 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.1151, allocations: 29.7 kB / 337.3 MB, free: 10.55 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.1152, allocations: 203.9 kB / 337.5 MB, free: 10.34 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.882e-05/0.1153, allocations: 74.98 kB / 337.6 MB, free: 10.27 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.388e-05/0.1154, allocations: 58.03 kB / 337.7 MB, free: 10.21 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1155, allocations: 342.8 kB / 338 MB, free: 9.863 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001543/0.1157, allocations: 80.61 kB / 338.1 MB, free: 9.785 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.1159, allocations: 181.4 kB / 338.2 MB, free: 9.566 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003393/0.1163, allocations: 239.6 kB / 338.5 MB, free: 9.297 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1163, allocations: 3.938 kB / 338.5 MB, free: 9.293 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006344/0.1169, allocations: 343.4 kB / 338.8 MB, free: 8.949 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.1169, allocations: 8 kB / 338.8 MB, free: 8.941 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.117, allocations: 4 kB / 338.8 MB, free: 8.938 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002566/0.1172, allocations: 57.09 kB / 338.9 MB, free: 8.879 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002555/0.1175, allocations: 63.91 kB / 338.9 MB, free: 8.816 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.1188, allocations: 1.568 MB / 340.5 MB, free: 7.109 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002592/0.1191, allocations: 47.77 kB / 340.6 MB, free: 7.062 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.1191, allocations: 8 kB / 340.6 MB, free: 7.055 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.000161/0.1193, allocations: 153.7 kB / 340.7 MB, free: 6.895 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/0.1193, allocations: 31.7 kB / 340.7 MB, free: 6.863 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.826e-05/0.1194, allocations: 34.05 kB / 340.8 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1194, allocations: 4 kB / 340.8 MB, free: 6.832 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.1194, allocations: 4 kB / 340.8 MB, free: 6.828 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1194, allocations: 0 / 340.8 MB, free: 6.828 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003402/0.1198, allocations: 337.4 kB / 341.1 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1198, allocations: 0 / 341.1 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.12, allocations: 35.98 kB / 341.2 MB, free: 6.414 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001791/0.1201, allocations: 56.75 kB / 341.2 MB, free: 6.355 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.1202, allocations: 7.984 kB / 341.2 MB, free: 6.348 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/0.1213, allocations: 1.418 MB / 342.6 MB, free: 4.785 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1213, allocations: 4.031 kB / 342.6 MB, free: 4.781 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006441/0.1219, allocations: 346.2 kB / 343 MB, free: 4.422 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.122, allocations: 120.7 kB / 343.1 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.1221, allocations: 8 kB / 343.1 MB, free: 4.277 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.1223, allocations: 19.98 kB / 343.1 MB, free: 4.258 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.405e-05/0.1224, allocations: 31.89 kB / 343.2 MB, free: 4.227 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.1224, allocations: 7.984 kB / 343.2 MB, free: 4.219 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001597/0.1225, allocations: 186 kB / 343.3 MB, free: 4.035 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1225, allocations: 3.938 kB / 343.3 MB, free: 4.031 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003609/0.1229, allocations: 83.84 kB / 343.4 MB, free: 3.949 MB / 286.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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001241/0.123, allocations: 107.2 kB / 343.5 MB, free: 3.836 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006031/0.1237, allocations: 323 kB / 343.8 MB, free: 3.508 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.1237, allocations: 4.062 kB / 343.9 MB, free: 3.504 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002804/0.124, allocations: 198.5 kB / 344 MB, free: 3.297 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.1242, allocations: 32.55 kB / 344.1 MB, free: 3.266 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.1257, allocations: 0.8301 MB / 344.9 MB, free: 2.402 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003/0.1261, allocations: 0.7675 MB / 345.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.275e-05/0.1261, allocations: 23.44 kB / 345.7 MB, free: 1.586 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1261, allocations: 0 / 345.7 MB, free: 1.586 MB / 286.1 MB Notification: Performance of Templates: time 0.006359/0.1325, allocations: 4.623 MB / 350.3 MB, free: 12.96 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches