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.001197/0.001197, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.006477/0.006477, allocations: 162.5 kB / 24.7 MB, free: 9.43 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 0.9187/0.9187, allocations: 177.2 MB / 205 MB, free: 5.723 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.2518/0.2518, allocations: 32.79 MB / 294.2 MB, free: 1.223 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.964e-06/1.964e-06, allocations: 0 / 440.8 MB, free: 3.777 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.564e-05/3.76e-05, allocations: 4.391 kB / 440.8 MB, free: 3.773 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.002983/0.00302, allocations: 2.725 MB / 443.6 MB, free: 1.027 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.004253, allocations: 0.6581 MB / 444.2 MB, free: 372 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.004414, allocations: 7.938 kB / 444.2 MB, free: 364 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.004566, allocations: 59.48 kB / 444.3 MB, free: 304 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.004713, allocations: 95.06 kB / 444.4 MB, free: 208 kB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000164/0.004877, allocations: 91.86 kB / 444.5 MB, free: 116 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.199/0.2039, allocations: 428 kB / 444.9 MB, free: 43.87 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002471/0.2041, allocations: 80.81 kB / 445 MB, free: 43.87 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002246/0.2043, allocations: 219.6 kB / 445.2 MB, free: 43.86 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.2045, allocations: 124 kB / 445.3 MB, free: 43.84 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.815e-05/0.2045, allocations: 34.97 kB / 445.3 MB, free: 43.84 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.084e-05/0.2045, allocations: 34.84 kB / 445.4 MB, free: 43.84 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.554e-05/0.2046, allocations: 70.12 kB / 445.4 MB, free: 43.83 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.827e-05/0.2047, allocations: 126.9 kB / 445.6 MB, free: 43.82 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003119/0.205, allocations: 409.9 kB / 446 MB, free: 43.79 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.205, allocations: 0 / 446 MB, free: 43.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.205, allocations: 0 / 446 MB, free: 43.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.205, allocations: 0 / 446 MB, free: 43.79 MB / 410.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.0006502/0.2056, allocations: 0.5603 MB / 446.5 MB, free: 43.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.2057, allocations: 15.33 kB / 446.5 MB, free: 43.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.317e-05/0.2057, allocations: 41.67 kB / 446.6 MB, free: 43.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002999/0.206, allocations: 212.6 kB / 446.8 MB, free: 43.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.206, allocations: 22.88 kB / 446.8 MB, free: 43.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.583e-05/0.2061, allocations: 25.78 kB / 446.8 MB, free: 43.26 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004083/0.2065, allocations: 433 kB / 447.3 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.2065, allocations: 192 / 447.3 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.2065, allocations: 10.44 kB / 447.3 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.2065, allocations: 13.38 kB / 447.3 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003007/0.2068, allocations: 240.8 kB / 447.5 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.208, allocations: 1.082 MB / 448.6 MB, free: 42.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004456/0.2084, allocations: 292 kB / 448.9 MB, free: 42.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001845/0.2086, allocations: 138.3 kB / 449 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.2086, allocations: 7.047 kB / 449 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.2087, allocations: 37.19 kB / 449.1 MB, free: 42.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 2.515e-06/0.2087, allocations: 0 / 449.1 MB, free: 42.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.001584/0.2102, allocations: 0.8564 MB / 449.9 MB, free: 42.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.2103, allocations: 54.09 kB / 450 MB, free: 42.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.2104, allocations: 215.9 kB / 450.2 MB, free: 41.88 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.2105, allocations: 29.7 kB / 450.2 MB, free: 41.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.613e-05/0.2105, allocations: 182.8 kB / 450.4 MB, free: 41.69 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.337e-05/0.2106, allocations: 88.48 kB / 450.5 MB, free: 41.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.718e-05/0.2106, allocations: 56.44 kB / 450.5 MB, free: 41.58 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.016e-05/0.2106, allocations: 332.3 kB / 450.9 MB, free: 41.26 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.2108, allocations: 102.4 kB / 451 MB, free: 41.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001442/0.2109, allocations: 153.6 kB / 451.1 MB, free: 41.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.2112, allocations: 247.8 kB / 451.3 MB, free: 41.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.2112, allocations: 0 / 451.3 MB, free: 41.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005962/0.2118, allocations: 487.8 kB / 451.8 MB, free: 40.85 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.2118, allocations: 5.594 kB / 451.8 MB, free: 40.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.2118, allocations: 2.719 kB / 451.8 MB, free: 40.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005358/0.2124, allocations: 234.2 kB / 452.1 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.874e-05/0.2124, allocations: 38.53 kB / 452.1 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/0.2145, allocations: 3.399 MB / 455.5 MB, free: 38.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.2146, allocations: 38.05 kB / 455.5 MB, free: 37.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.24e-05/0.2146, allocations: 10.38 kB / 455.5 MB, free: 37.98 MB / 410.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.0001114/0.2147, allocations: 146 kB / 455.7 MB, free: 37.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.723e-05/0.2148, allocations: 28.48 kB / 455.7 MB, free: 37.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.638e-05/0.2148, allocations: 32.91 kB / 455.7 MB, free: 37.81 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.2148, allocations: 3.094 kB / 455.7 MB, free: 37.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.2148, allocations: 3.188 kB / 455.8 MB, free: 37.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2148, allocations: 3.328 kB / 455.8 MB, free: 37.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008115/0.2156, allocations: 0.7713 MB / 456.5 MB, free: 37.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2156, allocations: 4 kB / 456.5 MB, free: 37.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.338e-05/0.2157, allocations: 25.91 kB / 456.6 MB, free: 37.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004223/0.2161, allocations: 236.8 kB / 456.8 MB, free: 37.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.2161, allocations: 7.156 kB / 456.8 MB, free: 37.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001823/0.2179, allocations: 3.394 MB / 460.2 MB, free: 34.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2179, allocations: 8 kB / 460.2 MB, free: 34.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005381/0.2185, allocations: 0.5233 MB / 460.7 MB, free: 34.26 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.4e-05/0.2185, allocations: 44.02 kB / 460.8 MB, free: 34.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.2185, allocations: 4 kB / 460.8 MB, free: 34.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.2186, allocations: 30.53 kB / 460.8 MB, free: 34.22 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.643e-05/0.2187, allocations: 34.5 kB / 460.8 MB, free: 34.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.2187, allocations: 9.812 kB / 460.8 MB, free: 34.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.994e-05/0.2188, allocations: 157.5 kB / 461 MB, free: 34.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2188, allocations: 0 / 461 MB, free: 34.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003513/0.2192, allocations: 106 kB / 461.1 MB, free: 34.09 MB / 410.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.0001478/0.2193, allocations: 110.1 kB / 461.2 MB, free: 34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006225/0.2199, allocations: 0.5298 MB / 461.7 MB, free: 33.67 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.2199, allocations: 4.25 kB / 461.7 MB, free: 33.67 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002724/0.2202, allocations: 426 kB / 462.2 MB, free: 33.37 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.2205, allocations: 46.64 kB / 462.2 MB, free: 33.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000749/0.2212, allocations: 0.5251 MB / 462.7 MB, free: 33.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00011/0.2213, allocations: 161.1 kB / 462.9 MB, free: 32.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.63e-05/0.2214, allocations: 18.47 kB / 462.9 MB, free: 32.92 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/0.2214, allocations: 0 / 462.9 MB, free: 32.92 MB / 410.7 MB Notification: Performance of Templates: time 0.005408/0.2268, allocations: 5.551 MB / 468.5 MB, free: 32.56 MB / 410.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.45028811506927]