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.001148/0.001148, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001011/0.00216, allocations: 449.7 kB / 10.37 MB, free: 328 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.00106/0.00106, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001308/0.002368, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.103/1.103, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09872/1.202, allocations: 53.65 MB / 243.3 MB, free: 15.57 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.2622/0.2622, allocations: 34.25 MB / 278.2 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02639/0.2886, allocations: 13.09 MB / 291.3 MB, free: 7.359 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.823e-06/1.823e-06, allocations: 0 / 292.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.346e-05/2.529e-05, allocations: 2.312 kB / 292.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003301/0.003326, allocations: 2.969 MB / 295.6 MB, free: 3.316 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.004859, allocations: 0.7021 MB / 296.3 MB, free: 2.609 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.004998, allocations: 7.938 kB / 296.3 MB, free: 2.602 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.005103, allocations: 59.47 kB / 296.3 MB, free: 2.543 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.00525, allocations: 99.06 kB / 296.4 MB, free: 2.445 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001647/0.005415, allocations: 91.86 kB / 296.5 MB, free: 2.355 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003417/0.005757, allocations: 422.1 kB / 296.9 MB, free: 1.941 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.005922, allocations: 93.89 kB / 297 MB, free: 1.852 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002944/0.006216, allocations: 239.6 kB / 297.3 MB, free: 1.617 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.006355, allocations: 115.7 kB / 297.4 MB, free: 1.504 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.137e-05/0.006397, allocations: 36 kB / 297.4 MB, free: 1.469 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.271e-05/0.00643, allocations: 36 kB / 297.5 MB, free: 1.434 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.145e-05/0.006471, allocations: 55.81 kB / 297.5 MB, free: 1.379 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.835e-05/0.006569, allocations: 99.81 kB / 297.6 MB, free: 1.281 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002698/0.006839, allocations: 247.1 kB / 297.8 MB, free: 1.039 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.062e-05/0.00686, allocations: 0 / 297.8 MB, free: 1.039 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.006862, allocations: 0 / 297.8 MB, free: 1.039 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.317e-05/0.006885, allocations: 0 / 297.8 MB, free: 1.039 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.0007245/0.007609, allocations: 0.6023 MB / 298.4 MB, free: 424 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.916e-05/0.007639, allocations: 8.031 kB / 298.5 MB, free: 416 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.806e-05/0.007697, allocations: 44.91 kB / 298.5 MB, free: 372 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/0.007911, allocations: 182.8 kB / 298.7 MB, free: 164 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/0.007937, allocations: 21.03 kB / 298.7 MB, free: 144 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.688e-05/0.007964, allocations: 36.31 kB / 298.7 MB, free: 108 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003806/0.008344, allocations: 342 kB / 299.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.008354, allocations: 192 / 299.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.008371, allocations: 12.38 kB / 299.1 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.008381, allocations: 11.94 kB / 299.1 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001059/0.008487, allocations: 84.48 kB / 299.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000988/0.009474, allocations: 0.8853 MB / 300.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002729/0.009747, allocations: 211.1 kB / 300.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.42e-05/0.009832, allocations: 66.56 kB / 300.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.009848, allocations: 8.234 kB / 300.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.009872, allocations: 38.8 kB / 300.4 MB, free: 14.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.643e-06/0.009873, allocations: 0 / 300.4 MB, free: 14.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009767/0.01085, allocations: 0.5323 MB / 300.9 MB, free: 13.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.357e-05/0.01087, allocations: 55.41 kB / 301 MB, free: 13.74 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.01099, allocations: 205 kB / 301.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.01101, allocations: 33.7 kB / 301.2 MB, free: 13.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.458e-05/0.01107, allocations: 164.5 kB / 301.4 MB, free: 13.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.527e-05/0.01112, allocations: 91.22 kB / 301.4 MB, free: 13.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-05/0.01118, allocations: 65.62 kB / 301.5 MB, free: 13.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.433e-05/0.01127, allocations: 334.7 kB / 301.8 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.134e-05/0.01131, allocations: 32.58 kB / 301.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.142e-05/0.01137, allocations: 79.97 kB / 301.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001611/0.01153, allocations: 132.6 kB / 302.1 MB, free: 12.56 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.01153, allocations: 0 / 302.1 MB, free: 12.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000337/0.01187, allocations: 266.8 kB / 302.3 MB, free: 12.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.01188, allocations: 8.125 kB / 302.3 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.01189, allocations: 4 kB / 302.3 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004224/0.01231, allocations: 173.5 kB / 302.5 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.567e-05/0.01241, allocations: 31.98 kB / 302.5 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001654/0.01406, allocations: 2.752 MB / 305.3 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.431e-05/0.01415, allocations: 31.78 kB / 305.3 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.01416, allocations: 4 kB / 305.3 MB, free: 9.102 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 8.846e-05/0.01425, allocations: 129.8 kB / 305.5 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.015e-05/0.01428, allocations: 19.98 kB / 305.5 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.169e-05/0.01431, allocations: 38.62 kB / 305.5 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.01431, allocations: 8.031 kB / 305.5 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.01432, allocations: 3.938 kB / 305.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.01432, allocations: 0 / 305.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000701/0.01502, allocations: 492.4 kB / 306 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.01503, allocations: 7.984 kB / 306 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.217e-05/0.01508, allocations: 20 kB / 306 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.258e-05/0.01513, allocations: 27.78 kB / 306.1 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003766/0.01551, allocations: 173.5 kB / 306.2 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.01552, allocations: 4 kB / 306.2 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001485/0.01701, allocations: 2.741 MB / 309 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.01701, allocations: 0 / 309 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005679/0.01758, allocations: 339 kB / 309.3 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.01759, allocations: 11.97 kB / 309.3 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.014e-05/0.01768, allocations: 23.98 kB / 309.3 MB, free: 4.852 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.877e-05/0.01775, allocations: 31.92 kB / 309.4 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.01776, allocations: 4 kB / 309.4 MB, free: 4.816 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.091e-05/0.01781, allocations: 68.72 kB / 309.4 MB, free: 4.746 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01781, allocations: 0 / 309.4 MB, free: 4.746 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003007/0.01811, allocations: 107.8 kB / 309.6 MB, free: 4.641 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.0001089/0.01822, allocations: 88.42 kB / 309.6 MB, free: 4.547 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000468/0.01869, allocations: 430 kB / 310.1 MB, free: 4.102 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/0.0187, allocations: 7.938 kB / 310.1 MB, free: 4.094 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002343/0.01894, allocations: 381.8 kB / 310.4 MB, free: 3.691 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002386/0.01918, allocations: 60.48 kB / 310.5 MB, free: 3.633 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.02159, allocations: 0.4913 MB / 311 MB, free: 3.109 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.361e-05/0.02167, allocations: 104.4 kB / 311.1 MB, free: 2.984 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.639e-05/0.02174, allocations: 22.23 kB / 311.1 MB, free: 2.961 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.02185, allocations: 95.3 kB / 311.2 MB, free: 2.867 MB / 298.7 MB Notification: Performance of SimCode: time 9.02e-07/0.02185, allocations: 0 / 311.2 MB, free: 2.867 MB / 298.7 MB Notification: Performance of Templates: time 0.00763/0.02948, allocations: 5.146 MB / 316.4 MB, free: 13.83 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0614841673523188]