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.001073/0.001073, allocations: 108.2 kB / 18.39 MB, free: 4.762 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.001157/0.001157, allocations: 182.9 kB / 19.32 MB, free: 3.832 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: 222.9 MB / 243 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.2143/0.2143, allocations: 44.18 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 70.67 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1107, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.00385/0.1146, allocations: 2.906 MB / 473.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009451/0.1156, allocations: 0.6467 MB / 474.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.1157, allocations: 4 kB / 474.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.1158, allocations: 51.44 kB / 474.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.116, allocations: 91.19 kB / 474.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001689/0.1162, allocations: 95.86 kB / 474.5 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003531/0.1165, allocations: 402.3 kB / 474.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002129/0.1168, allocations: 122.9 kB / 475 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.1169, allocations: 143.6 kB / 475.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001812/0.1171, allocations: 163.4 kB / 475.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.545e-05/0.1171, allocations: 32 kB / 475.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.083e-05/0.1172, allocations: 40 kB / 475.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.299e-05/0.1173, allocations: 83.67 kB / 475.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001491/0.1174, allocations: 167.2 kB / 475.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003444/0.1178, allocations: 394.6 kB / 476 MB, free: 8.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1178, allocations: 0 / 476 MB, free: 8.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1178, allocations: 0 / 476 MB, free: 8.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.1178, allocations: 0 / 476 MB, free: 8.305 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.0009307/0.1187, allocations: 0.6238 MB / 476.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.1188, allocations: 8.031 kB / 476.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.015e-05/0.1189, allocations: 40.47 kB / 476.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003553/0.1192, allocations: 284.1 kB / 477 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.1193, allocations: 16.94 kB / 477 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.409e-05/0.1193, allocations: 28.38 kB / 477 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005195/0.1198, allocations: 320.8 kB / 477.3 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.1198, allocations: 4 kB / 477.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.906e-05/0.1199, allocations: 19.94 kB / 477.3 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.1199, allocations: 8 kB / 477.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004618/0.1204, allocations: 242.1 kB / 477.6 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.1222, allocations: 1.249 MB / 478.8 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006775/0.1229, allocations: 465.3 kB / 479.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002805/0.1232, allocations: 168.8 kB / 479.5 MB, free: 4.633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.1232, allocations: 4.234 kB / 479.5 MB, free: 4.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.1232, allocations: 34.8 kB / 479.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.843e-06/0.1233, allocations: 8 kB / 479.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002655/0.1259, allocations: 1.019 MB / 480.5 MB, free: 3.512 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.145e-05/0.126, allocations: 55.34 kB / 480.6 MB, free: 3.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.1262, allocations: 241 kB / 480.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.1262, allocations: 33.7 kB / 480.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/0.1263, allocations: 168.2 kB / 481 MB, free: 2.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.064e-05/0.1264, allocations: 86.66 kB / 481.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.581e-05/0.1265, allocations: 57.7 kB / 481.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1266, allocations: 330.8 kB / 481.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002176/0.1268, allocations: 103.9 kB / 481.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.1271, allocations: 144.2 kB / 481.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004175/0.1275, allocations: 248.2 kB / 482 MB, free: 1.996 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.1275, allocations: 0 / 482 MB, free: 1.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001012/0.1285, allocations: 0.4907 MB / 482.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.1285, allocations: 4 kB / 482.4 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1285, allocations: 0 / 482.4 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008769/0.1294, allocations: 241.5 kB / 482.7 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.1296, allocations: 27.98 kB / 482.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00371/0.1333, allocations: 3.681 MB / 486.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.1335, allocations: 35.7 kB / 486.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.1336, allocations: 12 kB / 486.4 MB, free: 13.21 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.0001373/0.1337, allocations: 133.8 kB / 486.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.062e-05/0.1338, allocations: 23.72 kB / 486.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.95e-05/0.1338, allocations: 42.92 kB / 486.6 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1338, allocations: 4 kB / 486.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.1339, allocations: 7.938 kB / 486.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1339, allocations: 3.938 kB / 486.6 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001472/0.1353, allocations: 0.9058 MB / 487.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1354, allocations: 0 / 487.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.56e-05/0.1355, allocations: 12 kB / 487.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008216/0.1363, allocations: 237.5 kB / 487.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.1363, allocations: 8 kB / 487.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003624/0.1399, allocations: 3.684 MB / 491.5 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.14, allocations: 0 / 491.5 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009774/0.1409, allocations: 0.5287 MB / 492 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.1411, allocations: 124.7 kB / 492.1 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.1411, allocations: 7.984 kB / 492.1 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.1413, allocations: 23.98 kB / 492.2 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.545e-05/0.1414, allocations: 27.95 kB / 492.2 MB, free: 7.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.1414, allocations: 8 kB / 492.2 MB, free: 7.039 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001659/0.1416, allocations: 176.5 kB / 492.4 MB, free: 6.867 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1416, allocations: 0 / 492.4 MB, free: 6.867 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004218/0.1421, allocations: 111.8 kB / 492.5 MB, free: 6.758 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.0001103/0.1422, allocations: 111.2 kB / 492.6 MB, free: 6.641 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009124/0.1431, allocations: 0.5565 MB / 493.2 MB, free: 6.059 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1431, allocations: 0 / 493.2 MB, free: 6.059 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000555/0.1437, allocations: 449.1 kB / 493.6 MB, free: 5.594 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.144, allocations: 40.39 kB / 493.6 MB, free: 5.555 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008445/0.1449, allocations: 0.5002 MB / 494.1 MB, free: 5.031 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.1452, allocations: 0.7676 MB / 494.9 MB, free: 4.234 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.435e-05/0.1453, allocations: 18.3 kB / 494.9 MB, free: 4.215 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.576e-05/0.1454, allocations: 19.44 kB / 494.9 MB, free: 4.195 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1454, allocations: 0 / 494.9 MB, free: 4.195 MB / 366.1 MB Notification: Performance of Templates: time 0.008638/0.154, allocations: 4.552 MB / 499.5 MB, free: 15.68 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 -s gbode -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