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.00153/0.00153, allocations: 78.66 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.001484/0.001484, allocations: 170.3 kB / 24.82 MB, free: 9.262 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.089/1.089, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.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.2776/0.2776, allocations: 34.25 MB / 296.1 MB, free: 0.6602 MB / 266.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 2.224e-06/2.224e-06, allocations: 0 / 378.5 MB, free: 2.387 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.442e-05/2.664e-05, allocations: 2.312 kB / 378.5 MB, free: 2.383 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.006561/0.006588, allocations: 2.907 MB / 381.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.004341/0.01093, allocations: 0.6775 MB / 382.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.01112, allocations: 4 kB / 382.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001601/0.01128, allocations: 59.44 kB / 382.1 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001674/0.01145, allocations: 95.06 kB / 382.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001779/0.01162, allocations: 95.84 kB / 382.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.000376/0.012, allocations: 422.1 kB / 382.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.01219, allocations: 83.34 kB / 382.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000277/0.01247, allocations: 231.5 kB / 383 MB, free: 13.8 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/0.01263, allocations: 123.7 kB / 383.2 MB, free: 13.68 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.842e-05/0.01268, allocations: 36 kB / 383.2 MB, free: 13.64 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.28e-05/0.01272, allocations: 32 kB / 383.2 MB, free: 13.61 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.626e-05/0.01278, allocations: 79.72 kB / 383.3 MB, free: 13.53 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.01289, allocations: 119.7 kB / 383.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003319/0.01621, allocations: 263.1 kB / 383.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.01621, allocations: 0 / 383.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.01621, allocations: 0 / 383.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.01622, allocations: 0 / 383.7 MB, free: 13.16 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.0007338/0.01695, allocations: 0.6559 MB / 384.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.01699, allocations: 12.03 kB / 384.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.984e-05/0.01707, allocations: 56.7 kB / 384.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.01732, allocations: 228.5 kB / 384.6 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.01735, allocations: 21.03 kB / 384.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.306e-05/0.01738, allocations: 28.38 kB / 384.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003639/0.01775, allocations: 342.5 kB / 385 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.01776, allocations: 192 / 385 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.505e-05/0.01778, allocations: 20.38 kB / 385 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.01779, allocations: 11.94 kB / 385 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001456/0.01794, allocations: 96.44 kB / 385.1 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004376/0.02231, allocations: 1.14 MB / 386.3 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003397/0.02265, allocations: 214.7 kB / 386.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.02277, allocations: 96.05 kB / 386.6 MB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.02279, allocations: 4.234 kB / 386.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.02282, allocations: 41.62 kB / 386.6 MB, free: 10.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 2.434e-06/0.02282, allocations: 0 / 386.6 MB, free: 10.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.004327/0.02715, allocations: 0.5729 MB / 387.2 MB, free: 9.438 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.02717, allocations: 51.41 kB / 387.2 MB, free: 9.375 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.02735, allocations: 267.4 kB / 387.5 MB, free: 9.098 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.02738, allocations: 29.7 kB / 387.5 MB, free: 9.062 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.02749, allocations: 219.2 kB / 387.7 MB, free: 8.844 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.319e-05/0.02755, allocations: 95.16 kB / 387.8 MB, free: 8.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.361e-05/0.02763, allocations: 63.28 kB / 387.9 MB, free: 8.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.02778, allocations: 0.5117 MB / 388.4 MB, free: 8.156 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.923e-05/0.02783, allocations: 31.97 kB / 388.4 MB, free: 8.125 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005243/0.02836, allocations: 91.14 kB / 388.5 MB, free: 8.016 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001775/0.02854, allocations: 150.3 kB / 388.7 MB, free: 7.848 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.02854, allocations: 0 / 388.7 MB, free: 7.848 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005468/0.02909, allocations: 312.5 kB / 389 MB, free: 7.527 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.02911, allocations: 8 kB / 389 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.02911, allocations: 0 / 389 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005664/0.02968, allocations: 179.2 kB / 389.2 MB, free: 7.336 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.02979, allocations: 35.92 kB / 389.2 MB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002612/0.0324, allocations: 3.905 MB / 393.1 MB, free: 3.172 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001257/0.03253, allocations: 31.77 kB / 393.1 MB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.03254, allocations: 8 kB / 393.1 MB, free: 3.133 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.0001179/0.03266, allocations: 172.5 kB / 393.3 MB, free: 2.953 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.022e-05/0.03271, allocations: 35.86 kB / 393.4 MB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.897e-05/0.03275, allocations: 42.61 kB / 393.4 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.03275, allocations: 7.984 kB / 393.4 MB, free: 2.863 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.03276, allocations: 3.938 kB / 393.4 MB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.03277, allocations: 0 / 393.4 MB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007922/0.03356, allocations: 0.6262 MB / 394 MB, free: 2.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.03356, allocations: 0 / 394 MB, free: 2.191 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.24e-05/0.03361, allocations: 15.94 kB / 394 MB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004748/0.03409, allocations: 175.2 kB / 394.2 MB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.0341, allocations: 8 kB / 394.2 MB, free: 1.988 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002372/0.03647, allocations: 3.893 MB / 398.1 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.03647, allocations: 0 / 398.1 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005067/0.03698, allocations: 436.9 kB / 398.5 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.176e-05/0.03706, allocations: 55.73 kB / 398.6 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/0.03708, allocations: 0 / 398.6 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.03721, allocations: 27.92 kB / 398.6 MB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.259e-05/0.0373, allocations: 39.92 kB / 398.7 MB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.03731, allocations: 4 kB / 398.7 MB, free: 13.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.732e-05/0.0374, allocations: 171.1 kB / 398.8 MB, free: 13.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0374, allocations: 0 / 398.8 MB, free: 13.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003985/0.03779, allocations: 111.8 kB / 398.9 MB, free: 13.01 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.0001187/0.03791, allocations: 111.2 kB / 399.1 MB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005709/0.03848, allocations: 0.5371 MB / 399.6 MB, free: 12.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.03849, allocations: 4.25 kB / 399.6 MB, free: 12.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003622/0.03885, allocations: 0.491 MB / 400.1 MB, free: 11.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.03918, allocations: 47.47 kB / 400.1 MB, free: 11.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009625/0.04015, allocations: 474.8 kB / 400.6 MB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.728e-05/0.04023, allocations: 96.61 kB / 400.7 MB, free: 11.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.899e-05/0.04031, allocations: 18.3 kB / 400.7 MB, free: 11.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.04046, allocations: 114.2 kB / 400.8 MB, free: 11 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.04046, allocations: 0 / 400.8 MB, free: 11 MB / 378.7 MB Notification: Performance of Templates: time 0.01485/0.05531, allocations: 5.02 MB / 405.8 MB, free: 6.051 MB / 378.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.297079226002097]