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.001384/0.001384, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.00158/0.00158, allocations: 211.5 kB / 24.48 MB, free: 3.938 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.494/1.494, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.2456/0.2456, allocations: 46.96 MB / 361.6 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 180] 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.002991/0.002991, allocations: 67.91 kB / 0.4973 GB, free: 7.199 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.39/0.393, allocations: 66.03 MB / 0.5618 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.008216/0.4012, allocations: 2.723 MB / 0.5645 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002414/0.4036, allocations: 0.6532 MB / 0.5651 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003183/0.4039, allocations: 8 kB / 0.5651 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003384/0.4043, allocations: 59.42 kB / 0.5652 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004508/0.4047, allocations: 87.19 kB / 0.5653 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003775/0.4051, allocations: 91.88 kB / 0.5653 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008596/0.4059, allocations: 414 kB / 0.5657 GB, free: 100 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003197/0.4063, allocations: 87.34 kB / 0.5658 GB, free: 12 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003681/0.4066, allocations: 151.5 kB / 0.566 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000421/0.407, allocations: 151.3 kB / 0.5661 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001337/0.4072, allocations: 36 kB / 0.5661 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.4073, allocations: 32 kB / 0.5662 GB, free: 15.65 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.4074, allocations: 71.77 kB / 0.5662 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003202/0.4078, allocations: 143.4 kB / 0.5664 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008337/0.4086, allocations: 394.1 kB / 0.5668 GB, free: 15.05 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.4086, allocations: 0 / 0.5668 GB, free: 15.05 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4086, allocations: 4 kB / 0.5668 GB, free: 15.05 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.925e-05/0.4086, allocations: 0 / 0.5668 GB, free: 15.05 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.001846/0.4105, allocations: 0.5599 MB / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/0.4105, allocations: 12.03 kB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.4107, allocations: 32.75 kB / 0.5673 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007684/0.4114, allocations: 222.5 kB / 0.5676 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.895e-05/0.4115, allocations: 21.03 kB / 0.5676 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.174e-05/0.4116, allocations: 24.38 kB / 0.5676 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.4128, allocations: 445 kB / 0.568 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.4128, allocations: 0 / 0.568 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.119e-05/0.4129, allocations: 8 kB / 0.568 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.019e-05/0.4129, allocations: 8 kB / 0.568 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009918/0.4139, allocations: 238.5 kB / 0.5683 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003621/0.4175, allocations: 1.091 MB / 0.5693 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.4188, allocations: 286.9 kB / 0.5696 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005616/0.4194, allocations: 141.3 kB / 0.5697 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.4194, allocations: 8.172 kB / 0.5697 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.044e-05/0.4194, allocations: 42.67 kB / 0.5698 GB, free: 11.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 4.569e-06/0.4195, allocations: 0 / 0.5698 GB, free: 11.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.005349/0.4248, allocations: 0.8562 MB / 0.5706 GB, free: 10.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.162e-05/0.4249, allocations: 55.41 kB / 0.5707 GB, free: 10.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005025/0.4254, allocations: 217 kB / 0.5709 GB, free: 10.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.157e-05/0.4254, allocations: 25.7 kB / 0.5709 GB, free: 10.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002123/0.4257, allocations: 184.5 kB / 0.5711 GB, free: 10.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.4258, allocations: 87.22 kB / 0.5712 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001785/0.426, allocations: 57.66 kB / 0.5712 GB, free: 10.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002379/0.4262, allocations: 330.8 kB / 0.5715 GB, free: 9.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004572/0.4267, allocations: 99.94 kB / 0.5716 GB, free: 9.812 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005283/0.4272, allocations: 152.8 kB / 0.5718 GB, free: 9.648 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009771/0.4282, allocations: 248.7 kB / 0.572 GB, free: 9.391 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.4282, allocations: 3.938 kB / 0.572 GB, free: 9.387 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002298/0.4305, allocations: 486.7 kB / 0.5725 GB, free: 8.898 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.4305, allocations: 8 kB / 0.5725 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.4305, allocations: 8 kB / 0.5725 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00173/0.4322, allocations: 233.5 kB / 0.5727 GB, free: 8.648 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002965/0.4325, allocations: 31.92 kB / 0.5728 GB, free: 8.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008148/0.4407, allocations: 3.405 MB / 0.5761 GB, free: 5.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004273/0.4411, allocations: 35.8 kB / 0.5761 GB, free: 4.977 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.147e-05/0.4412, allocations: 12 kB / 0.5761 GB, free: 4.965 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.0003695/0.4416, allocations: 145.7 kB / 0.5763 GB, free: 4.812 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.4417, allocations: 23.86 kB / 0.5763 GB, free: 4.789 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.4419, allocations: 34.72 kB / 0.5763 GB, free: 4.754 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.4419, allocations: 4 kB / 0.5763 GB, free: 4.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.157e-05/0.4419, allocations: 4 kB / 0.5763 GB, free: 4.746 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.4419, allocations: 3.984 kB / 0.5763 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002992/0.4449, allocations: 0.7748 MB / 0.5771 GB, free: 3.926 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.4449, allocations: 0 / 0.5771 GB, free: 3.926 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/0.4451, allocations: 23.92 kB / 0.5771 GB, free: 3.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001604/0.4467, allocations: 233.5 kB / 0.5773 GB, free: 3.668 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.4467, allocations: 8 kB / 0.5773 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007861/0.4546, allocations: 3.409 MB / 0.5807 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4546, allocations: 4.031 kB / 0.5807 GB, free: 40 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002148/0.4567, allocations: 0.5291 MB / 0.5812 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002383/0.4569, allocations: 39.77 kB / 0.5812 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.366e-05/0.457, allocations: 11.94 kB / 0.5812 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004733/0.4575, allocations: 23.98 kB / 0.5813 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.4577, allocations: 36 kB / 0.5813 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.4577, allocations: 8 kB / 0.5813 GB, free: 15.37 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003089/0.458, allocations: 155.2 kB / 0.5815 GB, free: 15.22 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.458, allocations: 0 / 0.5815 GB, free: 15.22 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007976/0.4588, allocations: 111.8 kB / 0.5816 GB, free: 15.11 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.0002108/0.459, allocations: 106.2 kB / 0.5817 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001912/0.4609, allocations: 0.5324 MB / 0.5822 GB, free: 14.44 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.4609, allocations: 0 / 0.5822 GB, free: 14.44 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001212/0.4621, allocations: 433 kB / 0.5826 GB, free: 13.99 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006683/0.4628, allocations: 32.42 kB / 0.5826 GB, free: 13.96 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/0.4648, allocations: 0.549 MB / 0.5832 GB, free: 13.38 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.465, allocations: 155.2 kB / 0.5833 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.4652, allocations: 19.44 kB / 0.5833 GB, free: 13.19 MB / 430.1 MB Notification: Performance of SimCode: time 1.213e-06/0.4652, allocations: 0 / 0.5833 GB, free: 13.19 MB / 430.1 MB Notification: Performance of Templates: time 0.01591/0.4811, allocations: 5.543 MB / 0.5887 GB, free: 7.648 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.536974311806262]