Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001005/0.001005, allocations: 77.97 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001507/0.001507, allocations: 165.3 kB / 24.82 MB, free: 9.27 MB / 18.57 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 0.9867/0.9867, allocations: 177.1 MB / 205.3 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2427/0.2427, allocations: 32.81 MB / 294.6 MB, free: 1.219 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 376.5 MB, free: 4.418 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.928e-05/2.041e-05, allocations: 2.312 kB / 376.5 MB, free: 4.414 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003084/0.003104, allocations: 2.907 MB / 379.4 MB, free: 1.484 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008505/0.003955, allocations: 0.6815 MB / 380.1 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.004068, allocations: 7.938 kB / 380.1 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.004205, allocations: 51.44 kB / 380.1 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001157/0.00432, allocations: 99.06 kB / 380.2 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001307/0.004451, allocations: 91.86 kB / 380.3 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002697/0.004721, allocations: 418.1 kB / 380.7 MB, free: 144 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.004865, allocations: 87.36 kB / 380.8 MB, free: 52 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001867/0.005052, allocations: 227.6 kB / 381 MB, free: 15.83 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.005196, allocations: 119.7 kB / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.036e-05/0.005237, allocations: 36 kB / 381.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.424e-05/0.005271, allocations: 35.94 kB / 381.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.616e-05/0.005317, allocations: 71.75 kB / 381.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 8.603e-05/0.005403, allocations: 127.7 kB / 381.4 MB, free: 15.45 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.005629, allocations: 263 kB / 381.7 MB, free: 15.19 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.005631, allocations: 4 kB / 381.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.005632, allocations: 0 / 381.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.005636, allocations: 0 / 381.7 MB, free: 15.18 MB / 362.7 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.0006/0.006236, allocations: 0.6559 MB / 382.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.006273, allocations: 15.98 kB / 382.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.05e-05/0.006333, allocations: 64.7 kB / 382.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.006536, allocations: 212.5 kB / 382.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.006559, allocations: 21.03 kB / 382.6 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.006586, allocations: 32.31 kB / 382.7 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003089/0.006895, allocations: 350.5 kB / 383 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.006904, allocations: 192 / 383 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.958e-05/0.006924, allocations: 12.38 kB / 383 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.006933, allocations: 15.94 kB / 383 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001137/0.007047, allocations: 88.45 kB / 383.1 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001223/0.008269, allocations: 1.144 MB / 384.3 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.008537, allocations: 222 kB / 384.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.238e-05/0.00863, allocations: 84.09 kB / 384.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.008642, allocations: 4.234 kB / 384.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.008663, allocations: 37.62 kB / 384.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.593e-06/0.008665, allocations: 0 / 384.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001016/0.009681, allocations: 0.569 MB / 385.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.009707, allocations: 55.41 kB / 385.2 MB, free: 11.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.009844, allocations: 269.6 kB / 385.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.009861, allocations: 29.7 kB / 385.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.275e-05/0.009954, allocations: 219.2 kB / 385.7 MB, free: 10.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.703e-05/0.01, allocations: 95.16 kB / 385.8 MB, free: 10.78 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.518e-05/0.01007, allocations: 67.28 kB / 385.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003859/0.01045, allocations: 0.5039 MB / 386.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.848e-05/0.0105, allocations: 35.97 kB / 386.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.366e-05/0.01057, allocations: 99.12 kB / 386.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001284/0.0107, allocations: 142.4 kB / 386.7 MB, free: 9.879 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.01071, allocations: 0 / 386.7 MB, free: 9.879 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003835/0.01109, allocations: 312.5 kB / 387 MB, free: 9.559 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.01111, allocations: 11.98 kB / 387 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.01112, allocations: 0 / 387 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004481/0.01156, allocations: 183.2 kB / 387.2 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.756e-05/0.01164, allocations: 27.98 kB / 387.2 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.01357, allocations: 3.91 MB / 391.1 MB, free: 5.199 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.379e-05/0.01367, allocations: 27.84 kB / 391.1 MB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.01368, allocations: 7.984 kB / 391.1 MB, free: 5.164 MB / 362.7 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.0001059/0.01378, allocations: 180.5 kB / 391.3 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.495e-05/0.01382, allocations: 31.86 kB / 391.3 MB, free: 4.945 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.774e-05/0.01385, allocations: 34.59 kB / 391.4 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-06/0.01385, allocations: 0 / 391.4 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.01386, allocations: 4 kB / 391.4 MB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.01386, allocations: 3.984 kB / 391.4 MB, free: 4.898 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006025/0.01447, allocations: 0.6184 MB / 392 MB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.01447, allocations: 4 kB / 392 MB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.94e-05/0.01451, allocations: 15.98 kB / 392 MB, free: 4.219 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003545/0.01486, allocations: 187 kB / 392.2 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.01487, allocations: 8 kB / 392.2 MB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001973/0.01685, allocations: 3.897 MB / 396.1 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.01685, allocations: 0 / 396.1 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003564/0.01721, allocations: 444.9 kB / 396.5 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.01726, allocations: 39.72 kB / 396.6 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.01728, allocations: 11.98 kB / 396.6 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.894e-05/0.01737, allocations: 19.98 kB / 396.6 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.044e-05/0.01743, allocations: 31.94 kB / 396.6 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.01744, allocations: 8 kB / 396.6 MB, free: 15.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.87e-05/0.01751, allocations: 179 kB / 396.8 MB, free: 15.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.01751, allocations: 4 kB / 396.8 MB, free: 15.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002949/0.0178, allocations: 111.8 kB / 396.9 MB, free: 15.04 MB / 378.7 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.0001122/0.01791, allocations: 103.2 kB / 397 MB, free: 14.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004611/0.01837, allocations: 0.545 MB / 397.6 MB, free: 14.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.01838, allocations: 0 / 397.6 MB, free: 14.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002726/0.01865, allocations: 494.8 kB / 398.1 MB, free: 13.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000245/0.01889, allocations: 52.53 kB / 398.1 MB, free: 13.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007635/0.01966, allocations: 466.8 kB / 398.6 MB, free: 13.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.444e-05/0.01973, allocations: 92.62 kB / 398.7 MB, free: 13.17 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.422e-05/0.01982, allocations: 26.27 kB / 398.7 MB, free: 13.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.01993, allocations: 118.2 kB / 398.8 MB, free: 13.03 MB / 378.7 MB Notification: Performance of SimCode: time 1.383e-06/0.01993, allocations: 0 / 398.8 MB, free: 13.03 MB / 378.7 MB Notification: Performance of Templates: time 0.00701/0.02694, allocations: 5.024 MB / 403.8 MB, free: 8.082 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.087058988865465]