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.0009968/0.0009968, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001444/0.002441, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.000945/0.000945, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001314/0.002259, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8555/0.8555, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1493/1.005, allocations: 52.48 MB / 238.5 MB, free: 7.633 MB / 234.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 2.574e-06/2.574e-06, allocations: 4 kB / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.841e-05/3.099e-05, allocations: 2.312 kB / 239.7 MB, free: 6.367 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.008203/0.008234, allocations: 4.372 MB / 244.1 MB, free: 1.988 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005667/0.0139, allocations: 1.373 MB / 245.5 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004568/0.01436, allocations: 31.69 kB / 245.5 MB, free: 0.5859 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003543/0.01471, allocations: 178.2 kB / 245.7 MB, free: 420 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003726/0.01508, allocations: 197.2 kB / 245.9 MB, free: 224 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002472/0.01756, allocations: 360.9 kB / 246.2 MB, free: 15.87 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009217/0.01848, allocations: 0.9818 MB / 247.2 MB, free: 14.88 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003536/0.01883, allocations: 284 kB / 247.5 MB, free: 14.57 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005776/0.01941, allocations: 0.5234 MB / 248 MB, free: 14.05 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002428/0.01965, allocations: 239.1 kB / 248.2 MB, free: 13.82 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.189e-05/0.01972, allocations: 72.53 kB / 248.3 MB, free: 13.75 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001904/0.01991, allocations: 125.5 kB / 248.4 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.03e-05/0.02, allocations: 139.4 kB / 248.6 MB, free: 13.49 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002814/0.02028, allocations: 219.4 kB / 248.8 MB, free: 13.27 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005911/0.02087, allocations: 0.63 MB / 249.4 MB, free: 12.64 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.413e-05/0.02088, allocations: 5.156 kB / 249.4 MB, free: 12.64 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.02089, allocations: 3.984 kB / 249.4 MB, free: 12.63 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.0209, allocations: 0 / 249.4 MB, free: 12.63 MB / 250.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.001045/0.02195, allocations: 1.246 MB / 250.7 MB, free: 11.36 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.02198, allocations: 15.98 kB / 250.7 MB, free: 11.35 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.0221, allocations: 124.6 kB / 250.8 MB, free: 11.23 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000554/0.02266, allocations: 0.5019 MB / 251.3 MB, free: 10.7 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.282e-05/0.02269, allocations: 58.97 kB / 251.4 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.136e-05/0.02276, allocations: 83.95 kB / 251.5 MB, free: 10.56 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006865/0.02345, allocations: 0.7838 MB / 252.2 MB, free: 9.648 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002809/0.02373, allocations: 11.89 kB / 252.3 MB, free: 9.637 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.249e-05/0.02376, allocations: 36.75 kB / 252.3 MB, free: 9.602 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.02377, allocations: 24 kB / 252.3 MB, free: 9.578 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003242/0.0241, allocations: 263 kB / 252.6 MB, free: 9.32 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.02613, allocations: 3.742 MB / 256.3 MB, free: 5.418 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002614/0.02639, allocations: 187.9 kB / 256.5 MB, free: 5.223 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.914e-05/0.02646, allocations: 69.56 kB / 256.6 MB, free: 5.152 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.72e-05/0.02653, allocations: 20.36 kB / 256.6 MB, free: 5.133 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.02656, allocations: 34.94 kB / 256.6 MB, free: 5.09 MB / 250.7 MB Notification: Performance of pre-optimization done (n=46): time 3.005e-06/0.02656, allocations: 0 / 256.6 MB, free: 5.09 MB / 250.7 MB Notification: Performance of matching and sorting (n=57): time 0.001738/0.0283, allocations: 1.191 MB / 257.8 MB, free: 3.852 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.02833, allocations: 59.91 kB / 257.9 MB, free: 3.781 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002939/0.02862, allocations: 0.5076 MB / 258.4 MB, free: 3.262 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.02864, allocations: 37.7 kB / 258.4 MB, free: 3.219 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.0288, allocations: 417 kB / 258.8 MB, free: 2.805 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.766e-05/0.0289, allocations: 226.1 kB / 259 MB, free: 2.582 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.029, allocations: 138.6 kB / 259.2 MB, free: 2.438 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003851/0.02939, allocations: 390.6 kB / 259.6 MB, free: 2.047 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.701e-05/0.02946, allocations: 65.95 kB / 259.6 MB, free: 1.984 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.02964, allocations: 367.2 kB / 260 MB, free: 1.496 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004215/0.03006, allocations: 0.5352 MB / 260.5 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.03007, allocations: 7.938 kB / 260.5 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0004778/0.03054, allocations: 498.7 kB / 261 MB, free: 328 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.03056, allocations: 8 kB / 261 MB, free: 320 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.03058, allocations: 12 kB / 261 MB, free: 308 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001209/0.0307, allocations: 45.53 kB / 261.1 MB, free: 260 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003988/0.0311, allocations: 215.7 kB / 261.3 MB, free: 44 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007996/0.0319, allocations: 1.406 MB / 262.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.03211, allocations: 28 kB / 262.7 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.03213, allocations: 31.94 kB / 262.7 MB, free: 14.49 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.0001631/0.0323, allocations: 169.5 kB / 262.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.497e-05/0.03235, allocations: 59.97 kB / 263 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.068e-05/0.03242, allocations: 75.08 kB / 263 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.03243, allocations: 8 kB / 263.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.03243, allocations: 0 / 263.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.03244, allocations: 3.984 kB / 263.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008895/0.03333, allocations: 0.8234 MB / 263.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.03333, allocations: 4 kB / 263.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002986/0.03363, allocations: 142.9 kB / 264 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.131e-05/0.03368, allocations: 63.48 kB / 264.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.912e-05/0.03375, allocations: 24.78 kB / 264.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.03377, allocations: 16 kB / 264.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004969/0.03427, allocations: 1.158 MB / 265.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.03427, allocations: 7.938 kB / 265.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000377/0.03465, allocations: 0.5047 MB / 265.8 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.952e-05/0.03468, allocations: 16 kB / 265.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.03478, allocations: 12 kB / 265.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.089e-05/0.03483, allocations: 55.92 kB / 265.9 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.03484, allocations: 12 kB / 265.9 MB, free: 11.13 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001443/0.03499, allocations: 228.6 kB / 266.1 MB, free: 10.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03499, allocations: 0 / 266.1 MB, free: 10.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003998/0.03539, allocations: 140 kB / 266.2 MB, free: 10.78 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.0003597/0.03575, allocations: 92.36 kB / 266.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004857/0.03623, allocations: 470.3 kB / 266.8 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.824e-05/0.03626, allocations: 12.5 kB / 266.8 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002167/0.03648, allocations: 283.9 kB / 267.1 MB, free: 9.906 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000615/0.03709, allocations: 0.818 MB / 267.9 MB, free: 8.941 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/0.03937, allocations: 1.438 MB / 269.3 MB, free: 7.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.03948, allocations: 171.1 kB / 269.5 MB, free: 7.242 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001783/0.03966, allocations: 90 kB / 269.6 MB, free: 7.152 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001869/0.03985, allocations: 163.3 kB / 269.8 MB, free: 6.992 MB / 266.7 MB Notification: Performance of SimCode: time 1.102e-06/0.03985, allocations: 4 kB / 269.8 MB, free: 6.988 MB / 266.7 MB Notification: Performance of Templates: time 0.009713/0.04956, allocations: 5.587 MB / 275.4 MB, free: 1.539 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5326129822060466]