Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00993/0.00993, allocations: 105.7 kB / 21.98 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002483/0.002483, allocations: 222.4 kB / 25.3 MB, free: 3.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 230.5 MB / 258.9 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2304/0.2304, allocations: 46.93 MB / 362.3 MB, free: 4.188 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002412/0.002412, allocations: 83.84 kB / 0.4982 GB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3488, allocations: 66.07 MB / 0.5627 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004724/0.3535, allocations: 2.949 MB / 0.5656 GB, free: 1.289 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.3548, allocations: 0.696 MB / 0.5663 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.3549, allocations: 4 kB / 0.5663 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.3551, allocations: 59.44 kB / 0.5663 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001726/0.3553, allocations: 83.19 kB / 0.5664 GB, free: 456 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001827/0.3555, allocations: 99.86 kB / 0.5665 GB, free: 356 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004776/0.3559, allocations: 414 kB / 0.5669 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002116/0.3562, allocations: 95.33 kB / 0.567 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001864/0.3563, allocations: 155.5 kB / 0.5671 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002465/0.3566, allocations: 171.3 kB / 0.5673 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.139e-05/0.3566, allocations: 32 kB / 0.5673 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.974e-05/0.3567, allocations: 36 kB / 0.5674 GB, free: 15.46 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.404e-05/0.3568, allocations: 71.75 kB / 0.5674 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.357, allocations: 167.2 kB / 0.5676 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000465/0.3574, allocations: 402.1 kB / 0.568 GB, free: 14.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3574, allocations: 0 / 0.568 GB, free: 14.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3574, allocations: 0 / 0.568 GB, free: 14.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.3574, allocations: 0 / 0.568 GB, free: 14.84 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.001067/0.3585, allocations: 0.5638 MB / 0.5685 GB, free: 14.24 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.3585, allocations: 12.03 kB / 0.5686 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.1e-05/0.3586, allocations: 32.75 kB / 0.5686 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004116/0.359, allocations: 219.5 kB / 0.5688 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.838e-05/0.3591, allocations: 25.03 kB / 0.5688 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.334e-05/0.3591, allocations: 24.38 kB / 0.5688 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006255/0.3597, allocations: 330.2 kB / 0.5692 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.3597, allocations: 0 / 0.5692 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.353e-05/0.3598, allocations: 16 kB / 0.5692 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3598, allocations: 8 kB / 0.5692 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005225/0.3603, allocations: 242.5 kB / 0.5694 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002136/0.3624, allocations: 1.204 MB / 0.5706 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006995/0.3631, allocations: 298.8 kB / 0.5709 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003143/0.3635, allocations: 137.3 kB / 0.571 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.3635, allocations: 4.234 kB / 0.571 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.3635, allocations: 38.73 kB / 0.571 GB, free: 11.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.553e-06/0.3635, allocations: 0 / 0.571 GB, free: 11.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002779/0.3663, allocations: 0.8639 MB / 0.5719 GB, free: 10.67 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.3664, allocations: 59.41 kB / 0.5719 GB, free: 10.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003059/0.3667, allocations: 233.1 kB / 0.5722 GB, free: 10.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.656e-05/0.3667, allocations: 37.69 kB / 0.5722 GB, free: 10.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.3668, allocations: 168.6 kB / 0.5724 GB, free: 10.15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.048e-05/0.3669, allocations: 95.17 kB / 0.5725 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.525e-05/0.367, allocations: 49.7 kB / 0.5725 GB, free: 10 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.3672, allocations: 338.8 kB / 0.5728 GB, free: 9.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000245/0.3674, allocations: 103.9 kB / 0.5729 GB, free: 9.559 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002641/0.3677, allocations: 148 kB / 0.5731 GB, free: 9.398 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004966/0.3682, allocations: 248.1 kB / 0.5733 GB, free: 9.141 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3682, allocations: 0 / 0.5733 GB, free: 9.141 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001135/0.3693, allocations: 0.4909 MB / 0.5738 GB, free: 8.637 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.3694, allocations: 10.34 kB / 0.5738 GB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.3694, allocations: 4 kB / 0.5738 GB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009375/0.3703, allocations: 229.5 kB / 0.574 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.3705, allocations: 39.92 kB / 0.574 GB, free: 8.355 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004472/0.3749, allocations: 3.473 MB / 0.5774 GB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.3751, allocations: 35.92 kB / 0.5775 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/0.3752, allocations: 12 kB / 0.5775 GB, free: 4.609 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.0001835/0.3754, allocations: 149.1 kB / 0.5776 GB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.579e-05/0.3754, allocations: 23.86 kB / 0.5777 GB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.322e-05/0.3755, allocations: 34.97 kB / 0.5777 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.3755, allocations: 0 / 0.5777 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-05/0.3755, allocations: 11.92 kB / 0.5777 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3755, allocations: 0 / 0.5777 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001701/0.3772, allocations: 0.86 MB / 0.5785 GB, free: 3.469 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.3772, allocations: 0 / 0.5785 GB, free: 3.469 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.539e-05/0.3773, allocations: 19.92 kB / 0.5786 GB, free: 3.449 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008543/0.3782, allocations: 230 kB / 0.5788 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.3782, allocations: 7.984 kB / 0.5788 GB, free: 3.211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00436/0.3825, allocations: 3.485 MB / 0.5822 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3825, allocations: 0 / 0.5822 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.3837, allocations: 0.5213 MB / 0.5827 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.3838, allocations: 51.7 kB / 0.5827 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.265e-05/0.3838, allocations: 8 kB / 0.5828 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002398/0.384, allocations: 31.97 kB / 0.5828 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.29e-05/0.3841, allocations: 27.94 kB / 0.5828 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.3842, allocations: 7.938 kB / 0.5828 GB, free: 14.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001796/0.3843, allocations: 180.5 kB / 0.583 GB, free: 14.65 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3843, allocations: 0 / 0.583 GB, free: 14.65 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004624/0.3848, allocations: 115.8 kB / 0.5831 GB, free: 14.54 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.0001313/0.3849, allocations: 106.8 kB / 0.5832 GB, free: 14.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.386, allocations: 0.5287 MB / 0.5837 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.386, allocations: 0 / 0.5837 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006434/0.3866, allocations: 429.1 kB / 0.5841 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.387, allocations: 56.8 kB / 0.5842 GB, free: 13.38 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.3881, allocations: 0.5495 MB / 0.5847 GB, free: 12.79 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000437/0.3885, allocations: 0.7639 MB / 0.5855 GB, free: 12 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.99e-05/0.3886, allocations: 19.44 kB / 0.5855 GB, free: 11.98 MB / 430.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3886, allocations: 0 / 0.5855 GB, free: 11.98 MB / 430.1 MB Notification: Performance of Templates: time 0.008796/0.3974, allocations: 5.592 MB / 0.5909 GB, free: 6.398 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_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-beta.om_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.542820991948247]