Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001322/0.001322, allocations: 110.5 kB / 16.62 MB, free: 6.961 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.001429/0.001429, allocations: 190 kB / 17.54 MB, free: 6.066 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.416/1.416, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 54.69 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1149, allocations: 49.44 MB / 349.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005778/0.1207, allocations: 3.176 MB / 352.7 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.1226, allocations: 0.7479 MB / 353.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002923/0.1229, allocations: 8 kB / 353.5 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002409/0.1232, allocations: 47.62 kB / 353.5 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002372/0.1235, allocations: 83.3 kB / 353.6 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004307/0.124, allocations: 99.78 kB / 353.7 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004675/0.1244, allocations: 406.2 kB / 354.1 MB, free: 180 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002908/0.1247, allocations: 151.7 kB / 354.3 MB, free: 24 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002882/0.125, allocations: 155.4 kB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002343/0.1253, allocations: 171.2 kB / 354.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.49e-05/0.1253, allocations: 36 kB / 354.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.819e-05/0.1254, allocations: 35.94 kB / 354.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.1255, allocations: 91.73 kB / 354.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001988/0.1257, allocations: 183.1 kB / 354.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004555/0.1262, allocations: 414.8 kB / 355.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.1262, allocations: 0 / 355.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1262, allocations: 0 / 355.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.1262, allocations: 0 / 355.3 MB, free: 14.96 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001087/0.1273, allocations: 0.6548 MB / 356 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.1274, allocations: 15.89 kB / 356 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.484e-05/0.1275, allocations: 40.47 kB / 356 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.1278, allocations: 285.2 kB / 356.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.017e-05/0.1279, allocations: 80.62 kB / 356.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.067e-05/0.128, allocations: 28.38 kB / 356.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006278/0.1286, allocations: 342.8 kB / 356.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1286, allocations: 0 / 356.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.548e-05/0.1286, allocations: 16 kB / 356.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.1287, allocations: 8 kB / 356.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004945/0.1292, allocations: 218.5 kB / 357 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00223/0.1314, allocations: 1.368 MB / 358.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003413/0.1318, allocations: 162.5 kB / 358.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.1319, allocations: 96.75 kB / 358.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.132, allocations: 4 kB / 358.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004571/0.1324, allocations: 157.8 kB / 358.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.144e-06/0.1325, allocations: 0 / 358.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.00139/0.1338, allocations: 400.6 kB / 359.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.134, allocations: 110.8 kB / 359.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002993/0.1343, allocations: 258.7 kB / 359.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.1343, allocations: 33.7 kB / 359.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.1345, allocations: 203.9 kB / 359.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.894e-05/0.1346, allocations: 79 kB / 359.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.1347, allocations: 61.94 kB / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1348, allocations: 334.8 kB / 360.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.135, allocations: 84.55 kB / 360.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002437/0.1353, allocations: 169.5 kB / 360.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003783/0.1356, allocations: 243.5 kB / 360.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1357, allocations: 0 / 360.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007994/0.1365, allocations: 348.2 kB / 361.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.1365, allocations: 4 kB / 361.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.1365, allocations: 4.344 kB / 361.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003099/0.1368, allocations: 56.81 kB / 361.1 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002739/0.1371, allocations: 63.91 kB / 361.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001595/0.1387, allocations: 1.564 MB / 362.7 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003259/0.1391, allocations: 43.7 kB / 362.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.821e-05/0.1391, allocations: 16 kB / 362.8 MB, free: 6.922 MB / 302.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.0001875/0.1393, allocations: 158 kB / 363 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.251e-05/0.1393, allocations: 31.62 kB / 363 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.1395, allocations: 38.17 kB / 363 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.1395, allocations: 0 / 363 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1395, allocations: 3.984 kB / 363 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1395, allocations: 3.984 kB / 363 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004493/0.1399, allocations: 329.5 kB / 363.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.14, allocations: 0 / 363.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.1402, allocations: 39.97 kB / 363.4 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001999/0.1404, allocations: 56.75 kB / 363.4 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.038e-05/0.1404, allocations: 11.94 kB / 363.5 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001431/0.1418, allocations: 1.418 MB / 364.9 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1419, allocations: 0 / 364.9 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007731/0.1426, allocations: 355.3 kB / 365.2 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.1428, allocations: 112.8 kB / 365.3 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.1428, allocations: 11.92 kB / 365.3 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.143, allocations: 19.98 kB / 365.4 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.408e-05/0.1431, allocations: 35.95 kB / 365.4 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.1431, allocations: 4 kB / 365.4 MB, free: 4.082 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001793/0.1433, allocations: 182 kB / 365.6 MB, free: 3.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1433, allocations: 4 kB / 365.6 MB, free: 3.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004164/0.1437, allocations: 83.84 kB / 365.7 MB, free: 3.82 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: 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.0001586/0.1439, allocations: 115.1 kB / 365.8 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008848/0.1448, allocations: 326.7 kB / 366.1 MB, free: 3.363 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.1448, allocations: 0 / 366.1 MB, free: 3.363 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003116/0.1451, allocations: 198.5 kB / 366.3 MB, free: 3.156 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002995/0.1454, allocations: 38.66 kB / 366.3 MB, free: 3.117 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/0.1471, allocations: 0.7977 MB / 367.1 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.1476, allocations: 0.7675 MB / 367.9 MB, free: 1.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.1477, allocations: 26.28 kB / 367.9 MB, free: 1.477 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.699e-05/0.1478, allocations: 23.44 kB / 367.9 MB, free: 1.453 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1478, allocations: 0 / 367.9 MB, free: 1.453 MB / 302.1 MB Notification: Performance of Templates: time 0.1688/0.3166, allocations: 2.959 MB / 370.9 MB, free: 25.48 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches