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.001068/0.001068, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001492/0.001492, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.9619/0.9619, allocations: 177.1 MB / 205 MB, free: 5.641 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.2669/0.2669, allocations: 32.8 MB / 294.3 MB, free: 1.266 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.553e-06/1.553e-06, allocations: 0 / 376 MB, free: 4.688 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.827e-05/1.983e-05, allocations: 2.312 kB / 376 MB, free: 4.684 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.002826/0.002846, allocations: 2.942 MB / 378.9 MB, free: 1.723 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.003911, allocations: 0.6853 MB / 379.6 MB, free: 1.031 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.004053, allocations: 11.94 kB / 379.6 MB, free: 1.02 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.004197, allocations: 51.44 kB / 379.7 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.00433, allocations: 103.1 kB / 379.8 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001555/0.004485, allocations: 91.86 kB / 379.9 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003123/0.004797, allocations: 418.1 kB / 380.3 MB, free: 376 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.004963, allocations: 79.36 kB / 380.4 MB, free: 292 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.005143, allocations: 231.5 kB / 380.6 MB, free: 60 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.005287, allocations: 123.6 kB / 380.7 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.65e-05/0.005333, allocations: 32 kB / 380.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.597e-05/0.005369, allocations: 40 kB / 380.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.388e-05/0.005413, allocations: 71.75 kB / 380.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 8.889e-05/0.005502, allocations: 127.7 kB / 381 MB, free: 15.67 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002443/0.005746, allocations: 259.1 kB / 381.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.005748, allocations: 0 / 381.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.005749, allocations: 0 / 381.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.005755, allocations: 0 / 381.2 MB, free: 15.42 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.0007111/0.006466, allocations: 0.6598 MB / 381.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.006509, allocations: 15.98 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.809e-05/0.006597, allocations: 56.7 kB / 382 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.006874, allocations: 220.5 kB / 382.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.006909, allocations: 25.03 kB / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.49e-05/0.006944, allocations: 28.38 kB / 382.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004254/0.007369, allocations: 370.4 kB / 382.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.007382, allocations: 192 / 382.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.64e-05/0.007408, allocations: 16.38 kB / 382.6 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.007422, allocations: 11.94 kB / 382.6 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001846/0.007607, allocations: 115.8 kB / 382.7 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001312/0.008919, allocations: 1.179 MB / 383.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003579/0.009277, allocations: 231.6 kB / 384.1 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.009414, allocations: 96.11 kB / 384.2 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.009429, allocations: 4.234 kB / 384.2 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.009455, allocations: 41.62 kB / 384.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.893e-06/0.009457, allocations: 4 kB / 384.3 MB, free: 12.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001286/0.01074, allocations: 0.5964 MB / 384.9 MB, free: 11.56 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.01078, allocations: 55.41 kB / 384.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001924/0.01097, allocations: 269.7 kB / 385.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.01099, allocations: 33.7 kB / 385.2 MB, free: 11.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.026e-05/0.01108, allocations: 219.3 kB / 385.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.546e-05/0.01112, allocations: 91.19 kB / 385.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.541e-05/0.01119, allocations: 63.31 kB / 385.6 MB, free: 10.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.01132, allocations: 0.5039 MB / 386.1 MB, free: 10.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.072e-05/0.0114, allocations: 43.97 kB / 386.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.929e-05/0.0115, allocations: 111.1 kB / 386.2 MB, free: 10.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/0.01168, allocations: 162.4 kB / 386.4 MB, free: 9.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.01169, allocations: 0 / 386.4 MB, free: 9.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004548/0.01214, allocations: 336.5 kB / 386.7 MB, free: 9.586 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.01216, allocations: 9.656 kB / 386.7 MB, free: 9.578 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.01216, allocations: 4.125 kB / 386.7 MB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005932/0.01276, allocations: 191.2 kB / 386.9 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.472e-05/0.01284, allocations: 27.98 kB / 387 MB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002259/0.0151, allocations: 3.986 MB / 390.9 MB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.948e-05/0.0152, allocations: 27.84 kB / 391 MB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.01521, allocations: 12 kB / 391 MB, free: 5.086 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.0001008/0.01531, allocations: 172.5 kB / 391.2 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.119e-05/0.01536, allocations: 39.8 kB / 391.2 MB, free: 4.867 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.971e-05/0.01538, allocations: 30.66 kB / 391.2 MB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.01539, allocations: 4 kB / 391.2 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.01539, allocations: 7.969 kB / 391.2 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.0154, allocations: 7.922 kB / 391.2 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006943/0.01609, allocations: 0.6726 MB / 391.9 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.0161, allocations: 3.938 kB / 391.9 MB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.758e-05/0.01614, allocations: 19.98 kB / 391.9 MB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003951/0.01654, allocations: 191.6 kB / 392.1 MB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.01655, allocations: 4 kB / 392.1 MB, free: 3.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002303/0.01885, allocations: 3.97 MB / 396.1 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.01886, allocations: 4 kB / 396.1 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005531/0.01941, allocations: 461 kB / 396.6 MB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.526e-05/0.01949, allocations: 43.77 kB / 396.6 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.01951, allocations: 8 kB / 396.6 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.01962, allocations: 32 kB / 396.6 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.783e-05/0.0197, allocations: 27.89 kB / 396.7 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.01971, allocations: 12 kB / 396.7 MB, free: 15.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.923e-05/0.01981, allocations: 187.1 kB / 396.9 MB, free: 14.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01981, allocations: 0 / 396.9 MB, free: 14.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003002/0.02011, allocations: 111.8 kB / 397 MB, free: 14.76 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 9.928e-05/0.02021, allocations: 107.2 kB / 397.1 MB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005478/0.02076, allocations: 0.5567 MB / 397.6 MB, free: 14.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.02076, allocations: 0 / 397.6 MB, free: 14.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004201/0.02118, allocations: 0.4991 MB / 398.1 MB, free: 13.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000245/0.02142, allocations: 40.48 kB / 398.2 MB, free: 13.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007699/0.02219, allocations: 490.8 kB / 398.6 MB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.949e-05/0.02226, allocations: 92.62 kB / 398.7 MB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.434e-05/0.02233, allocations: 18.3 kB / 398.8 MB, free: 12.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.019e-05/0.02237, allocations: 16.5 kB / 398.8 MB, free: 12.82 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.02237, allocations: 0 / 398.8 MB, free: 12.82 MB / 378.7 MB Notification: Performance of Templates: time 0.007039/0.02941, allocations: 4.963 MB / 403.7 MB, free: 7.918 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.1770680961199105]