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.001294/0.001294, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001492/0.001492, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.492/1.492, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.2399/0.2399, allocations: 46.93 MB / 361.6 MB, free: 4.273 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.002236/0.002236, allocations: 67.91 kB / 0.4974 GB, free: 7.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4107/0.4129, allocations: 66.03 MB / 0.5619 GB, free: 4.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004646/0.4176, allocations: 2.949 MB / 0.5647 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.419, allocations: 0.696 MB / 0.5654 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.4192, allocations: 4 kB / 0.5654 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001921/0.4194, allocations: 51.44 kB / 0.5655 GB, free: 0.707 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001856/0.4195, allocations: 91.19 kB / 0.5656 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001951/0.4197, allocations: 95.86 kB / 0.5657 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004848/0.4202, allocations: 410 kB / 0.566 GB, free: 124 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.4205, allocations: 95.33 kB / 0.5661 GB, free: 28 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.4206, allocations: 147.6 kB / 0.5663 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002405/0.4209, allocations: 175.2 kB / 0.5664 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.921e-05/0.4209, allocations: 36 kB / 0.5665 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.393e-05/0.421, allocations: 32 kB / 0.5665 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.185e-05/0.4211, allocations: 75.75 kB / 0.5666 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.4212, allocations: 163.3 kB / 0.5667 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004648/0.4217, allocations: 402.1 kB / 0.5671 GB, free: 15.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.4217, allocations: 0 / 0.5671 GB, free: 15.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4217, allocations: 0 / 0.5671 GB, free: 15.02 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.4217, allocations: 0 / 0.5671 GB, free: 15.02 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.00111/0.4228, allocations: 0.5677 MB / 0.5677 GB, free: 14.42 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.4229, allocations: 8.031 kB / 0.5677 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.228e-05/0.4229, allocations: 32.75 kB / 0.5677 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004513/0.4234, allocations: 214.6 kB / 0.5679 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/0.4234, allocations: 29.02 kB / 0.5679 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.404e-05/0.4235, allocations: 24.38 kB / 0.568 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006248/0.4241, allocations: 330.2 kB / 0.5683 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.4241, allocations: 7.938 kB / 0.5683 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.351e-05/0.4242, allocations: 8 kB / 0.5683 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.4242, allocations: 8 kB / 0.5683 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005125/0.4247, allocations: 242.5 kB / 0.5685 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00213/0.4268, allocations: 1.212 MB / 0.5697 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006992/0.4275, allocations: 286.9 kB / 0.57 GB, free: 11.92 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.4278, allocations: 141.3 kB / 0.5701 GB, free: 11.78 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.4278, allocations: 240 / 0.5701 GB, free: 11.78 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.4279, allocations: 42.78 kB / 0.5702 GB, free: 11.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.062e-06/0.4279, allocations: 0 / 0.5702 GB, free: 11.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002761/0.4306, allocations: 0.8639 MB / 0.571 GB, free: 10.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.4307, allocations: 55.41 kB / 0.5711 GB, free: 10.79 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.4309, allocations: 241 kB / 0.5713 GB, free: 10.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.431, allocations: 29.7 kB / 0.5713 GB, free: 10.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.4311, allocations: 172.6 kB / 0.5715 GB, free: 10.33 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.595e-05/0.4312, allocations: 95.17 kB / 0.5716 GB, free: 10.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.4313, allocations: 49.7 kB / 0.5716 GB, free: 10.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.4314, allocations: 338.8 kB / 0.572 GB, free: 9.844 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002255/0.4317, allocations: 104 kB / 0.5721 GB, free: 9.742 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.4319, allocations: 148.8 kB / 0.5722 GB, free: 9.582 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004809/0.4324, allocations: 244.7 kB / 0.5724 GB, free: 9.328 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.4324, allocations: 4 kB / 0.5724 GB, free: 9.324 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001114/0.4335, allocations: 498.6 kB / 0.5729 GB, free: 8.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.4336, allocations: 11.98 kB / 0.5729 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.4336, allocations: 0 / 0.5729 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009506/0.4345, allocations: 233.5 kB / 0.5731 GB, free: 8.578 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/0.4347, allocations: 35.94 kB / 0.5732 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004478/0.4392, allocations: 3.477 MB / 0.5766 GB, free: 4.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.4394, allocations: 35.92 kB / 0.5766 GB, free: 4.805 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.4394, allocations: 12.47 kB / 0.5766 GB, free: 4.793 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.0001977/0.4396, allocations: 141.7 kB / 0.5768 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.113e-05/0.4397, allocations: 27.86 kB / 0.5768 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.124e-05/0.4397, allocations: 34.95 kB / 0.5768 GB, free: 4.578 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.4397, allocations: 4 kB / 0.5768 GB, free: 4.574 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/0.4398, allocations: 3.938 kB / 0.5768 GB, free: 4.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.778e-06/0.4398, allocations: 4 kB / 0.5768 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001668/0.4414, allocations: 0.8563 MB / 0.5777 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.4414, allocations: 3.984 kB / 0.5777 GB, free: 3.652 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.355e-05/0.4415, allocations: 12 kB / 0.5777 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008233/0.4423, allocations: 245.4 kB / 0.5779 GB, free: 3.395 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.4424, allocations: 4 kB / 0.5779 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004203/0.4466, allocations: 3.482 MB / 0.5813 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4466, allocations: 0 / 0.5813 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.4477, allocations: 0.5214 MB / 0.5818 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.4478, allocations: 55.7 kB / 0.5819 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.051e-05/0.4478, allocations: 4 kB / 0.5819 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.4481, allocations: 31.97 kB / 0.5819 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.543e-05/0.4482, allocations: 23.95 kB / 0.5819 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.4482, allocations: 12 kB / 0.5819 GB, free: 15.01 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001931/0.4484, allocations: 172.5 kB / 0.5821 GB, free: 14.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4484, allocations: 0 / 0.5821 GB, free: 14.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004835/0.4489, allocations: 119.8 kB / 0.5822 GB, free: 14.73 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.0001538/0.449, allocations: 107.2 kB / 0.5823 GB, free: 14.61 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.4501, allocations: 0.5326 MB / 0.5828 GB, free: 14.05 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4501, allocations: 0 / 0.5828 GB, free: 14.05 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006215/0.4507, allocations: 429.1 kB / 0.5833 GB, free: 13.61 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004169/0.4511, allocations: 51 kB / 0.5833 GB, free: 13.56 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.4522, allocations: 0.5487 MB / 0.5838 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004584/0.4527, allocations: 0.7716 MB / 0.5846 GB, free: 12.18 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/0.4527, allocations: 19.44 kB / 0.5846 GB, free: 12.16 MB / 430.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4527, allocations: 0 / 0.5846 GB, free: 12.16 MB / 430.1 MB Notification: Performance of Templates: time 0.008844/0.4616, allocations: 5.592 MB / 0.5901 GB, free: 6.578 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/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: 8.528659522067755]