Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007708/0.0007708, allocations: 93.48 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009745/0.0009744, allocations: 202.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.7 MB / 247.5 MB, free: 11.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1976/0.1976, allocations: 46.2 MB / 345.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002542/0.0002541, allocations: 11.94 kB / 420.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1286, allocations: 63.56 MB / 483.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003018/0.1317, allocations: 2.6 MB / 486.3 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.1327, allocations: 0.6662 MB / 487 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.1329, allocations: 4 kB / 487 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.133, allocations: 47.62 kB / 487 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.1332, allocations: 75.38 kB / 487.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001666/0.1334, allocations: 79.86 kB / 487.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003548/0.1337, allocations: 390.2 kB / 487.6 MB, free: 300 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002087/0.1339, allocations: 111.9 kB / 487.7 MB, free: 192 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001405/0.1341, allocations: 123.5 kB / 487.8 MB, free: 68 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001979/0.1343, allocations: 147.4 kB / 488 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.862e-05/0.1343, allocations: 16 kB / 488 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.119e-05/0.1344, allocations: 20 kB / 488 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.124e-05/0.1345, allocations: 59.67 kB / 488 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.1346, allocations: 173 kB / 488.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002456/0.1349, allocations: 279.2 kB / 488.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1349, allocations: 4 kB / 488.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1349, allocations: 3.984 kB / 488.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.1349, allocations: 0 / 488.5 MB, free: 15.37 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.0009128/0.1358, allocations: 0.5887 MB / 489.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.1359, allocations: 8.875 kB / 489.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.921e-05/0.1359, allocations: 40.56 kB / 489.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002965/0.1362, allocations: 273 kB / 489.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.1363, allocations: 20.94 kB / 489.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.494e-05/0.1363, allocations: 28.38 kB / 489.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006018/0.1369, allocations: 344.7 kB / 489.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1369, allocations: 0 / 489.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/0.137, allocations: 12 kB / 489.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.137, allocations: 8 kB / 489.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005173/0.1375, allocations: 254.1 kB / 490.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002045/0.1396, allocations: 1.281 MB / 491.3 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008067/0.1404, allocations: 489.3 kB / 491.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003374/0.1407, allocations: 171.8 kB / 492 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.1408, allocations: 4.172 kB / 492 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.1408, allocations: 46.78 kB / 492 MB, free: 11.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.462e-06/0.1408, allocations: 0 / 492 MB, free: 11.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003234/0.1441, allocations: 1.18 MB / 493.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/0.1441, allocations: 55.39 kB / 493.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000237/0.1444, allocations: 237 kB / 493.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/0.1444, allocations: 33.7 kB / 493.5 MB, free: 10.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.1445, allocations: 164.4 kB / 493.7 MB, free: 9.867 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.506e-05/0.1446, allocations: 90.66 kB / 493.8 MB, free: 9.777 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.671e-05/0.1446, allocations: 33.7 kB / 493.8 MB, free: 9.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1448, allocations: 330.8 kB / 494.1 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002498/0.145, allocations: 111.9 kB / 494.2 MB, free: 9.297 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002678/0.1453, allocations: 156.1 kB / 494.4 MB, free: 9.129 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005065/0.1458, allocations: 272.6 kB / 494.7 MB, free: 8.848 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1458, allocations: 4 kB / 494.7 MB, free: 8.844 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001223/0.1471, allocations: 0.5298 MB / 495.2 MB, free: 8.301 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.1471, allocations: 10.5 kB / 495.2 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1471, allocations: 0 / 495.2 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.1482, allocations: 297.5 kB / 495.5 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.1483, allocations: 31.92 kB / 495.5 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004078/0.1524, allocations: 3.519 MB / 499 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/0.1526, allocations: 43.77 kB / 499.1 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.1527, allocations: 8 kB / 499.1 MB, free: 4.129 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001599/0.1528, allocations: 145.7 kB / 499.2 MB, free: 3.977 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.639e-05/0.1529, allocations: 23.72 kB / 499.3 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.293e-05/0.153, allocations: 38.86 kB / 499.3 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.153, allocations: 0 / 499.3 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.153, allocations: 8 kB / 499.3 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.153, allocations: 3.984 kB / 499.3 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001732/0.1547, allocations: 0.9377 MB / 0.4885 GB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1548, allocations: 4 kB / 0.4885 GB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.089e-05/0.1548, allocations: 15.94 kB / 0.4885 GB, free: 2.883 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009378/0.1558, allocations: 285.9 kB / 0.4888 GB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.1558, allocations: 7.984 kB / 0.4888 GB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004066/0.1599, allocations: 3.522 MB / 0.4923 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1599, allocations: 3.984 kB / 0.4923 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.1611, allocations: 0.5798 MB / 0.4928 GB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.1612, allocations: 128.6 kB / 0.493 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.227e-05/0.1613, allocations: 4 kB / 0.493 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.1615, allocations: 39.97 kB / 0.493 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.048e-05/0.1616, allocations: 27.95 kB / 0.493 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.1616, allocations: 4 kB / 0.493 GB, free: 13.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001586/0.1618, allocations: 180.4 kB / 0.4932 GB, free: 13.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1618, allocations: 0 / 0.4932 GB, free: 13.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004521/0.1623, allocations: 103.8 kB / 0.4933 GB, free: 13.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001236/0.1624, allocations: 110.2 kB / 0.4934 GB, free: 13.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.1635, allocations: 0.5756 MB / 0.494 GB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1635, allocations: 0 / 0.494 GB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006474/0.1642, allocations: 453.1 kB / 0.4944 GB, free: 12.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.1646, allocations: 51.06 kB / 0.4944 GB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.1657, allocations: 0.6721 MB / 0.4951 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000349/0.166, allocations: 0.7639 MB / 0.4958 GB, free: 10.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.101e-05/0.1661, allocations: 19.44 kB / 0.4959 GB, free: 10.96 MB / 382.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1661, allocations: 0 / 0.4959 GB, free: 10.96 MB / 382.1 MB Notification: Performance of Templates: time 0.00833/0.1745, allocations: 5.523 MB / 0.5013 GB, free: 5.441 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches