Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0007899/0.0007899, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00108/0.00187, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007056/0.0007056, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009372/0.001643, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.027/1.027, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09336/1.121, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.255/0.255, allocations: 34.25 MB / 278.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02658/0.2816, allocations: 13.1 MB / 291.5 MB, free: 7.332 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 292.8 MB, free: 6.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.998e-05/2.122e-05, allocations: 8.75 kB / 292.8 MB, free: 6.223 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.002919/0.00294, allocations: 2.972 MB / 295.8 MB, free: 3.234 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.004068, allocations: 0.7056 MB / 296.5 MB, free: 2.523 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.004184, allocations: 7.938 kB / 296.5 MB, free: 2.516 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.87e-05/0.004283, allocations: 55.44 kB / 296.6 MB, free: 2.461 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.004423, allocations: 99.06 kB / 296.7 MB, free: 2.363 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001573/0.004581, allocations: 91.86 kB / 296.7 MB, free: 2.273 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003478/0.004928, allocations: 418.1 kB / 297.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002036/0.005132, allocations: 97.94 kB / 297.2 MB, free: 1.766 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003321/0.005464, allocations: 231.6 kB / 297.5 MB, free: 1.539 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.00565, allocations: 123.6 kB / 297.6 MB, free: 1.418 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.233e-05/0.005702, allocations: 39.94 kB / 297.6 MB, free: 1.379 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.873e-05/0.005741, allocations: 32 kB / 297.7 MB, free: 1.348 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.36e-05/0.005785, allocations: 55.81 kB / 297.7 MB, free: 1.293 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.763e-05/0.005862, allocations: 99.88 kB / 297.8 MB, free: 1.195 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002423/0.006105, allocations: 239.1 kB / 298.1 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.321e-05/0.006118, allocations: 0 / 298.1 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.006119, allocations: 0 / 298.1 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.00613, allocations: 0 / 298.1 MB, free: 0.9609 MB / 282.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.0006833/0.006813, allocations: 0.6101 MB / 298.7 MB, free: 336 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.006847, allocations: 12.03 kB / 298.7 MB, free: 324 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.333e-05/0.00691, allocations: 40.91 kB / 298.7 MB, free: 284 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.007142, allocations: 182.8 kB / 298.9 MB, free: 76 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/0.007169, allocations: 21.03 kB / 298.9 MB, free: 56 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.304e-05/0.007202, allocations: 36.38 kB / 298.9 MB, free: 20 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003286/0.00753, allocations: 342 kB / 299.3 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.007541, allocations: 192 / 299.3 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.007558, allocations: 12.38 kB / 299.3 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.007568, allocations: 11.94 kB / 299.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.007672, allocations: 84.48 kB / 299.4 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000995/0.008667, allocations: 0.897 MB / 300.3 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.008928, allocations: 194.4 kB / 300.5 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.566e-05/0.009013, allocations: 73.28 kB / 300.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.009029, allocations: 4.234 kB / 300.6 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.009054, allocations: 34.8 kB / 300.6 MB, free: 14.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.783e-06/0.009056, allocations: 7.938 kB / 300.6 MB, free: 14.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009481/0.01, allocations: 0.5369 MB / 301.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.01003, allocations: 55.41 kB / 301.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.01015, allocations: 197.1 kB / 301.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.01017, allocations: 33.7 kB / 301.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.402e-05/0.01025, allocations: 168.5 kB / 301.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.244e-05/0.01029, allocations: 91.22 kB / 301.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.079e-05/0.01035, allocations: 61.62 kB / 301.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.873e-05/0.01044, allocations: 334.7 kB / 302 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.46e-05/0.01048, allocations: 32.58 kB / 302.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.858e-05/0.01055, allocations: 83.95 kB / 302.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.01067, allocations: 124.7 kB / 302.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.01067, allocations: 4 kB / 302.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003285/0.011, allocations: 266.8 kB / 302.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.01102, allocations: 8 kB / 302.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.01102, allocations: 0 / 302.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004407/0.01146, allocations: 177.6 kB / 302.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.43e-05/0.01156, allocations: 39.92 kB / 302.8 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.01324, allocations: 2.748 MB / 305.5 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.609e-05/0.01334, allocations: 35.77 kB / 305.6 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.01334, allocations: 4 kB / 305.6 MB, free: 9.02 MB / 298.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 9.252e-05/0.01344, allocations: 121.8 kB / 305.7 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/0.01347, allocations: 27.97 kB / 305.7 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.687e-05/0.0135, allocations: 30.66 kB / 305.7 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.0135, allocations: 4 kB / 305.7 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.01351, allocations: 7.969 kB / 305.7 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.01352, allocations: 7.984 kB / 305.8 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005322/0.01405, allocations: 496.6 kB / 306.2 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.01405, allocations: 0 / 306.2 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.785e-05/0.0141, allocations: 23.92 kB / 306.3 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.578e-05/0.01415, allocations: 27.8 kB / 306.3 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003623/0.01451, allocations: 173.5 kB / 306.5 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.01452, allocations: 8 kB / 306.5 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001501/0.01602, allocations: 2.737 MB / 309.2 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01602, allocations: 0 / 309.2 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000311/0.01633, allocations: 337.9 kB / 309.5 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.01635, allocations: 11.88 kB / 309.5 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.624e-05/0.01643, allocations: 28.02 kB / 309.6 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.72e-05/0.01653, allocations: 31.88 kB / 309.6 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.01654, allocations: 4 kB / 309.6 MB, free: 4.727 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.26e-05/0.01659, allocations: 60.8 kB / 309.7 MB, free: 4.664 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01659, allocations: 0 / 309.7 MB, free: 4.664 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002859/0.01688, allocations: 107.8 kB / 309.8 MB, free: 4.559 MB / 298.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.0001142/0.01699, allocations: 92.41 kB / 309.9 MB, free: 4.461 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000467/0.01746, allocations: 433.9 kB / 310.3 MB, free: 4.012 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/0.01747, allocations: 4 kB / 310.3 MB, free: 4.008 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002496/0.01772, allocations: 390.5 kB / 310.7 MB, free: 3.598 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003343/0.01806, allocations: 442.8 kB / 311.1 MB, free: 3.082 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002288/0.02034, allocations: 0.4932 MB / 311.6 MB, free: 2.559 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.86e-05/0.02041, allocations: 96.38 kB / 311.7 MB, free: 2.441 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.176e-05/0.02048, allocations: 26.22 kB / 311.7 MB, free: 2.414 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.02062, allocations: 99.34 kB / 311.8 MB, free: 2.316 MB / 298.7 MB Notification: Performance of SimCode: time 1.764e-06/0.02062, allocations: 0 / 311.8 MB, free: 2.316 MB / 298.7 MB Notification: Performance of Templates: time 0.007151/0.02777, allocations: 5.271 MB / 317.1 MB, free: 13.15 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9978348203003407]