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.001046/0.001047, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001407/0.001407, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2838/0.2838, allocations: 46.18 MB / 345.2 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003933/0.0003934, allocations: 8 kB / 419.5 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1467, allocations: 63.55 MB / 483.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003272/0.15, allocations: 2.588 MB / 485.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001356/0.1514, allocations: 0.6857 MB / 486.4 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002259/0.1516, allocations: 8 kB / 486.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.1518, allocations: 39.69 kB / 486.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002198/0.152, allocations: 79.31 kB / 486.5 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002016/0.1522, allocations: 79.91 kB / 486.6 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004504/0.1527, allocations: 390.2 kB / 486.9 MB, free: 304 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002198/0.1529, allocations: 99.88 kB / 487 MB, free: 208 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.1531, allocations: 127.5 kB / 487.2 MB, free: 80 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002301/0.1534, allocations: 147.4 kB / 487.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.275e-05/0.1534, allocations: 20 kB / 487.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.909e-05/0.1535, allocations: 20 kB / 487.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.512e-05/0.1535, allocations: 59.75 kB / 487.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001712/0.1537, allocations: 172.9 kB / 487.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003314/0.154, allocations: 366.4 kB / 487.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1541, allocations: 0 / 487.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1541, allocations: 0 / 487.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.1541, allocations: 0 / 487.9 MB, free: 15.3 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.001001/0.1551, allocations: 0.5965 MB / 488.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.1551, allocations: 12.88 kB / 488.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.1553, allocations: 32.56 kB / 488.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.1557, allocations: 276.1 kB / 488.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.1557, allocations: 16.94 kB / 488.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.242e-05/0.1558, allocations: 28.38 kB / 488.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006571/0.1564, allocations: 336.8 kB / 489.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1564, allocations: 0 / 489.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.1565, allocations: 12 kB / 489.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.1565, allocations: 4 kB / 489.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005679/0.1571, allocations: 262.1 kB / 489.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.1593, allocations: 1.277 MB / 490.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008221/0.1601, allocations: 0.4901 MB / 491.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003415/0.1605, allocations: 175.9 kB / 491.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.1605, allocations: 4.234 kB / 491.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/0.1606, allocations: 34.8 kB / 491.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.984e-06/0.1606, allocations: 3.938 kB / 491.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003244/0.1638, allocations: 1.18 MB / 492.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.1639, allocations: 55.41 kB / 492.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002448/0.1641, allocations: 241 kB / 492.9 MB, free: 9.992 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/0.1642, allocations: 29.7 kB / 493 MB, free: 9.957 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1643, allocations: 168.3 kB / 493.1 MB, free: 9.789 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.163e-05/0.1643, allocations: 94.64 kB / 493.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.698e-05/0.1644, allocations: 29.72 kB / 493.2 MB, free: 9.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.1645, allocations: 334.8 kB / 493.6 MB, free: 9.324 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/0.1648, allocations: 115.9 kB / 493.7 MB, free: 9.211 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002749/0.1651, allocations: 156.1 kB / 493.8 MB, free: 9.043 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005202/0.1656, allocations: 268.7 kB / 494.1 MB, free: 8.766 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1656, allocations: 0 / 494.1 MB, free: 8.766 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001222/0.1668, allocations: 0.5299 MB / 494.6 MB, free: 8.223 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.1669, allocations: 4 kB / 494.6 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.1669, allocations: 0 / 494.6 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/0.168, allocations: 293.4 kB / 494.9 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.1681, allocations: 27.98 kB / 495 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004346/0.1725, allocations: 3.524 MB / 498.5 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002218/0.1727, allocations: 43.67 kB / 498.5 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.1727, allocations: 4 kB / 498.5 MB, free: 4.062 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.0001727/0.1729, allocations: 156.8 kB / 498.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.721e-05/0.173, allocations: 27.7 kB / 498.7 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.052e-05/0.1731, allocations: 26.88 kB / 498.7 MB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1731, allocations: 4 kB / 498.7 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.1731, allocations: 4 kB / 498.7 MB, free: 3.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.1731, allocations: 3.984 kB / 498.7 MB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001755/0.1749, allocations: 0.9454 MB / 499.7 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1749, allocations: 0 / 499.7 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.011e-05/0.175, allocations: 19.98 kB / 499.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/0.176, allocations: 285.5 kB / 500 MB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.176, allocations: 4 kB / 500 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004067/0.1801, allocations: 3.526 MB / 0.4917 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1801, allocations: 0 / 0.4917 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.1813, allocations: 0.5876 MB / 0.4923 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.1815, allocations: 124.6 kB / 0.4924 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.806e-05/0.1815, allocations: 8 kB / 0.4924 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.1818, allocations: 31.97 kB / 0.4924 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.811e-05/0.1819, allocations: 31.89 kB / 0.4925 GB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.1819, allocations: 12 kB / 0.4925 GB, free: 13.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001721/0.1821, allocations: 176.4 kB / 0.4927 GB, free: 13.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1821, allocations: 0 / 0.4927 GB, free: 13.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004518/0.1825, allocations: 111.8 kB / 0.4928 GB, free: 13.61 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.0001208/0.1827, allocations: 99.25 kB / 0.4929 GB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.1838, allocations: 0.5796 MB / 0.4934 GB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1838, allocations: 0 / 0.4934 GB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006276/0.1844, allocations: 445.1 kB / 0.4938 GB, free: 12.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/0.1849, allocations: 54.05 kB / 0.4939 GB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001114/0.186, allocations: 0.6391 MB / 0.4945 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.1864, allocations: 0.7678 MB / 0.4953 GB, free: 10.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000108/0.1865, allocations: 22.28 kB / 0.4953 GB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.885e-05/0.1866, allocations: 19.44 kB / 0.4953 GB, free: 10.89 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1866, allocations: 0 / 0.4953 GB, free: 10.89 MB / 382.1 MB Notification: Performance of Templates: time 0.00889/0.1955, allocations: 4.183 MB / 0.4994 GB, free: 6.746 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