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.001517/0.001517, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001525/0.001525, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2561/0.2561, allocations: 46.12 MB / 344.2 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 83.53 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1434, allocations: 62.45 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004574/0.148, allocations: 2.932 MB / 483 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.1493, allocations: 0.6817 MB / 483.7 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.1494, allocations: 7.938 kB / 483.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001524/0.1496, allocations: 55.5 kB / 483.8 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000157/0.1498, allocations: 91.12 kB / 483.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001905/0.15, allocations: 91.86 kB / 484 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004146/0.1504, allocations: 414.2 kB / 484.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.1507, allocations: 123.2 kB / 484.5 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/0.1508, allocations: 147.5 kB / 484.6 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.151, allocations: 163.3 kB / 484.8 MB, free: 500 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.797e-05/0.1511, allocations: 40 kB / 484.8 MB, free: 460 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.526e-05/0.1512, allocations: 32 kB / 484.9 MB, free: 428 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7e-05/0.1512, allocations: 75.75 kB / 484.9 MB, free: 352 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.1514, allocations: 167.3 kB / 485.1 MB, free: 184 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003825/0.1518, allocations: 382.6 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1518, allocations: 0 / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.1518, allocations: 4 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.1518, allocations: 0 / 485.5 MB, free: 15.8 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.001054/0.1529, allocations: 0.6355 MB / 486.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1529, allocations: 9.109 kB / 486.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.266e-05/0.153, allocations: 36.56 kB / 486.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.1533, allocations: 276 kB / 486.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/0.1534, allocations: 24.94 kB / 486.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.641e-05/0.1534, allocations: 24.38 kB / 486.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006334/0.1541, allocations: 328.8 kB / 486.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.1541, allocations: 0 / 486.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.1541, allocations: 19.94 kB / 486.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.1541, allocations: 11.98 kB / 486.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005086/0.1547, allocations: 238.1 kB / 487.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002146/0.1568, allocations: 1.25 MB / 488.3 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008499/0.1577, allocations: 476.1 kB / 488.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003444/0.158, allocations: 161.2 kB / 488.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.1581, allocations: 4.234 kB / 488.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.771e-05/0.1581, allocations: 34.8 kB / 489 MB, free: 12.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 2.144e-06/0.1581, allocations: 0 / 489 MB, free: 12.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003004/0.1611, allocations: 1.022 MB / 490 MB, free: 10.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.1612, allocations: 55.41 kB / 490.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000345/0.1616, allocations: 241 kB / 490.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.1616, allocations: 25.7 kB / 490.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.1617, allocations: 176.2 kB / 490.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.581e-05/0.1618, allocations: 90.64 kB / 490.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.1619, allocations: 53.7 kB / 490.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002168/0.1621, allocations: 334.8 kB / 491 MB, free: 9.992 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002361/0.1624, allocations: 99.95 kB / 491 MB, free: 9.895 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002679/0.1627, allocations: 156 kB / 491.2 MB, free: 9.727 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004806/0.1631, allocations: 236.2 kB / 491.4 MB, free: 9.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1632, allocations: 0 / 491.4 MB, free: 9.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001137/0.1643, allocations: 499.1 kB / 491.9 MB, free: 8.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.1643, allocations: 10.33 kB / 491.9 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1643, allocations: 0 / 491.9 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009499/0.1653, allocations: 237.5 kB / 492.2 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.1655, allocations: 35.92 kB / 492.2 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004622/0.1701, allocations: 3.684 MB / 495.9 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002382/0.1704, allocations: 35.7 kB / 495.9 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.1704, allocations: 11.94 kB / 495.9 MB, free: 4.688 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.0001864/0.1706, allocations: 145.8 kB / 496.1 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.473e-05/0.1706, allocations: 23.72 kB / 496.1 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.1708, allocations: 38.86 kB / 496.1 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1708, allocations: 0 / 496.1 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/0.1708, allocations: 7.938 kB / 496.1 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.1708, allocations: 3.984 kB / 496.1 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001798/0.1726, allocations: 0.8899 MB / 497 MB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1726, allocations: 0 / 497 MB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.726e-05/0.1727, allocations: 15.98 kB / 497 MB, free: 3.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009187/0.1736, allocations: 237.5 kB / 497.3 MB, free: 3.254 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.3e-05/0.1737, allocations: 7.938 kB / 497.3 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005083/0.1788, allocations: 3.688 MB / 0.4892 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1788, allocations: 0 / 0.4892 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.1799, allocations: 0.5329 MB / 0.4898 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.1801, allocations: 120.7 kB / 0.4899 GB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.45e-05/0.1801, allocations: 4 kB / 0.4899 GB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.1804, allocations: 27.92 kB / 0.4899 GB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.365e-05/0.1805, allocations: 35.95 kB / 0.4899 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.1805, allocations: 8 kB / 0.4899 GB, free: 14.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001932/0.1807, allocations: 172.5 kB / 0.4901 GB, free: 14.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1807, allocations: 0 / 0.4901 GB, free: 14.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004996/0.1812, allocations: 111.8 kB / 0.4902 GB, free: 14.23 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.0001755/0.1814, allocations: 99.25 kB / 0.4903 GB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.1826, allocations: 0.5675 MB / 0.4909 GB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1826, allocations: 0 / 0.4909 GB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006623/0.1833, allocations: 437.4 kB / 0.4913 GB, free: 13.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004618/0.1837, allocations: 44.73 kB / 0.4913 GB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.1848, allocations: 0.5157 MB / 0.4918 GB, free: 12.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004287/0.1853, allocations: 0.7677 MB / 0.4926 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.047e-05/0.1854, allocations: 22.22 kB / 0.4926 GB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.686e-05/0.1854, allocations: 19.44 kB / 0.4926 GB, free: 11.65 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1854, allocations: 4 kB / 0.4926 GB, free: 11.64 MB / 382.1 MB Notification: Performance of Templates: time 0.009595/0.195, allocations: 4.539 MB / 0.4971 GB, free: 7.145 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches