Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001982/0.001982, allocations: 99.53 kB / 20.97 MB, free: 3.453 MB / 18.57 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.002193/0.002193, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 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.628/1.628, allocations: 177 MB / 204.5 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3437/0.3437, allocations: 34.26 MB / 295.2 MB, free: 0.6328 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 377.2 MB, free: 2.914 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.445e-05/2.581e-05, allocations: 2.312 kB / 377.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.005028/0.005054, allocations: 2.902 MB / 380.1 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.006426, allocations: 0.6777 MB / 380.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.006565, allocations: 7.938 kB / 380.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.006745, allocations: 55.44 kB / 380.8 MB, free: 15.24 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.006933, allocations: 91.06 kB / 380.9 MB, free: 15.15 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.007137, allocations: 103.8 kB / 381 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005208/0.007658, allocations: 429.9 kB / 381.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.007864, allocations: 83.34 kB / 381.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003037/0.008168, allocations: 227.6 kB / 381.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.008397, allocations: 119.7 kB / 381.9 MB, free: 14.2 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.271e-05/0.008459, allocations: 32 kB / 381.9 MB, free: 14.17 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.341e-05/0.008523, allocations: 36 kB / 381.9 MB, free: 14.14 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.321e-05/0.008606, allocations: 75.73 kB / 382 MB, free: 14.06 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.008763, allocations: 123.7 kB / 382.1 MB, free: 13.94 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005304/0.009293, allocations: 414.7 kB / 382.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.009297, allocations: 3.938 kB / 382.5 MB, free: 13.53 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.009298, allocations: 0 / 382.5 MB, free: 13.53 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.009305, allocations: 0 / 382.5 MB, free: 13.53 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.001174/0.01048, allocations: 0.6751 MB / 383.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.01051, allocations: 8.031 kB / 383.2 MB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.01064, allocations: 64.7 kB / 383.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.011, allocations: 218.2 kB / 383.5 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.01103, allocations: 17.03 kB / 383.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.792e-05/0.01108, allocations: 32.31 kB / 383.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007116/0.01179, allocations: 433.8 kB / 384 MB, free: 12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.0118, allocations: 192 / 384 MB, free: 12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.657e-05/0.01184, allocations: 16.38 kB / 384 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.01185, allocations: 11.94 kB / 384 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005175/0.01237, allocations: 218.5 kB / 384.2 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002362/0.01473, allocations: 1.3 MB / 385.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006916/0.01542, allocations: 275.6 kB / 385.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005322/0.01595, allocations: 136.1 kB / 385.9 MB, free: 9.973 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.01599, allocations: 8.234 kB / 385.9 MB, free: 9.965 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/0.01602, allocations: 41.61 kB / 386 MB, free: 9.914 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.243e-06/0.01603, allocations: 0 / 386 MB, free: 9.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.002656/0.01868, allocations: 0.7409 MB / 386.7 MB, free: 9.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.01873, allocations: 59.34 kB / 386.8 MB, free: 9.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003422/0.01908, allocations: 310.6 kB / 387.1 MB, free: 8.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.477e-05/0.01911, allocations: 33.7 kB / 387.1 MB, free: 8.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.01929, allocations: 223.3 kB / 387.3 MB, free: 8.508 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.587e-05/0.01938, allocations: 95.17 kB / 387.4 MB, free: 8.414 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.01951, allocations: 67.36 kB / 387.5 MB, free: 8.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002916/0.0198, allocations: 0.5079 MB / 388 MB, free: 7.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.02003, allocations: 91.95 kB / 388.1 MB, free: 7.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002918/0.02032, allocations: 158.2 kB / 388.2 MB, free: 7.555 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004819/0.0208, allocations: 246.4 kB / 388.5 MB, free: 7.293 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.02081, allocations: 0 / 388.5 MB, free: 7.293 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001076/0.02188, allocations: 460.3 kB / 388.9 MB, free: 6.828 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.0219, allocations: 8 kB / 388.9 MB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/0.02191, allocations: 0 / 388.9 MB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/0.02296, allocations: 235.3 kB / 389.2 MB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001756/0.02314, allocations: 31.98 kB / 389.2 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005337/0.02847, allocations: 4.383 MB / 393.6 MB, free: 1.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.02868, allocations: 27.84 kB / 393.6 MB, free: 1.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.0287, allocations: 8 kB / 393.6 MB, free: 1.887 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.0002129/0.02891, allocations: 196.5 kB / 393.8 MB, free: 1.684 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.442e-05/0.02899, allocations: 35.8 kB / 393.8 MB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.418e-05/0.02908, allocations: 34.64 kB / 393.9 MB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.02908, allocations: 4 kB / 393.9 MB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.02909, allocations: 0 / 393.9 MB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.0291, allocations: 7.984 kB / 393.9 MB, free: 1.602 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.03075, allocations: 0.8209 MB / 394.7 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.03076, allocations: 3.938 kB / 394.7 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.496e-05/0.03084, allocations: 12 kB / 394.7 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009788/0.03182, allocations: 243.5 kB / 395 MB, free: 480 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.03184, allocations: 4 kB / 395 MB, free: 476 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005025/0.03686, allocations: 4.368 MB / 399.3 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.03687, allocations: 0 / 399.3 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.03802, allocations: 0.5595 MB / 399.9 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.03812, allocations: 35.78 kB / 399.9 MB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.471e-05/0.03816, allocations: 15.92 kB / 399.9 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.03838, allocations: 27.98 kB / 400 MB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.465e-05/0.03848, allocations: 31.88 kB / 400 MB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.0385, allocations: 8 kB / 400 MB, free: 11.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004273/0.03893, allocations: 208.5 kB / 400.2 MB, free: 10.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03893, allocations: 0 / 400.2 MB, free: 10.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004468/0.03937, allocations: 103.9 kB / 400.3 MB, free: 10.84 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.000142/0.03952, allocations: 99.25 kB / 400.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.04067, allocations: 0.6545 MB / 401.1 MB, free: 10.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.04067, allocations: 0 / 401.1 MB, free: 10.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007716/0.04144, allocations: 0.546 MB / 401.6 MB, free: 9.457 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003926/0.04183, allocations: 44.47 kB / 401.6 MB, free: 9.414 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.04293, allocations: 0.5215 MB / 402.2 MB, free: 8.867 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.04312, allocations: 159.2 kB / 402.3 MB, free: 8.691 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.884e-05/0.04321, allocations: 18.28 kB / 402.3 MB, free: 8.668 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.773e-05/0.04327, allocations: 16.5 kB / 402.4 MB, free: 8.652 MB / 378.7 MB Notification: Performance of SimCode: time 6.62e-07/0.04327, allocations: 0 / 402.4 MB, free: 8.652 MB / 378.7 MB Notification: Performance of Templates: time 0.0116/0.05486, allocations: 4.774 MB / 407.1 MB, free: 3.945 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.1827367200748995]