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.0009255/0.0009256, allocations: 92.62 kB / 18 MB, free: 5.602 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.001112/0.001112, allocations: 178.3 kB / 18.91 MB, free: 4.738 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.42/1.42, allocations: 223.3 MB / 243 MB, free: 40 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.216/0.216, allocations: 44.25 MB / 338.3 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002982/0.0002983, allocations: 8 kB / 411 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1168, allocations: 61.92 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003252/0.1201, allocations: 2.574 MB / 475.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.1213, allocations: 0.6312 MB / 476.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002467/0.1216, allocations: 7.938 kB / 476.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000179/0.1218, allocations: 39.69 kB / 476.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002591/0.1221, allocations: 83.31 kB / 476.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.1223, allocations: 79.91 kB / 476.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004822/0.1228, allocations: 386.4 kB / 476.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002387/0.123, allocations: 103.9 kB / 476.8 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000206/0.1233, allocations: 131.5 kB / 476.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002494/0.1235, allocations: 143.4 kB / 477.1 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.365e-05/0.1236, allocations: 20 kB / 477.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.813e-05/0.1237, allocations: 16 kB / 477.1 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.18e-05/0.1237, allocations: 59.75 kB / 477.2 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.1239, allocations: 176.9 kB / 477.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.1242, allocations: 275.1 kB / 477.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1242, allocations: 3.938 kB / 477.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1242, allocations: 4 kB / 477.6 MB, free: 8.602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.1242, allocations: 0 / 477.6 MB, free: 8.602 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.0009889/0.1252, allocations: 0.5926 MB / 478.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1253, allocations: 12.03 kB / 478.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.254e-05/0.1254, allocations: 32.56 kB / 478.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003419/0.1257, allocations: 272.2 kB / 478.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.1258, allocations: 20.94 kB / 478.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.205e-05/0.1258, allocations: 32.31 kB / 478.6 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006273/0.1264, allocations: 336.8 kB / 478.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-06/0.1265, allocations: 4 kB / 478.9 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.1265, allocations: 16 kB / 478.9 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.1265, allocations: 4 kB / 478.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005445/0.1271, allocations: 258.1 kB / 479.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.1292, allocations: 1.277 MB / 480.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007811/0.13, allocations: 0.4933 MB / 480.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003189/0.1303, allocations: 165.3 kB / 481.1 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.1303, allocations: 4.234 kB / 481.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.1304, allocations: 34.8 kB / 481.1 MB, free: 4.832 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.513e-06/0.1304, allocations: 4 kB / 481.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.003159/0.1335, allocations: 1.186 MB / 482.3 MB, free: 3.594 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.1336, allocations: 55.41 kB / 482.4 MB, free: 3.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002475/0.1338, allocations: 237 kB / 482.6 MB, free: 3.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.1339, allocations: 29.7 kB / 482.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.134, allocations: 164.3 kB / 482.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.752e-05/0.1341, allocations: 90.66 kB / 482.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.776e-05/0.1341, allocations: 33.7 kB / 482.9 MB, free: 2.957 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1342, allocations: 338.8 kB / 483.3 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002462/0.1345, allocations: 111.9 kB / 483.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002773/0.1348, allocations: 160.2 kB / 483.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004947/0.1353, allocations: 264.7 kB / 483.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1353, allocations: 0 / 483.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001236/0.1365, allocations: 0.5377 MB / 484.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1366, allocations: 8.062 kB / 484.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.1366, allocations: 0 / 484.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.1376, allocations: 281.4 kB / 484.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.1378, allocations: 35.98 kB / 484.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003994/0.1418, allocations: 3.522 MB / 488.2 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.142, allocations: 47.73 kB / 488.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/0.1421, allocations: 4 kB / 488.2 MB, free: 13.35 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.0001701/0.1422, allocations: 149.7 kB / 488.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.12e-05/0.1423, allocations: 23.72 kB / 488.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.278e-05/0.1424, allocations: 34.86 kB / 488.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.1424, allocations: 4 kB / 488.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.1424, allocations: 4 kB / 488.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1424, allocations: 4 kB / 488.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001722/0.1441, allocations: 0.9445 MB / 489.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1442, allocations: 7.875 kB / 489.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.407e-05/0.1442, allocations: 15.98 kB / 489.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000946/0.1452, allocations: 285.5 kB / 489.7 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.1452, allocations: 4 kB / 489.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003881/0.1491, allocations: 3.511 MB / 493.2 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1491, allocations: 4.062 kB / 493.2 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.1503, allocations: 0.5836 MB / 493.8 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.1505, allocations: 128.6 kB / 493.9 MB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.517e-05/0.1505, allocations: 8 kB / 493.9 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.1507, allocations: 27.98 kB / 493.9 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.284e-05/0.1508, allocations: 31.95 kB / 494 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.1509, allocations: 8 kB / 494 MB, free: 7.195 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001613/0.151, allocations: 180.3 kB / 494.2 MB, free: 7.023 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.151, allocations: 0 / 494.2 MB, free: 7.023 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004451/0.1515, allocations: 111.8 kB / 494.3 MB, free: 6.914 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.0001133/0.1516, allocations: 99.52 kB / 494.4 MB, free: 6.809 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.1526, allocations: 0.5793 MB / 494.9 MB, free: 6.203 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.1527, allocations: 0 / 494.9 MB, free: 6.203 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006196/0.1533, allocations: 453.2 kB / 495.4 MB, free: 5.734 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004262/0.1537, allocations: 44.42 kB / 495.4 MB, free: 5.691 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.1547, allocations: 0.6713 MB / 496.1 MB, free: 4.992 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.1551, allocations: 0.7677 MB / 496.9 MB, free: 4.199 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.85e-05/0.1552, allocations: 19.44 kB / 496.9 MB, free: 4.18 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1552, allocations: 0 / 496.9 MB, free: 4.18 MB / 366.1 MB Notification: Performance of Templates: time 0.007993/0.1632, allocations: 5.52 MB / 0.4906 GB, free: 14.66 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