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.001205/0.001205, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001556/0.001556, allocations: 167.3 kB / 24.99 MB, free: 8.746 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 1.028/1.028, allocations: 177.1 MB / 205.3 MB, free: 5.645 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.2785/0.2785, allocations: 32.81 MB / 294.6 MB, free: 1.285 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.794e-06/1.794e-06, allocations: 0 / 376 MB, free: 5.004 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.031e-05/3.21e-05, allocations: 2.312 kB / 376 MB, free: 5 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003393/0.003426, allocations: 2.938 MB / 378.9 MB, free: 2.043 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.004697, allocations: 0.6814 MB / 379.6 MB, free: 1.355 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.00487, allocations: 4 kB / 379.6 MB, free: 1.352 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.005034, allocations: 51.5 kB / 379.7 MB, free: 1.301 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001426/0.005176, allocations: 99.06 kB / 379.8 MB, free: 1.203 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001875/0.005364, allocations: 91.86 kB / 379.8 MB, free: 1.113 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003853/0.005749, allocations: 422.1 kB / 380.3 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.005959, allocations: 79.36 kB / 380.3 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002812/0.00624, allocations: 235.5 kB / 380.6 MB, free: 396 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.006388, allocations: 123.7 kB / 380.7 MB, free: 272 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.572e-05/0.006433, allocations: 32 kB / 380.7 MB, free: 240 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.01e-05/0.006463, allocations: 36 kB / 380.8 MB, free: 204 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.247e-05/0.006516, allocations: 79.73 kB / 380.8 MB, free: 124 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.662e-05/0.006613, allocations: 119.7 kB / 380.9 MB, free: 4 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001392/0.008005, allocations: 263.2 kB / 381.2 MB, free: 15.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.00801, allocations: 0 / 381.2 MB, free: 15.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.008011, allocations: 0 / 381.2 MB, free: 15.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.008017, allocations: 4 kB / 381.2 MB, free: 15.74 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.0008794/0.008896, allocations: 0.6559 MB / 381.9 MB, free: 15.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.008942, allocations: 11.98 kB / 381.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.41e-05/0.009036, allocations: 60.7 kB / 381.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.009343, allocations: 221.1 kB / 382.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.406e-05/0.009377, allocations: 25.03 kB / 382.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.009406, allocations: 28.38 kB / 382.2 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000407/0.009813, allocations: 366.5 kB / 382.6 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.009824, allocations: 192 / 382.6 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/0.009846, allocations: 16.38 kB / 382.6 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.00986, allocations: 15.88 kB / 382.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.01005, allocations: 115.8 kB / 382.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.0113, allocations: 1.179 MB / 383.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003554/0.01166, allocations: 233.9 kB / 384.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.0118, allocations: 100.1 kB / 384.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.01181, allocations: 4.234 kB / 384.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.01184, allocations: 37.62 kB / 384.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.473e-06/0.01184, allocations: 4 kB / 384.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001211/0.01305, allocations: 0.6002 MB / 384.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.01308, allocations: 55.41 kB / 384.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001717/0.01326, allocations: 269.7 kB / 385.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.01327, allocations: 33.7 kB / 385.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.859e-05/0.01336, allocations: 219.3 kB / 385.4 MB, free: 11.28 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.595e-05/0.01341, allocations: 99.16 kB / 385.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.729e-05/0.01348, allocations: 63.31 kB / 385.6 MB, free: 11.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.0136, allocations: 0.4962 MB / 386.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.95e-05/0.01369, allocations: 47.97 kB / 386.1 MB, free: 10.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/0.01379, allocations: 107.1 kB / 386.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.01397, allocations: 162.4 kB / 386.4 MB, free: 10.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.01397, allocations: 0 / 386.4 MB, free: 10.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004473/0.01442, allocations: 344.4 kB / 386.7 MB, free: 9.902 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.01444, allocations: 5.875 kB / 386.7 MB, free: 9.898 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.01444, allocations: 4.125 kB / 386.7 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005043/0.01495, allocations: 179.2 kB / 386.9 MB, free: 9.711 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.701e-05/0.01504, allocations: 31.92 kB / 386.9 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002228/0.01726, allocations: 3.99 MB / 390.9 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.764e-05/0.01736, allocations: 27.83 kB / 391 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.01738, allocations: 15.94 kB / 391 MB, free: 5.402 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.0001114/0.01749, allocations: 176.4 kB / 391.1 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.127e-05/0.01753, allocations: 39.8 kB / 391.2 MB, free: 5.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.323e-05/0.01756, allocations: 34.64 kB / 391.2 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.01756, allocations: 0 / 391.2 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.555e-05/0.01758, allocations: 8.031 kB / 391.2 MB, free: 5.137 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.01758, allocations: 0 / 391.2 MB, free: 5.137 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00073/0.01831, allocations: 0.6686 MB / 391.9 MB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.01832, allocations: 3.938 kB / 391.9 MB, free: 4.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.656e-05/0.01836, allocations: 23.92 kB / 391.9 MB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000422/0.01878, allocations: 183.7 kB / 392.1 MB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.0188, allocations: 4 kB / 392.1 MB, free: 4.199 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002057/0.02085, allocations: 3.978 MB / 396.1 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.02086, allocations: 0 / 396.1 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004655/0.02132, allocations: 464.9 kB / 396.5 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.94e-05/0.02138, allocations: 43.77 kB / 396.6 MB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.753e-05/0.0214, allocations: 11.92 kB / 396.6 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.0215, allocations: 28.02 kB / 396.6 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.167e-05/0.02158, allocations: 31.88 kB / 396.6 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.02159, allocations: 12 kB / 396.7 MB, free: 15.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.467e-05/0.02169, allocations: 183.1 kB / 396.8 MB, free: 15.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02169, allocations: 0 / 396.8 MB, free: 15.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003056/0.02199, allocations: 111.8 kB / 396.9 MB, free: 15.08 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.0001104/0.0221, allocations: 103.2 kB / 397 MB, free: 14.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005609/0.02266, allocations: 0.5606 MB / 397.6 MB, free: 14.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.02267, allocations: 3.938 kB / 397.6 MB, free: 14.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003085/0.02298, allocations: 0.4914 MB / 398.1 MB, free: 13.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.02324, allocations: 40.48 kB / 398.1 MB, free: 13.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008614/0.0241, allocations: 489.6 kB / 398.6 MB, free: 13.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.14e-05/0.02416, allocations: 100.5 kB / 398.7 MB, free: 13.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.148e-05/0.02422, allocations: 18.3 kB / 398.7 MB, free: 13.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.825e-05/0.02426, allocations: 16.5 kB / 398.8 MB, free: 13.14 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.02426, allocations: 0 / 398.8 MB, free: 13.14 MB / 378.7 MB Notification: Performance of Templates: time 0.006555/0.03082, allocations: 4.77 MB / 403.5 MB, free: 8.434 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.5801364441867918]