Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 110.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001692/0.001692, allocations: 201.9 kB / 18.78 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 242.5 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2149/0.2149, allocations: 44.18 MB / 336.8 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 63.81 kB / 408.4 MB, free: 27.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1116, allocations: 60.82 MB / 469.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004634/0.1162, allocations: 2.941 MB / 472.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.1176, allocations: 0.6428 MB / 472.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003518/0.118, allocations: 4 kB / 472.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002454/0.1183, allocations: 39.69 kB / 472.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003436/0.1187, allocations: 83.31 kB / 472.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002234/0.1189, allocations: 75.92 kB / 473 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004772/0.1194, allocations: 394.3 kB / 473.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002289/0.1196, allocations: 111.9 kB / 473.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002012/0.1198, allocations: 131.5 kB / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002032/0.12, allocations: 159.3 kB / 473.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.055e-05/0.1201, allocations: 20 kB / 473.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.01e-05/0.1202, allocations: 24 kB / 473.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.336e-05/0.1202, allocations: 63.75 kB / 473.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001578/0.1204, allocations: 159.2 kB / 474 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002841/0.1207, allocations: 283.2 kB / 474.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1207, allocations: 0 / 474.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1207, allocations: 0 / 474.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.1207, allocations: 8 kB / 474.3 MB, free: 9.668 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.001193/0.1219, allocations: 0.6277 MB / 474.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.122, allocations: 8.031 kB / 474.9 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.496e-05/0.1221, allocations: 44.45 kB / 475 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003553/0.1224, allocations: 268.1 kB / 475.2 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.976e-05/0.1225, allocations: 20.94 kB / 475.2 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.088e-05/0.1225, allocations: 28.38 kB / 475.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006392/0.1232, allocations: 328.8 kB / 475.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.1232, allocations: 3.938 kB / 475.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.1232, allocations: 15.94 kB / 475.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1232, allocations: 8 kB / 475.6 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005056/0.1237, allocations: 238.1 kB / 475.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.1259, allocations: 1.253 MB / 477.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000787/0.1267, allocations: 476.9 kB / 477.6 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003563/0.1271, allocations: 161.2 kB / 477.7 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.1271, allocations: 4.234 kB / 477.7 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.1271, allocations: 38.73 kB / 477.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.875e-06/0.1272, allocations: 4 kB / 477.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002983/0.1301, allocations: 1.011 MB / 478.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.518e-05/0.1302, allocations: 55.41 kB / 478.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002493/0.1305, allocations: 241 kB / 479.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.1305, allocations: 29.7 kB / 479.1 MB, free: 4.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.1306, allocations: 172.3 kB / 479.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.839e-05/0.1307, allocations: 90.64 kB / 479.4 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.871e-05/0.1308, allocations: 53.7 kB / 479.4 MB, free: 4.211 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.131, allocations: 338.8 kB / 479.7 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.1312, allocations: 99.94 kB / 479.8 MB, free: 3.773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.1315, allocations: 140.2 kB / 480 MB, free: 3.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004482/0.1319, allocations: 252.7 kB / 480.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.132, allocations: 4 kB / 480.2 MB, free: 3.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001159/0.1331, allocations: 490.5 kB / 480.7 MB, free: 2.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.1332, allocations: 4 kB / 480.7 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1332, allocations: 3.984 kB / 480.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009687/0.1341, allocations: 245.5 kB / 481 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.1343, allocations: 31.92 kB / 481 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003892/0.1382, allocations: 3.413 MB / 484.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002054/0.1384, allocations: 35.7 kB / 484.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.1385, allocations: 16.02 kB / 484.5 MB, free: 14.85 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.0001483/0.1386, allocations: 141.8 kB / 484.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.608e-05/0.1387, allocations: 27.72 kB / 484.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.072e-05/0.1388, allocations: 34.86 kB / 484.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.1388, allocations: 7.938 kB / 484.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.1388, allocations: 0 / 484.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.1388, allocations: 0 / 484.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001544/0.1403, allocations: 0.8975 MB / 485.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1404, allocations: 0 / 485.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.162e-05/0.1404, allocations: 12 kB / 485.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009013/0.1414, allocations: 241.4 kB / 485.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.1414, allocations: 12 kB / 485.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003645/0.145, allocations: 3.417 MB / 489.2 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1451, allocations: 0 / 489.2 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.1461, allocations: 0.5368 MB / 489.8 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.1463, allocations: 120.6 kB / 489.9 MB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.678e-05/0.1463, allocations: 8 kB / 489.9 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002311/0.1465, allocations: 27.97 kB / 489.9 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.881e-05/0.1466, allocations: 23.97 kB / 489.9 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.1466, allocations: 15.98 kB / 490 MB, free: 8.949 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001528/0.1468, allocations: 176.4 kB / 490.1 MB, free: 8.781 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1468, allocations: 4 kB / 490.1 MB, free: 8.777 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004268/0.1472, allocations: 103.8 kB / 490.2 MB, free: 8.676 MB / 366.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.0001052/0.1474, allocations: 103.5 kB / 490.3 MB, free: 8.566 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009696/0.1483, allocations: 0.5556 MB / 490.9 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1483, allocations: 0 / 490.9 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005858/0.1489, allocations: 441.2 kB / 491.3 MB, free: 7.527 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000447/0.1494, allocations: 50.16 kB / 491.4 MB, free: 7.484 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.1504, allocations: 0.6386 MB / 492 MB, free: 6.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.1507, allocations: 0.7716 MB / 492.8 MB, free: 6.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.529e-05/0.1508, allocations: 19.44 kB / 492.8 MB, free: 6 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1508, allocations: 0 / 492.8 MB, free: 6 MB / 366.1 MB Notification: Performance of Templates: time 0.00738/0.1582, allocations: 5.558 MB / 498.4 MB, free: 460 kB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches