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.001005/0.001005, allocations: 94.97 kB / 17 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001879/0.001879, allocations: 193.5 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 227.7 MB / 246.4 MB, free: 11.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2436/0.2436, allocations: 46.19 MB / 344.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002971/0.0002972, allocations: 12.22 kB / 418.8 MB, free: 20.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1493, allocations: 63.57 MB / 482.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003299/0.1527, allocations: 2.484 MB / 484.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.1539, allocations: 0.6547 MB / 485.5 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.154, allocations: 8 kB / 485.6 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001233/0.1542, allocations: 39.69 kB / 485.6 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001324/0.1543, allocations: 79.31 kB / 485.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000139/0.1545, allocations: 63.91 kB / 485.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000563/0.155, allocations: 378.2 kB / 486.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00021/0.1552, allocations: 94.33 kB / 486.2 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.1554, allocations: 119.6 kB / 486.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.1556, allocations: 143.4 kB / 486.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.616e-05/0.1556, allocations: 16 kB / 486.5 MB, free: 492 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.459e-05/0.1557, allocations: 20 kB / 486.5 MB, free: 472 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.057e-05/0.1557, allocations: 51.77 kB / 486.5 MB, free: 420 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.15e-05/0.1558, allocations: 81.58 kB / 486.6 MB, free: 332 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002816/0.1561, allocations: 279.4 kB / 486.9 MB, free: 52 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1561, allocations: 0 / 486.9 MB, free: 52 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1561, allocations: 4 kB / 486.9 MB, free: 48 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1561, allocations: 0 / 486.9 MB, free: 48 kB / 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.001058/0.1572, allocations: 0.6002 MB / 487.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.1572, allocations: 8.031 kB / 487.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.249e-05/0.1573, allocations: 39.62 kB / 487.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.1576, allocations: 258.9 kB / 487.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.1577, allocations: 24.56 kB / 487.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.823e-05/0.1577, allocations: 28 kB / 487.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005955/0.1583, allocations: 332.5 kB / 488.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.1583, allocations: 4 kB / 488.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.089e-05/0.1584, allocations: 12 kB / 488.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.1584, allocations: 8 kB / 488.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005103/0.1589, allocations: 250.1 kB / 488.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/0.1608, allocations: 1.289 MB / 489.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007513/0.1616, allocations: 495.8 kB / 490.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002912/0.1619, allocations: 169.2 kB / 490.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.1619, allocations: 4.234 kB / 490.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.162, allocations: 34.8 kB / 490.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.333e-06/0.162, allocations: 4 kB / 490.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.002829/0.1648, allocations: 1.168 MB / 491.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.1649, allocations: 55.41 kB / 491.6 MB, free: 11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002663/0.1651, allocations: 240.9 kB / 491.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.1652, allocations: 33.7 kB / 491.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.1653, allocations: 168.4 kB / 492.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.221e-05/0.1654, allocations: 90.64 kB / 492.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.494e-05/0.1654, allocations: 8 kB / 492.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1656, allocations: 330.8 kB / 492.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002254/0.1658, allocations: 111.9 kB / 492.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002631/0.1661, allocations: 160 kB / 492.8 MB, free: 9.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002484/0.1663, allocations: 124.5 kB / 492.9 MB, free: 9.719 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1663, allocations: 0 / 492.9 MB, free: 9.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001114/0.1675, allocations: 0.526 MB / 493.4 MB, free: 9.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.1675, allocations: 7.984 kB / 493.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1675, allocations: 0 / 493.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009987/0.1685, allocations: 285.5 kB / 493.7 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.1687, allocations: 31.98 kB / 493.7 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003889/0.1726, allocations: 3.519 MB / 497.2 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.1728, allocations: 39.7 kB / 497.3 MB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.1728, allocations: 8 kB / 497.3 MB, free: 5.02 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.000178/0.173, allocations: 147.8 kB / 497.4 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.443e-05/0.1731, allocations: 27.72 kB / 497.5 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.856e-05/0.1732, allocations: 34.86 kB / 497.5 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.1732, allocations: 4 kB / 497.5 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/0.1732, allocations: 0 / 497.5 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1732, allocations: 3.953 kB / 497.5 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.1747, allocations: 0.931 MB / 498.4 MB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1748, allocations: 3.938 kB / 498.4 MB, free: 3.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.687e-05/0.1748, allocations: 23.92 kB / 498.5 MB, free: 3.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008019/0.1757, allocations: 277.9 kB / 498.7 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.1757, allocations: 8 kB / 498.7 MB, free: 3.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003717/0.1794, allocations: 3.522 MB / 0.4905 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.1794, allocations: 0 / 0.4905 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.1805, allocations: 0.5828 MB / 0.4911 GB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.1807, allocations: 128.7 kB / 0.4912 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.1807, allocations: 11.98 kB / 0.4912 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.1809, allocations: 31.98 kB / 0.4912 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.193e-05/0.181, allocations: 28.03 kB / 0.4913 GB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.181, allocations: 4 kB / 0.4913 GB, free: 14.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001831/0.1812, allocations: 176.5 kB / 0.4914 GB, free: 14.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.595e-06/0.1812, allocations: 0 / 0.4914 GB, free: 14.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004632/0.1817, allocations: 107.8 kB / 0.4915 GB, free: 14.6 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.0001418/0.1819, allocations: 102.8 kB / 0.4916 GB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009747/0.1828, allocations: 0.5792 MB / 0.4922 GB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1828, allocations: 0 / 0.4922 GB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005693/0.1834, allocations: 453.1 kB / 0.4926 GB, free: 13.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003954/0.1838, allocations: 47.48 kB / 0.4927 GB, free: 13.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009411/0.1848, allocations: 0.6215 MB / 0.4933 GB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.1851, allocations: 0.7679 MB / 0.494 GB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.1852, allocations: 18.28 kB / 0.494 GB, free: 11.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.189e-05/0.1853, allocations: 19.44 kB / 0.4941 GB, free: 11.9 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1853, allocations: 0 / 0.4941 GB, free: 11.9 MB / 382.1 MB Notification: Performance of Templates: time 0.008222/0.1935, allocations: 4.053 MB / 0.498 GB, free: 7.887 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