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.001016/0.001015, allocations: 97.34 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 200.9 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2174/0.2174, allocations: 45.93 MB / 344 MB, free: 12.36 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003019/0.000302, allocations: 11.98 kB / 417.9 MB, free: 20.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1537, allocations: 63.46 MB / 481.4 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.002784/0.1565, allocations: 2.34 MB / 483.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009771/0.1575, allocations: 0.6667 MB / 484.4 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.1577, allocations: 7.938 kB / 484.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.131e-05/0.1577, allocations: 39.73 kB / 484.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002103/0.1579, allocations: 127.6 kB / 484.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001363/0.1581, allocations: 63.92 kB / 484.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003123/0.1584, allocations: 267.3 kB / 484.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.1586, allocations: 102.2 kB / 485 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.1588, allocations: 119.6 kB / 485.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001733/0.1589, allocations: 143.4 kB / 485.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.796e-05/0.159, allocations: 20 kB / 485.3 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.848e-05/0.159, allocations: 20 kB / 485.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.9e-05/0.1591, allocations: 51.83 kB / 485.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.382e-05/0.1592, allocations: 85.45 kB / 485.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002562/0.1594, allocations: 279.4 kB / 485.7 MB, free: 1.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.1594, allocations: 0 / 485.7 MB, free: 1.109 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1594, allocations: 4 kB / 485.7 MB, free: 1.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1594, allocations: 0 / 485.7 MB, free: 1.105 MB / 350.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.0009944/0.1604, allocations: 0.5964 MB / 486.3 MB, free: 472 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.1605, allocations: 8.031 kB / 486.3 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.76e-05/0.1606, allocations: 35.62 kB / 486.3 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003382/0.1609, allocations: 266.9 kB / 486.6 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.161, allocations: 24.56 kB / 486.6 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.17e-05/0.161, allocations: 24 kB / 486.6 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006159/0.1616, allocations: 328.6 kB / 487 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.1617, allocations: 4 kB / 487 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.474e-05/0.1617, allocations: 8 kB / 487 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.1617, allocations: 8 kB / 487 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005438/0.1623, allocations: 258.1 kB / 487.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.1645, allocations: 1.281 MB / 488.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008252/0.1654, allocations: 485.3 kB / 489 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.1654, allocations: 4.234 kB / 489 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.1655, allocations: 38.8 kB / 489 MB, free: 13.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.573e-06/0.1655, allocations: 4 kB / 489 MB, free: 13.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003152/0.1686, allocations: 1.162 MB / 490.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.1687, allocations: 55.34 kB / 490.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002467/0.1689, allocations: 244.9 kB / 490.5 MB, free: 12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.536e-05/0.169, allocations: 29.7 kB / 490.5 MB, free: 11.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.1691, allocations: 168.3 kB / 490.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.226e-05/0.1692, allocations: 90.66 kB / 490.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.507e-05/0.1692, allocations: 12 kB / 490.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1693, allocations: 334.8 kB / 491.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002579/0.1696, allocations: 107.9 kB / 491.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/0.1698, allocations: 152.1 kB / 491.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.1701, allocations: 128.5 kB / 491.5 MB, free: 10.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.1701, allocations: 0 / 491.5 MB, free: 10.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001128/0.1713, allocations: 0.5299 MB / 492 MB, free: 10.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.1713, allocations: 4 kB / 492 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.1713, allocations: 4 kB / 492 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009816/0.1723, allocations: 285.5 kB / 492.3 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.1725, allocations: 31.98 kB / 492.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003949/0.1764, allocations: 3.593 MB / 495.9 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000201/0.1766, allocations: 39.7 kB / 496 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.1767, allocations: 12.06 kB / 496 MB, free: 6.191 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001589/0.1768, allocations: 137.8 kB / 496.1 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.917e-05/0.1769, allocations: 23.72 kB / 496.1 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.274e-05/0.177, allocations: 38.86 kB / 496.2 MB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.177, allocations: 0 / 496.2 MB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.177, allocations: 7.953 kB / 496.2 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.177, allocations: 0 / 496.2 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.1786, allocations: 0.9333 MB / 497.1 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1787, allocations: 4 kB / 497.1 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.389e-05/0.1787, allocations: 15.98 kB / 497.1 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009619/0.1797, allocations: 289.4 kB / 497.4 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.1797, allocations: 8 kB / 497.4 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00501/0.1848, allocations: 3.574 MB / 0.4893 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1848, allocations: 0 / 0.4893 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.186, allocations: 0.5865 MB / 0.4898 GB, free: 216 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.1862, allocations: 120.7 kB / 0.4899 GB, free: 76 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.07e-05/0.1862, allocations: 7.938 kB / 0.49 GB, free: 68 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.1864, allocations: 35.98 kB / 0.49 GB, free: 32 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.389e-05/0.1865, allocations: 31.94 kB / 0.49 GB, free: 0 / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.1866, allocations: 8.156 kB / 0.49 GB, free: 15.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001785/0.1867, allocations: 172.5 kB / 0.4902 GB, free: 15.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1868, allocations: 0 / 0.4902 GB, free: 15.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004749/0.1872, allocations: 107.8 kB / 0.4903 GB, free: 15.71 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000148/0.1874, allocations: 111.4 kB / 0.4904 GB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.1885, allocations: 0.5675 MB / 0.491 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.1885, allocations: 4 kB / 0.491 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007049/0.1892, allocations: 445.6 kB / 0.4914 GB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.1895, allocations: 48.66 kB / 0.4914 GB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009255/0.1905, allocations: 0.6365 MB / 0.4921 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.1908, allocations: 0.7718 MB / 0.4928 GB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.191, allocations: 26.28 kB / 0.4928 GB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.223e-05/0.191, allocations: 15.44 kB / 0.4928 GB, free: 12.99 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.191, allocations: 4 kB / 0.4928 GB, free: 12.99 MB / 382.1 MB Notification: Performance of Templates: time 0.009423/0.2004, allocations: 4.032 MB / 0.4968 GB, free: 9.004 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","../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches