Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001818/0.001818, allocations: 111.1 kB / 20.44 MB, free: 1.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001852/0.001852, allocations: 206 kB / 23.72 MB, free: 4.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.567/1.567, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3089/0.3089, allocations: 46.96 MB / 360.9 MB, free: 4.152 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00282/0.00282, allocations: 63.89 kB / 0.4966 GB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3931/0.3959, allocations: 66.04 MB / 0.5611 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004504/0.4004, allocations: 2.707 MB / 0.5637 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.4017, allocations: 0.6658 MB / 0.5644 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.4019, allocations: 7.938 kB / 0.5644 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.402, allocations: 51.5 kB / 0.5644 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000181/0.4022, allocations: 95.12 kB / 0.5645 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.4024, allocations: 87.88 kB / 0.5646 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005266/0.4029, allocations: 418 kB / 0.565 GB, free: 160 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.4031, allocations: 87.34 kB / 0.5651 GB, free: 72 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/0.4033, allocations: 155.5 kB / 0.5652 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002205/0.4036, allocations: 163.4 kB / 0.5654 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.562e-05/0.4036, allocations: 36 kB / 0.5654 GB, free: 15.72 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.938e-05/0.4037, allocations: 32 kB / 0.5654 GB, free: 15.69 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.12e-05/0.4038, allocations: 71.77 kB / 0.5655 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.4039, allocations: 151.3 kB / 0.5657 GB, free: 15.47 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004348/0.4043, allocations: 393.2 kB / 0.566 GB, free: 15.09 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.706e-06/0.4043, allocations: 0 / 0.566 GB, free: 15.09 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4043, allocations: 0 / 0.566 GB, free: 15.09 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.4044, allocations: 4 kB / 0.566 GB, free: 15.09 MB / 414.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.001069/0.4054, allocations: 0.5677 MB / 0.5666 GB, free: 14.49 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.4055, allocations: 8.031 kB / 0.5666 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.458e-05/0.4055, allocations: 44.73 kB / 0.5666 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004133/0.406, allocations: 206.6 kB / 0.5668 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.187e-05/0.406, allocations: 24.97 kB / 0.5669 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/0.406, allocations: 28.38 kB / 0.5669 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006935/0.4067, allocations: 433 kB / 0.5673 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.4067, allocations: 0 / 0.5673 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.617e-05/0.4068, allocations: 12 kB / 0.5673 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.4068, allocations: 8 kB / 0.5673 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005377/0.4073, allocations: 242.4 kB / 0.5676 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002045/0.4094, allocations: 1.095 MB / 0.5686 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007291/0.4101, allocations: 286.9 kB / 0.5689 GB, free: 11.99 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003154/0.4104, allocations: 137.3 kB / 0.569 GB, free: 11.86 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.4104, allocations: 12.17 kB / 0.569 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.4105, allocations: 34.8 kB / 0.5691 GB, free: 11.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.443e-06/0.4105, allocations: 0 / 0.5691 GB, free: 11.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002996/0.4135, allocations: 0.8562 MB / 0.5699 GB, free: 10.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.4135, allocations: 55.39 kB / 0.57 GB, free: 10.87 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/0.4138, allocations: 209 kB / 0.5702 GB, free: 10.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.4138, allocations: 37.64 kB / 0.5702 GB, free: 10.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.4139, allocations: 176.5 kB / 0.5704 GB, free: 10.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.176e-05/0.414, allocations: 95.2 kB / 0.5705 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.4141, allocations: 57.66 kB / 0.5705 GB, free: 10.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.4143, allocations: 330.8 kB / 0.5708 GB, free: 9.941 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002425/0.4145, allocations: 99.94 kB / 0.5709 GB, free: 9.844 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002926/0.4148, allocations: 156.8 kB / 0.5711 GB, free: 9.676 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005161/0.4154, allocations: 248.7 kB / 0.5713 GB, free: 9.418 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4154, allocations: 0 / 0.5713 GB, free: 9.418 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001161/0.4165, allocations: 482.7 kB / 0.5718 GB, free: 8.934 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.4165, allocations: 8 kB / 0.5718 GB, free: 8.926 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4166, allocations: 3.938 kB / 0.5718 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000991/0.4175, allocations: 249.5 kB / 0.572 GB, free: 8.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.4177, allocations: 27.98 kB / 0.572 GB, free: 8.645 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004473/0.4222, allocations: 3.405 MB / 0.5754 GB, free: 5.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/0.4224, allocations: 35.77 kB / 0.5754 GB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.4224, allocations: 8 kB / 0.5754 GB, free: 4.996 MB / 414.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.0001743/0.4226, allocations: 141.8 kB / 0.5755 GB, free: 4.848 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.376e-05/0.4226, allocations: 31.73 kB / 0.5756 GB, free: 4.816 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.414e-05/0.4227, allocations: 30.66 kB / 0.5756 GB, free: 4.785 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.4227, allocations: 3.984 kB / 0.5756 GB, free: 4.781 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.4227, allocations: 8.062 kB / 0.5756 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.4227, allocations: 0 / 0.5756 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.4243, allocations: 0.7709 MB / 0.5764 GB, free: 3.961 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.4243, allocations: 7.984 kB / 0.5764 GB, free: 3.953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.308e-05/0.4244, allocations: 20 kB / 0.5764 GB, free: 3.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008791/0.4253, allocations: 237.4 kB / 0.5766 GB, free: 3.695 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.4253, allocations: 8 kB / 0.5766 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004337/0.4296, allocations: 3.397 MB / 0.58 GB, free: 84 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.4296, allocations: 7.922 kB / 0.58 GB, free: 76 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.4308, allocations: 0.5291 MB / 0.5805 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.431, allocations: 39.77 kB / 0.5805 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.431, allocations: 11.94 kB / 0.5805 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.4312, allocations: 23.98 kB / 0.5805 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.406e-05/0.4313, allocations: 27.94 kB / 0.5806 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.971e-05/0.4313, allocations: 12 kB / 0.5806 GB, free: 15.41 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001659/0.4315, allocations: 155.2 kB / 0.5807 GB, free: 15.26 MB / 430.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4315, allocations: 0 / 0.5807 GB, free: 15.26 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004652/0.432, allocations: 115.8 kB / 0.5808 GB, free: 15.14 MB / 430.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.0001447/0.4321, allocations: 99.25 kB / 0.5809 GB, free: 15.04 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.4332, allocations: 0.5284 MB / 0.5815 GB, free: 14.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.4332, allocations: 0 / 0.5815 GB, free: 14.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006698/0.4339, allocations: 433.1 kB / 0.5819 GB, free: 14.04 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003628/0.4342, allocations: 36.42 kB / 0.5819 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.4353, allocations: 0.5316 MB / 0.5824 GB, free: 13.44 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001708/0.4355, allocations: 159.2 kB / 0.5826 GB, free: 13.27 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.703e-05/0.4356, allocations: 18.3 kB / 0.5826 GB, free: 13.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.712e-05/0.4356, allocations: 19.38 kB / 0.5826 GB, free: 13.23 MB / 430.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4356, allocations: 0 / 0.5826 GB, free: 13.23 MB / 430.1 MB Notification: Performance of Templates: time 0.01087/0.4465, allocations: 5.025 MB / 0.5875 GB, free: 8.277 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.675198500044644]