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.001369/0.001369, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001624/0.001624, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.523/1.523, allocations: 230.5 MB / 258.2 MB, free: 8.043 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.2933/0.2933, allocations: 46.93 MB / 361.6 MB, free: 4.195 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-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.002399/0.002399, allocations: 79.86 kB / 0.4974 GB, free: 7.281 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3953/0.3977, allocations: 66.08 MB / 0.562 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.005624/0.4033, allocations: 2.957 MB / 0.5649 GB, free: 1.305 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.4047, allocations: 0.6922 MB / 0.5655 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.4049, allocations: 4 kB / 0.5655 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.4051, allocations: 55.44 kB / 0.5656 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001608/0.4052, allocations: 91.19 kB / 0.5657 GB, free: 472 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001875/0.4054, allocations: 95.86 kB / 0.5658 GB, free: 376 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000478/0.4059, allocations: 418.1 kB / 0.5662 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.4061, allocations: 91.27 kB / 0.5663 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.4063, allocations: 155.5 kB / 0.5664 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002489/0.4066, allocations: 175.3 kB / 0.5666 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.302e-05/0.4066, allocations: 32 kB / 0.5666 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.321e-05/0.4067, allocations: 36 kB / 0.5666 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.132e-05/0.4068, allocations: 75.77 kB / 0.5667 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.4069, allocations: 163.2 kB / 0.5669 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000593/0.4075, allocations: 394.1 kB / 0.5672 GB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.4075, allocations: 3.938 kB / 0.5672 GB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4075, allocations: 0 / 0.5672 GB, free: 14.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.4075, allocations: 0 / 0.5672 GB, free: 14.86 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.001431/0.409, allocations: 0.5677 MB / 0.5678 GB, free: 14.26 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.409, allocations: 12.03 kB / 0.5678 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.455e-05/0.4091, allocations: 32.75 kB / 0.5678 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004483/0.4095, allocations: 223.5 kB / 0.5681 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.4096, allocations: 21.03 kB / 0.5681 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.241e-05/0.4096, allocations: 24.38 kB / 0.5681 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006766/0.4103, allocations: 330.2 kB / 0.5684 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.4103, allocations: 0 / 0.5684 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/0.4104, allocations: 20 kB / 0.5684 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.4104, allocations: 8 kB / 0.5684 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000517/0.4109, allocations: 238.5 kB / 0.5687 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002207/0.4131, allocations: 1.208 MB / 0.5698 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008198/0.4139, allocations: 290.9 kB / 0.5701 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002957/0.4142, allocations: 140.8 kB / 0.5703 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.4142, allocations: 4.234 kB / 0.5703 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.4143, allocations: 38.73 kB / 0.5703 GB, free: 11.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.232e-06/0.4143, allocations: 0 / 0.5703 GB, free: 11.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002897/0.4172, allocations: 0.8679 MB / 0.5711 GB, free: 10.69 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.4172, allocations: 55.41 kB / 0.5712 GB, free: 10.62 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.4175, allocations: 233.1 kB / 0.5714 GB, free: 10.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.663e-05/0.4175, allocations: 33.7 kB / 0.5715 GB, free: 10.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.4177, allocations: 172.6 kB / 0.5716 GB, free: 10.17 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.128e-05/0.4177, allocations: 95.17 kB / 0.5717 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.028e-05/0.4178, allocations: 49.7 kB / 0.5718 GB, free: 10.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002511/0.4181, allocations: 338.8 kB / 0.5721 GB, free: 9.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002349/0.4183, allocations: 103.9 kB / 0.5722 GB, free: 9.578 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003191/0.4186, allocations: 151.9 kB / 0.5723 GB, free: 9.414 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004919/0.4191, allocations: 244.2 kB / 0.5726 GB, free: 9.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4191, allocations: 0 / 0.5726 GB, free: 9.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001225/0.4204, allocations: 0.4908 MB / 0.573 GB, free: 8.656 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.4204, allocations: 4 kB / 0.573 GB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.4204, allocations: 7.984 kB / 0.573 GB, free: 8.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.4214, allocations: 233.5 kB / 0.5733 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.4216, allocations: 43.92 kB / 0.5733 GB, free: 8.367 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004739/0.4263, allocations: 3.478 MB / 0.5767 GB, free: 4.664 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/0.4265, allocations: 31.86 kB / 0.5767 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.4266, allocations: 12 kB / 0.5768 GB, free: 4.621 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.0001723/0.4267, allocations: 141.7 kB / 0.5769 GB, free: 4.473 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.185e-05/0.4268, allocations: 23.86 kB / 0.5769 GB, free: 4.449 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.026e-05/0.4269, allocations: 38.95 kB / 0.5769 GB, free: 4.406 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.4269, allocations: 4.062 kB / 0.5769 GB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.4269, allocations: 7.938 kB / 0.577 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.4269, allocations: 0 / 0.577 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.4287, allocations: 0.8522 MB / 0.5778 GB, free: 3.488 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.4287, allocations: 4 kB / 0.5778 GB, free: 3.484 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.374e-05/0.4288, allocations: 19.92 kB / 0.5778 GB, free: 3.465 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009849/0.4298, allocations: 233.5 kB / 0.578 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.4298, allocations: 4 kB / 0.578 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004502/0.4343, allocations: 3.482 MB / 0.5814 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4343, allocations: 0 / 0.5814 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.4354, allocations: 0.5329 MB / 0.582 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.4356, allocations: 51.62 kB / 0.582 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.34e-05/0.4356, allocations: 8 kB / 0.582 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002198/0.4358, allocations: 23.98 kB / 0.582 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.102e-05/0.4359, allocations: 27.94 kB / 0.5821 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.4359, allocations: 8 kB / 0.5821 GB, free: 14.84 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002464/0.4362, allocations: 176.5 kB / 0.5822 GB, free: 14.67 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4362, allocations: 4 kB / 0.5822 GB, free: 14.67 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004528/0.4366, allocations: 111.8 kB / 0.5824 GB, free: 14.56 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.0002559/0.4369, allocations: 111.2 kB / 0.5825 GB, free: 14.44 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.438, allocations: 0.5287 MB / 0.583 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.438, allocations: 0 / 0.583 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006389/0.4386, allocations: 433.1 kB / 0.5834 GB, free: 13.44 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.439, allocations: 40.42 kB / 0.5834 GB, free: 13.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.4401, allocations: 0.5205 MB / 0.5839 GB, free: 12.85 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005074/0.4406, allocations: 0.7678 MB / 0.5847 GB, free: 12.06 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.541e-05/0.4407, allocations: 18.3 kB / 0.5847 GB, free: 12.04 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.994e-05/0.4407, allocations: 19.44 kB / 0.5847 GB, free: 12.02 MB / 430.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4407, allocations: 0 / 0.5847 GB, free: 12.02 MB / 430.1 MB Notification: Performance of Templates: time 0.01173/0.4525, allocations: 4.838 MB / 0.5894 GB, free: 7.227 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/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-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: 5.597660139203072]