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.001304/0.001304, allocations: 84.55 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001392/0.001392, allocations: 165.7 kB / 23.95 MB, free: 4.156 MB / 14.72 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.572/1.572, allocations: 177.1 MB / 204.3 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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.2491/0.2491, allocations: 34.28 MB / 294.9 MB, free: 14.57 MB / 286.1 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.643e-06/1.643e-06, allocations: 0 / 442.7 MB, free: 5.402 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.679e-05/2.843e-05, allocations: 2.281 kB / 442.7 MB, free: 5.398 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004419/0.004447, allocations: 2.725 MB / 445.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.005963, allocations: 0.666 MB / 446.1 MB, free: 1.984 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.006125, allocations: 4 kB / 446.1 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001953/0.00632, allocations: 55.44 kB / 446.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001907/0.006511, allocations: 95.06 kB / 446.2 MB, free: 1.832 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.006727, allocations: 99.84 kB / 446.3 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000482/0.007209, allocations: 414.1 kB / 446.7 MB, free: 1.328 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000231/0.00744, allocations: 87.34 kB / 446.8 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002861/0.007726, allocations: 227.6 kB / 447 MB, free: 1.016 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.007942, allocations: 111.7 kB / 447.1 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.648e-05/0.008008, allocations: 36 kB / 447.2 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.165e-05/0.00807, allocations: 32 kB / 447.2 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.289e-05/0.008153, allocations: 79.67 kB / 447.3 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001758/0.008329, allocations: 127.7 kB / 447.4 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004769/0.008806, allocations: 410.6 kB / 447.8 MB, free: 240 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.008809, allocations: 4 kB / 447.8 MB, free: 236 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.00881, allocations: 0 / 447.8 MB, free: 236 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.008817, allocations: 0 / 447.8 MB, free: 236 kB / 366.1 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.2516/0.2604, allocations: 0.5537 MB / 448.4 MB, free: 19.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.2604, allocations: 9.281 kB / 448.4 MB, free: 19.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.945e-05/0.2605, allocations: 38.2 kB / 448.4 MB, free: 19.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000396/0.2609, allocations: 214.3 kB / 448.6 MB, free: 19.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.076e-05/0.261, allocations: 22.38 kB / 448.6 MB, free: 19.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.303e-05/0.261, allocations: 32.09 kB / 448.7 MB, free: 19.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007192/0.2617, allocations: 426.2 kB / 449.1 MB, free: 19.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.2617, allocations: 1.219 kB / 449.1 MB, free: 19.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.28e-05/0.2618, allocations: 10.97 kB / 449.1 MB, free: 19.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.2618, allocations: 10.89 kB / 449.1 MB, free: 19.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005571/0.2623, allocations: 249.9 kB / 449.3 MB, free: 19.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.2643, allocations: 1.084 MB / 450.4 MB, free: 18.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007501/0.265, allocations: 282.4 kB / 450.7 MB, free: 18.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000343/0.2654, allocations: 147.2 kB / 450.8 MB, free: 18.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.2654, allocations: 6.719 kB / 450.9 MB, free: 18.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.2654, allocations: 35.31 kB / 450.9 MB, free: 18.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.813e-06/0.2654, allocations: 0 / 450.9 MB, free: 18.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003173/0.2686, allocations: 0.8568 MB / 451.7 MB, free: 17.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.2687, allocations: 54.53 kB / 451.8 MB, free: 17.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.2689, allocations: 218.7 kB / 452 MB, free: 17.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.2689, allocations: 34.22 kB / 452 MB, free: 17.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.269, allocations: 167.5 kB / 452.2 MB, free: 17.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.617e-05/0.2691, allocations: 96.55 kB / 452.3 MB, free: 17.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.327e-05/0.2692, allocations: 57 kB / 452.4 MB, free: 17.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.826e-05/0.2693, allocations: 334.7 kB / 452.7 MB, free: 17.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/0.2695, allocations: 104.3 kB / 452.8 MB, free: 17.1 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.2698, allocations: 154.5 kB / 452.9 MB, free: 17.01 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000507/0.2703, allocations: 253.5 kB / 453.2 MB, free: 16.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2703, allocations: 1.375 kB / 453.2 MB, free: 16.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00127/0.2716, allocations: 473.5 kB / 453.7 MB, free: 16.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.2716, allocations: 8.609 kB / 453.7 MB, free: 16.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.2716, allocations: 2.188 kB / 453.7 MB, free: 16.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/0.2728, allocations: 238.4 kB / 453.9 MB, free: 16.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.273, allocations: 32.39 kB / 453.9 MB, free: 16.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004185/0.2772, allocations: 3.403 MB / 457.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.2774, allocations: 39.17 kB / 457.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.2774, allocations: 7.469 kB / 457.4 MB, free: 13.81 MB / 366.1 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.0001844/0.2776, allocations: 147.6 kB / 457.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.188e-05/0.2777, allocations: 27.64 kB / 457.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.132e-05/0.2778, allocations: 30.78 kB / 457.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2778, allocations: 3.516 kB / 457.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.755e-05/0.2778, allocations: 3.609 kB / 457.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2778, allocations: 1.359 kB / 457.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.2793, allocations: 0.7752 MB / 458.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.2793, allocations: 0 / 458.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.362e-05/0.2794, allocations: 19.23 kB / 458.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009289/0.2803, allocations: 237.5 kB / 458.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.2804, allocations: 5.219 kB / 458.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003727/0.2841, allocations: 3.406 MB / 462 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.738e-06/0.2841, allocations: 0.875 kB / 462 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.2853, allocations: 0.5273 MB / 462.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.2854, allocations: 45.64 kB / 462.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.028e-05/0.2855, allocations: 6.156 kB / 462.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002395/0.2857, allocations: 26.59 kB / 462.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.2858, allocations: 37.22 kB / 462.7 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.078e-05/0.2858, allocations: 12.8 kB / 462.7 MB, free: 9.992 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001659/0.286, allocations: 157.8 kB / 462.8 MB, free: 9.891 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.286, allocations: 0 / 462.8 MB, free: 9.891 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005383/0.2866, allocations: 107.2 kB / 462.9 MB, free: 9.871 MB / 366.1 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.0001212/0.2867, allocations: 105.5 kB / 463 MB, free: 9.777 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.2877, allocations: 0.5378 MB / 463.6 MB, free: 9.441 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.2877, allocations: 1.953 kB / 463.6 MB, free: 9.441 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005585/0.2883, allocations: 421.8 kB / 464 MB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.2887, allocations: 40.86 kB / 464 MB, free: 9.129 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.2897, allocations: 0.4947 MB / 464.5 MB, free: 8.824 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001803/0.2899, allocations: 158.1 kB / 464.7 MB, free: 8.738 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.395e-05/0.29, allocations: 17.52 kB / 464.7 MB, free: 8.734 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.761e-05/0.29, allocations: 17.88 kB / 464.7 MB, free: 8.727 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.29, allocations: 0 / 464.7 MB, free: 8.727 MB / 366.1 MB Notification: Performance of Templates: time 0.01061/0.3006, allocations: 4.643 MB / 469.4 MB, free: 7.996 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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.261132497340441]