Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009188/0.0009188, allocations: 177 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.242/1.242, allocations: 205.4 MB / 223.6 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006769/0.000677, allocations: 82.38 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3847/0.3847, allocations: 43.56 MB / 363.8 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003657/0.0003658, allocations: 8 kB / 432.6 MB, free: 5.891 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1261, allocations: 58.85 MB / 491.4 MB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3692/0.4954, allocations: 101 MB / 0.5786 GB, free: 1.375 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/0.4958, allocations: 85.05 kB / 0.5786 GB, free: 1.293 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08989/0.5857, allocations: 39.17 MB / 0.6169 GB, free: 9.727 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.5857, allocations: 0 / 0.6169 GB, free: 9.727 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.09e-05/0.5858, allocations: 20 kB / 0.6169 GB, free: 9.707 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 349 * Number of variables: 349 Notification: Performance of Generate backend data structure: time 0.00518/0.5909, allocations: 1.751 MB / 0.6186 GB, free: 7.906 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.591, allocations: 16.02 kB / 0.6186 GB, free: 7.891 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006795/0.5978, allocations: 1.069 MB / 0.6197 GB, free: 6.82 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001333/0.5992, allocations: 0.6091 MB / 0.6203 GB, free: 6.168 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-05/0.5993, allocations: 99.09 kB / 0.6204 GB, free: 6.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.5995, allocations: 136.4 kB / 0.6205 GB, free: 5.938 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002728/0.6022, allocations: 1.531 MB / 0.622 GB, free: 4.359 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.927e-05/0.6023, allocations: 7.844 kB / 0.622 GB, free: 4.352 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/0.6024, allocations: 56 kB / 0.6221 GB, free: 4.297 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.36e-05/0.6025, allocations: 39.98 kB / 0.6221 GB, free: 4.258 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002757/0.6052, allocations: 1.595 MB / 0.6237 GB, free: 2.656 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008875/0.6141, allocations: 5.626 MB / 0.6292 GB, free: 12.76 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002507/0.6167, allocations: 2.374 MB / 0.6315 GB, free: 10.11 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.6178, allocations: 0.6723 MB / 0.6321 GB, free: 9.441 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001791/0.618, allocations: 102.1 kB / 0.6322 GB, free: 9.324 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/0.618, allocations: 47.56 kB / 0.6323 GB, free: 9.27 MB / 458.7 MB Notification: Performance of pre-optimization done (n=129): time 4.348e-06/0.618, allocations: 0 / 0.6323 GB, free: 9.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=129): time 0.008725/0.6268, allocations: 3.202 MB / 0.6354 GB, free: 6.035 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.6269, allocations: 90.11 kB / 0.6355 GB, free: 5.93 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005706/0.6275, allocations: 489.8 kB / 0.636 GB, free: 5.438 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.622e-05/0.6275, allocations: 49.73 kB / 0.636 GB, free: 5.383 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.6278, allocations: 475.4 kB / 0.6365 GB, free: 4.91 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003021/0.6281, allocations: 417.8 kB / 0.6369 GB, free: 4.496 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.038e-05/0.6282, allocations: 28 kB / 0.6369 GB, free: 4.469 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.6284, allocations: 382.8 kB / 0.6372 GB, free: 4.086 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008373/0.6292, allocations: 466.4 kB / 0.6377 GB, free: 3.633 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000961/0.6302, allocations: 0.7299 MB / 0.6384 GB, free: 2.801 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001845/0.632, allocations: 1.228 MB / 0.6396 GB, free: 1.473 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.632, allocations: 0 / 0.6396 GB, free: 1.473 MB / 458.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002828/0.6349, allocations: 1.615 MB / 0.6412 GB, free: 15.84 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.6349, allocations: 11.94 kB / 0.6412 GB, free: 15.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.6349, allocations: 8.406 kB / 0.6412 GB, free: 15.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/0.6364, allocations: 0.5201 MB / 0.6417 GB, free: 15.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007704/0.6372, allocations: 199.7 kB / 0.6419 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00632/0.6436, allocations: 4.284 MB / 0.6461 GB, free: 10.69 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008548/0.6444, allocations: 134.7 kB / 0.6462 GB, free: 10.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.816e-05/0.6446, allocations: 55.98 kB / 0.6463 GB, free: 10.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 30} Notification: Performance of prepare postOptimizeDAE: time 0.0005517/0.6451, allocations: 277.5 kB / 0.6465 GB, free: 10.22 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.6453, allocations: 82.97 kB / 0.6466 GB, free: 10.14 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002842/0.6482, allocations: 1.583 MB / 0.6482 GB, free: 8.543 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.6482, allocations: 12 kB / 0.6482 GB, free: 8.531 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.6482, allocations: 7.938 kB / 0.6482 GB, free: 8.523 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.6482, allocations: 3.984 kB / 0.6482 GB, free: 8.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004615/0.6528, allocations: 2.918 MB / 0.651 GB, free: 5.535 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.6529, allocations: 8.031 kB / 0.651 GB, free: 5.527 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006496/0.6535, allocations: 147.8 kB / 0.6512 GB, free: 5.383 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/0.655, allocations: 0.5106 MB / 0.6517 GB, free: 4.871 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.333e-05/0.6551, allocations: 27.98 kB / 0.6517 GB, free: 4.844 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006513/0.6616, allocations: 4.278 MB / 0.6559 GB, free: 436 kB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.6616, allocations: 0 / 0.6559 GB, free: 436 kB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003839/0.6655, allocations: 2.308 MB / 0.6581 GB, free: 14.09 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000487/0.666, allocations: 295.6 kB / 0.6584 GB, free: 13.78 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.6661, allocations: 24 kB / 0.6584 GB, free: 13.76 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005768/0.6667, allocations: 52.05 kB / 0.6585 GB, free: 13.71 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002449/0.6669, allocations: 105.1 kB / 0.6586 GB, free: 13.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.723e-05/0.667, allocations: 36 kB / 0.6586 GB, free: 13.57 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003902/0.6674, allocations: 322.9 kB / 0.6589 GB, free: 13.25 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6674, allocations: 0 / 0.6589 GB, free: 13.25 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00127/0.6687, allocations: 419 kB / 0.6593 GB, free: 12.84 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (idealClosingSwitch.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.000305/0.669, allocations: 167 kB / 0.6595 GB, free: 12.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003361/0.6724, allocations: 1.782 MB / 0.6612 GB, free: 10.88 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.6724, allocations: 4 kB / 0.6612 GB, free: 10.88 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00204/0.6745, allocations: 1.17 MB / 0.6624 GB, free: 9.695 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007878/0.6753, allocations: 98.28 kB / 0.6625 GB, free: 9.598 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004198/0.6795, allocations: 2.679 MB / 0.6651 GB, free: 6.887 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006492/0.6801, allocations: 1.088 MB / 0.6661 GB, free: 5.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002786/0.6804, allocations: 71.42 kB / 0.6662 GB, free: 5.699 MB / 490.7 MB Notification: Performance of SimCode: time 8.82e-07/0.6804, allocations: 0 / 0.6662 GB, free: 5.699 MB / 490.7 MB Notification: Performance of Templates: time 0.2526/0.933, allocations: 17.94 MB / 0.6837 GB, free: 109.1 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches