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.00172/0.00172, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001964/0.001964, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 227.4 MB / 247.5 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2462/0.2462, allocations: 46.12 MB / 344.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002243/0.002243, allocations: 77.23 kB / 418.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1345, allocations: 62.45 MB / 480.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004776/0.1393, allocations: 2.928 MB / 483.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.1407, allocations: 0.6856 MB / 484.4 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.1409, allocations: 8 kB / 484.4 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001965/0.1411, allocations: 47.5 kB / 484.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001775/0.1413, allocations: 91.12 kB / 484.5 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000198/0.1415, allocations: 95.86 kB / 484.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000453/0.142, allocations: 410.2 kB / 485 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002928/0.1423, allocations: 127.1 kB / 485.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.1424, allocations: 147.6 kB / 485.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.1427, allocations: 167.3 kB / 485.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.751e-05/0.1427, allocations: 36 kB / 485.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.138e-05/0.1428, allocations: 32 kB / 485.5 MB, free: 480 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.747e-05/0.1429, allocations: 75.75 kB / 485.6 MB, free: 404 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.1431, allocations: 167.2 kB / 485.8 MB, free: 236 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004463/0.1435, allocations: 390.6 kB / 486.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1435, allocations: 0 / 486.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1436, allocations: 4 kB / 486.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.1436, allocations: 0 / 486.1 MB, free: 15.84 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.001161/0.1447, allocations: 0.6277 MB / 486.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.1448, allocations: 13.11 kB / 486.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.878e-05/0.1449, allocations: 32.56 kB / 486.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.1452, allocations: 276.1 kB / 487.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.145e-05/0.1453, allocations: 24.88 kB / 487.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/0.1453, allocations: 24.38 kB / 487.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006392/0.146, allocations: 332.8 kB / 487.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.146, allocations: 3.984 kB / 487.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.394e-05/0.146, allocations: 16 kB / 487.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.1461, allocations: 11.94 kB / 487.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005808/0.1467, allocations: 238.1 kB / 487.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002216/0.1489, allocations: 1.25 MB / 489 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008406/0.1497, allocations: 475.8 kB / 489.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003472/0.1501, allocations: 159.9 kB / 489.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.1501, allocations: 4.234 kB / 489.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.1502, allocations: 34.8 kB / 489.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.893e-06/0.1502, allocations: 4 kB / 489.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003153/0.1533, allocations: 1.022 MB / 490.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.1534, allocations: 51.41 kB / 490.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002913/0.1537, allocations: 237 kB / 490.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.1537, allocations: 33.7 kB / 491 MB, free: 10.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.1539, allocations: 172.2 kB / 491.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.726e-05/0.154, allocations: 86.66 kB / 491.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.1541, allocations: 57.64 kB / 491.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.1543, allocations: 342.8 kB / 491.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002519/0.1545, allocations: 95.95 kB / 491.7 MB, free: 9.949 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.1548, allocations: 148.1 kB / 491.8 MB, free: 9.789 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005027/0.1553, allocations: 240.2 kB / 492.1 MB, free: 9.539 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1554, allocations: 0 / 492.1 MB, free: 9.539 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001214/0.1566, allocations: 495.1 kB / 492.6 MB, free: 9.043 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.1566, allocations: 7.984 kB / 492.6 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1566, allocations: 0 / 492.6 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.1577, allocations: 249.5 kB / 492.8 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.1578, allocations: 27.98 kB / 492.8 MB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004769/0.1626, allocations: 3.684 MB / 496.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002393/0.1629, allocations: 39.7 kB / 496.6 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.1629, allocations: 11.94 kB / 496.6 MB, free: 4.742 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.0002082/0.1631, allocations: 141.9 kB / 496.7 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.844e-05/0.1632, allocations: 23.72 kB / 496.7 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.224e-05/0.1633, allocations: 34.86 kB / 496.8 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1633, allocations: 0 / 496.8 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.1633, allocations: 7.938 kB / 496.8 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.1633, allocations: 3.984 kB / 496.8 MB, free: 4.523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.1651, allocations: 0.8937 MB / 497.7 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1651, allocations: 0 / 497.7 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.818e-05/0.1652, allocations: 16 kB / 497.7 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009484/0.1662, allocations: 237.5 kB / 497.9 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.1662, allocations: 8 kB / 497.9 MB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004804/0.171, allocations: 3.684 MB / 0.4899 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.171, allocations: 0 / 0.4899 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.1722, allocations: 0.5368 MB / 0.4904 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/0.1724, allocations: 124.7 kB / 0.4905 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.219e-05/0.1724, allocations: 4 kB / 0.4905 GB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.1727, allocations: 23.98 kB / 0.4905 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.067e-05/0.1728, allocations: 31.95 kB / 0.4906 GB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.01e-05/0.1728, allocations: 12 kB / 0.4906 GB, free: 14.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001921/0.173, allocations: 172.5 kB / 0.4907 GB, free: 14.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.173, allocations: 0 / 0.4907 GB, free: 14.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004702/0.1735, allocations: 111.8 kB / 0.4908 GB, free: 14.29 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.0001471/0.1736, allocations: 102.2 kB / 0.4909 GB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.1748, allocations: 0.5675 MB / 0.4915 GB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1748, allocations: 256 / 0.4915 GB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006544/0.1755, allocations: 437.1 kB / 0.4919 GB, free: 13.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004404/0.176, allocations: 40.42 kB / 0.492 GB, free: 13.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.177, allocations: 0.5565 MB / 0.4925 GB, free: 12.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004465/0.1775, allocations: 0.7639 MB / 0.4932 GB, free: 11.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.387e-05/0.1776, allocations: 15.44 kB / 0.4933 GB, free: 11.7 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1776, allocations: 0 / 0.4933 GB, free: 11.7 MB / 382.1 MB Notification: Performance of Templates: time 0.00867/0.1862, allocations: 5.559 MB / 0.4987 GB, free: 6.148 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