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.001251/0.001251, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001378/0.001378, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.397/1.397, allocations: 222.9 MB / 242.9 MB, free: 15.16 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.2147/0.2147, allocations: 44.18 MB / 337.3 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 65.95 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1134, allocations: 60.82 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004098/0.1176, allocations: 2.899 MB / 472.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.1187, allocations: 0.6506 MB / 473.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.1188, allocations: 4 kB / 473.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.119, allocations: 55.5 kB / 473.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.1192, allocations: 91.11 kB / 473.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001806/0.1194, allocations: 95.88 kB / 473.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003784/0.1198, allocations: 406.3 kB / 474.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000227/0.12, allocations: 119.2 kB / 474.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.1201, allocations: 143.6 kB / 474.4 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002075/0.1204, allocations: 167.4 kB / 474.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.689e-05/0.1204, allocations: 36 kB / 474.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.728e-05/0.1205, allocations: 32 kB / 474.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.013e-05/0.1206, allocations: 71.75 kB / 474.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001906/0.1208, allocations: 179.1 kB / 474.8 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000423/0.1212, allocations: 382.6 kB / 475.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.1212, allocations: 4 kB / 475.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.706e-06/0.1212, allocations: 0 / 475.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.565e-06/0.1212, allocations: 0 / 475.2 MB, free: 9.051 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.001257/0.1225, allocations: 0.6316 MB / 475.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.1225, allocations: 8.031 kB / 475.9 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.778e-05/0.1226, allocations: 44.47 kB / 475.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003452/0.123, allocations: 272.1 kB / 476.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.123, allocations: 20.94 kB / 476.2 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.856e-05/0.1231, allocations: 24.38 kB / 476.2 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006175/0.1237, allocations: 328.8 kB / 476.5 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1237, allocations: 0 / 476.5 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.242e-05/0.1237, allocations: 16 kB / 476.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.697e-06/0.1238, allocations: 8 kB / 476.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004971/0.1243, allocations: 242.1 kB / 476.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.1263, allocations: 1.25 MB / 478 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008198/0.1272, allocations: 477.2 kB / 478.5 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003251/0.1275, allocations: 164.1 kB / 478.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.1275, allocations: 4.234 kB / 478.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.698e-05/0.1276, allocations: 34.8 kB / 478.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.422e-06/0.1276, allocations: 0 / 478.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.003008/0.1306, allocations: 1.019 MB / 479.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.1307, allocations: 51.41 kB / 479.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002483/0.1309, allocations: 245 kB / 480 MB, free: 3.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.131, allocations: 33.7 kB / 480.1 MB, free: 3.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.1311, allocations: 172.2 kB / 480.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.168e-05/0.1312, allocations: 90.66 kB / 480.3 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.1313, allocations: 49.7 kB / 480.4 MB, free: 3.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1314, allocations: 334.8 kB / 480.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002262/0.1317, allocations: 99.95 kB / 480.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002616/0.1319, allocations: 148.2 kB / 480.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004904/0.1324, allocations: 248.2 kB / 481.2 MB, free: 2.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1324, allocations: 0 / 481.2 MB, free: 2.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001151/0.1336, allocations: 498.6 kB / 481.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.1336, allocations: 7.938 kB / 481.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1336, allocations: 4 kB / 481.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.1346, allocations: 233.5 kB / 481.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.1348, allocations: 35.98 kB / 481.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004303/0.1391, allocations: 3.685 MB / 485.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002372/0.1394, allocations: 35.7 kB / 485.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.1394, allocations: 12 kB / 485.7 MB, free: 13.95 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.0001763/0.1396, allocations: 137.9 kB / 485.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.052e-05/0.1397, allocations: 31.7 kB / 485.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.967e-05/0.1397, allocations: 30.88 kB / 485.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1397, allocations: 7.938 kB / 485.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.1398, allocations: 3.938 kB / 485.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.1398, allocations: 3.984 kB / 485.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001593/0.1414, allocations: 0.8937 MB / 486.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.1414, allocations: 0 / 486.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.41e-05/0.1415, allocations: 19.92 kB / 486.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009059/0.1424, allocations: 241.9 kB / 487 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.1424, allocations: 8 kB / 487 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004161/0.1466, allocations: 3.688 MB / 490.7 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1466, allocations: 0 / 490.7 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.1478, allocations: 0.5318 MB / 491.2 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.1479, allocations: 124.7 kB / 491.4 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.036e-05/0.148, allocations: 0 / 491.4 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.1482, allocations: 23.98 kB / 491.4 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.296e-05/0.1483, allocations: 35.95 kB / 491.4 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.1483, allocations: 8 kB / 491.4 MB, free: 7.766 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001895/0.1485, allocations: 172.5 kB / 491.6 MB, free: 7.602 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1485, allocations: 0 / 491.6 MB, free: 7.602 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004834/0.149, allocations: 111.8 kB / 491.7 MB, free: 7.492 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.0001194/0.1491, allocations: 99.25 kB / 491.8 MB, free: 7.387 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.1502, allocations: 0.568 MB / 492.4 MB, free: 6.793 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.1503, allocations: 0 / 492.4 MB, free: 6.793 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006214/0.1509, allocations: 445.3 kB / 492.8 MB, free: 6.332 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004726/0.1514, allocations: 55.47 kB / 492.9 MB, free: 6.281 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.1524, allocations: 0.5332 MB / 493.4 MB, free: 5.719 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003515/0.1528, allocations: 0.7715 MB / 494.2 MB, free: 4.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.366e-05/0.1529, allocations: 23.38 kB / 494.2 MB, free: 4.895 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1529, allocations: 0 / 494.2 MB, free: 4.895 MB / 366.1 MB Notification: Performance of Templates: time 0.00776/0.1606, allocations: 5.549 MB / 499.7 MB, free: 15.35 MB / 382.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