Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 108.6 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 193.1 kB / 24.47 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 55.92 kB / 371.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2174, allocations: 52.18 MB / 423.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003099/0.2205, allocations: 1.894 MB / 425.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.2216, allocations: 0.5882 MB / 426.4 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.628e-05/0.2217, allocations: 3.938 kB / 426.4 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000126/0.2218, allocations: 31.72 kB / 426.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000139/0.2219, allocations: 35.66 kB / 426.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.2222, allocations: 71.86 kB / 426.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002308/0.2224, allocations: 167.3 kB / 426.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.2226, allocations: 49.19 kB / 426.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.2227, allocations: 75.7 kB / 426.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.2229, allocations: 87.55 kB / 426.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.853e-05/0.2229, allocations: 12 kB / 426.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.761e-05/0.223, allocations: 19.98 kB / 426.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.122e-05/0.223, allocations: 39.84 kB / 426.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.056e-05/0.2231, allocations: 79.48 kB / 427 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002554/0.2234, allocations: 192.3 kB / 427.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2234, allocations: 0 / 427.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2234, allocations: 0 / 427.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.2234, allocations: 0 / 427.2 MB, free: 11.35 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.000826/0.2242, allocations: 453.5 kB / 427.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.2242, allocations: 8.031 kB / 427.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.786e-05/0.2243, allocations: 24.8 kB / 427.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.2246, allocations: 183 kB / 427.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.2246, allocations: 12.64 kB / 427.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.534e-05/0.2246, allocations: 23.94 kB / 427.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000355/0.225, allocations: 195.7 kB / 428.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.225, allocations: 3.984 kB / 428.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.225, allocations: 8 kB / 428.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/0.225, allocations: 12 kB / 428.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002918/0.2253, allocations: 139.8 kB / 428.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001068/0.2264, allocations: 0.7303 MB / 429 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.2267, allocations: 161 kB / 429.1 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.2268, allocations: 73.8 kB / 429.2 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.2268, allocations: 4 kB / 429.2 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.2271, allocations: 157 kB / 429.4 MB, free: 9.023 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.253e-06/0.2271, allocations: 0 / 429.4 MB, free: 9.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005403/0.2276, allocations: 253.6 kB / 429.6 MB, free: 8.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/0.2277, allocations: 85.11 kB / 429.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.2279, allocations: 199 kB / 429.9 MB, free: 8.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.2279, allocations: 29.7 kB / 429.9 MB, free: 8.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.798e-05/0.228, allocations: 140.3 kB / 430 MB, free: 8.289 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.101e-05/0.2281, allocations: 51.62 kB / 430.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.839e-05/0.2281, allocations: 41.7 kB / 430.1 MB, free: 8.191 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2283, allocations: 338.9 kB / 430.5 MB, free: 7.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.2284, allocations: 79.89 kB / 430.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.2286, allocations: 118.8 kB / 430.7 MB, free: 7.633 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003162/0.2289, allocations: 203.3 kB / 430.9 MB, free: 7.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.2289, allocations: 0 / 430.9 MB, free: 7.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004091/0.2293, allocations: 249.2 kB / 431.1 MB, free: 7.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.2293, allocations: 8 kB / 431.1 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2294, allocations: 0 / 431.1 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.2294, allocations: 4 kB / 431.1 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.2295, allocations: 35.91 kB / 431.2 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.2295, allocations: 4 kB / 431.2 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.2297, allocations: 32.06 kB / 431.2 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.2297, allocations: 8 kB / 431.2 MB, free: 7.07 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001282/0.2298, allocations: 145.6 kB / 431.3 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.84e-05/0.2299, allocations: 16 kB / 431.4 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004195/0.2303, allocations: 226.8 kB / 431.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2303, allocations: 0 / 431.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2303, allocations: 0 / 431.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.2303, allocations: 11.98 kB / 431.6 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002606/0.2306, allocations: 236.6 kB / 431.8 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2306, allocations: 0 / 431.8 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.2307, allocations: 23.92 kB / 431.8 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2307, allocations: 4 kB / 431.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.2307, allocations: 0 / 431.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2307, allocations: 0 / 431.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2307, allocations: 3.984 kB / 431.8 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003831/0.2311, allocations: 241.2 kB / 432.1 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.578e-05/0.2311, allocations: 11.91 kB / 432.1 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.2311, allocations: 4 kB / 432.1 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.2313, allocations: 19.92 kB / 432.1 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.805e-05/0.2313, allocations: 19.97 kB / 432.1 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.2313, allocations: 11.98 kB / 432.1 MB, free: 6.035 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000127/0.2315, allocations: 148.5 kB / 432.3 MB, free: 5.891 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2315, allocations: 0 / 432.3 MB, free: 5.891 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002455/0.2317, allocations: 43.89 kB / 432.3 MB, free: 5.848 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000119/0.2318, allocations: 95.25 kB / 432.4 MB, free: 5.746 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003705/0.2322, allocations: 175.7 kB / 432.6 MB, free: 5.574 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.2322, allocations: 384 / 432.6 MB, free: 5.574 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.2324, allocations: 79.89 kB / 432.7 MB, free: 5.496 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.2327, allocations: 46.38 kB / 432.7 MB, free: 5.453 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006616/0.2333, allocations: 403.6 kB / 433.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.2337, allocations: 0.7359 MB / 433.9 MB, free: 4.262 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.527e-05/0.2337, allocations: 19.44 kB / 433.9 MB, free: 4.242 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2337, allocations: 3.938 kB / 433.9 MB, free: 4.238 MB / 334.1 MB Notification: Performance of Templates: time 0.004539/0.2383, allocations: 2.429 MB / 436.3 MB, free: 1.824 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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: 7.048449445981532]