Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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.001014/0.001014, allocations: 83.89 kB / 21.19 MB, free: 3.383 MB / 18.57 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.0009205/0.0009205, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 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 0.9719/0.9719, allocations: 173.3 MB / 201.1 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 179] 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.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.178e-05/2.363e-05, allocations: 6.25 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004197/0.004221, allocations: 4.393 MB / 272.4 MB, free: 2.023 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001844/0.006065, allocations: 1.321 MB / 273.7 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003137/0.006378, allocations: 39.69 kB / 273.7 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003073/0.006686, allocations: 174.2 kB / 273.9 MB, free: 500 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002557/0.006941, allocations: 170.2 kB / 274.1 MB, free: 328 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006079/0.007549, allocations: 379.3 kB / 274.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006705/0.00822, allocations: 0.9933 MB / 275.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004435/0.008663, allocations: 267.4 kB / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003955/0.009059, allocations: 0.4949 MB / 276.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002261/0.009285, allocations: 235.1 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.992e-05/0.009355, allocations: 72 kB / 276.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.009514, allocations: 119.8 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.17e-05/0.009606, allocations: 179.2 kB / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001595/0.009765, allocations: 267.2 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005608/0.01033, allocations: 0.6806 MB / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.01033, allocations: 0 / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.01033, allocations: 0 / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.01034, allocations: 0 / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.000973/0.01131, allocations: 1.189 MB / 278.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.01134, allocations: 8.922 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.01149, allocations: 171.3 kB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000568/0.01206, allocations: 0.5969 MB / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.31e-05/0.01209, allocations: 58 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.589e-05/0.01217, allocations: 91.95 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007835/0.01295, allocations: 0.8189 MB / 280.6 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.466e-05/0.01298, allocations: 7.953 kB / 280.7 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.838e-05/0.01302, allocations: 39.88 kB / 280.7 MB, free: 9.438 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.01303, allocations: 24 kB / 280.7 MB, free: 9.414 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004192/0.01345, allocations: 339.3 kB / 281.1 MB, free: 9.086 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002566/0.01602, allocations: 5.561 MB / 286.6 MB, free: 3.297 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003146/0.01633, allocations: 228.1 kB / 286.8 MB, free: 3.062 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.01644, allocations: 84.39 kB / 286.9 MB, free: 2.977 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001134/0.01655, allocations: 24.36 kB / 286.9 MB, free: 2.953 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.01658, allocations: 37.77 kB / 287 MB, free: 2.906 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 1.704e-06/0.01658, allocations: 3.938 kB / 287 MB, free: 2.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.001819/0.0184, allocations: 1.367 MB / 288.3 MB, free: 1.469 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.06e-05/0.01843, allocations: 55.91 kB / 288.4 MB, free: 1.402 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003863/0.01881, allocations: 0.5774 MB / 289 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.01883, allocations: 29.7 kB / 289 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002403/0.01907, allocations: 0.5259 MB / 289.5 MB, free: 244 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.01918, allocations: 218.1 kB / 289.7 MB, free: 24 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1374/0.1566, allocations: 140.7 kB / 289.9 MB, free: 26.92 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.1568, allocations: 0.5532 MB / 290.4 MB, free: 26.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.157, allocations: 89.62 kB / 290.5 MB, free: 26.42 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.1572, allocations: 0.4974 MB / 291 MB, free: 25.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005158/0.1578, allocations: 0.6596 MB / 291.7 MB, free: 25.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.034e-06/0.1578, allocations: 3.375 kB / 291.7 MB, free: 25.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0008903/0.1587, allocations: 0.6506 MB / 292.3 MB, free: 25.35 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.1587, allocations: 10.72 kB / 292.3 MB, free: 25.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.1587, allocations: 9.547 kB / 292.4 MB, free: 25.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001839/0.1589, allocations: 47.11 kB / 292.4 MB, free: 25.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003898/0.1593, allocations: 179.5 kB / 292.6 MB, free: 25.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009647/0.1602, allocations: 2.078 MB / 294.7 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/0.1605, allocations: 29.8 kB / 294.7 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.173e-05/0.1605, allocations: 39.05 kB / 294.7 MB, free: 23.39 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001676/0.1607, allocations: 212.5 kB / 294.9 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.16e-05/0.1608, allocations: 94.69 kB / 295 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.129e-05/0.1608, allocations: 74.66 kB / 295.1 MB, free: 23.22 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1608, allocations: 9.953 kB / 295.1 MB, free: 23.22 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.1608, allocations: 1.562 kB / 295.1 MB, free: 23.22 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1608, allocations: 6.422 kB / 295.1 MB, free: 23.22 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.1621, allocations: 1.15 MB / 296.3 MB, free: 22.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.1621, allocations: 7.875 kB / 296.3 MB, free: 22.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000287/0.1624, allocations: 113.4 kB / 296.4 MB, free: 22.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.148e-05/0.1625, allocations: 22.34 kB / 296.4 MB, free: 22.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.1625, allocations: 16.78 kB / 296.4 MB, free: 22.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004712/0.163, allocations: 1.736 MB / 298.2 MB, free: 21.05 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.163, allocations: 3.531 kB / 298.2 MB, free: 21.05 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00065/0.1637, allocations: 0.7072 MB / 298.9 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.112e-05/0.1637, allocations: 62.28 kB / 298.9 MB, free: 20.67 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.466e-05/0.1637, allocations: 24.58 kB / 299 MB, free: 20.67 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.1639, allocations: 14.06 kB / 299 MB, free: 20.67 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.345e-05/0.1639, allocations: 45.66 kB / 299 MB, free: 20.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.164, allocations: 19.62 kB / 299 MB, free: 20.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003058/0.1643, allocations: 357.1 kB / 299.4 MB, free: 20.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1643, allocations: 1.406 kB / 299.4 MB, free: 20.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000511/0.1648, allocations: 140.8 kB / 299.5 MB, free: 20.52 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001235/0.1649, allocations: 121.5 kB / 299.6 MB, free: 20.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006594/0.1656, allocations: 0.5384 MB / 300.2 MB, free: 20.24 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1656, allocations: 2.594 kB / 300.2 MB, free: 20.24 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002447/0.1658, allocations: 329.7 kB / 300.5 MB, free: 20.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/0.1662, allocations: 101.4 kB / 300.6 MB, free: 20.05 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.1683, allocations: 1.654 MB / 302.3 MB, free: 19.04 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001538/0.1684, allocations: 164.5 kB / 302.4 MB, free: 18.96 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002202/0.1687, allocations: 82.28 kB / 302.5 MB, free: 18.95 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.1688, allocations: 61.31 kB / 302.6 MB, free: 18.94 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1688, allocations: 4 kB / 302.6 MB, free: 18.94 MB / 266.7 MB Notification: Performance of Templates: time 0.01109/0.1799, allocations: 5.295 MB / 307.9 MB, free: 17.83 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.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.1992912888526917]