Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.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.0009182/0.0009182, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001232/0.00215, allocations: 449.7 kB / 10.37 MB, free: 332 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.001144/0.001144, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001617/0.002761, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.9473/0.9473, allocations: 173.4 MB / 185.8 MB, free: 8.996 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08692/1.034, allocations: 52.5 MB / 238.3 MB, free: 4.438 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.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.85e-05/2.009e-05, allocations: 2.875 kB / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005736/0.005757, allocations: 5.257 MB / 244.8 MB, free: 13.91 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003333/0.009089, allocations: 2.102 MB / 246.9 MB, free: 11.8 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004437/0.009533, allocations: 51.56 kB / 247 MB, free: 11.75 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003717/0.009905, allocations: 210.1 kB / 247.2 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003469/0.01025, allocations: 190.2 kB / 247.3 MB, free: 11.35 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007093/0.01096, allocations: 398.9 kB / 247.7 MB, free: 10.96 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008081/0.01177, allocations: 1.032 MB / 248.8 MB, free: 9.922 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005087/0.01228, allocations: 405.6 kB / 249.2 MB, free: 9.496 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005292/0.01281, allocations: 0.5379 MB / 249.7 MB, free: 8.957 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003083/0.01312, allocations: 275.2 kB / 250 MB, free: 8.688 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.373e-05/0.01321, allocations: 92 kB / 250.1 MB, free: 8.598 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002434/0.01345, allocations: 163.8 kB / 250.2 MB, free: 8.438 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001356/0.01359, allocations: 163.5 kB / 250.4 MB, free: 8.277 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000229/0.01382, allocations: 247.5 kB / 250.6 MB, free: 8.035 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006934/0.01451, allocations: 0.6382 MB / 251.3 MB, free: 7.395 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.629e-05/0.01453, allocations: 0 / 251.3 MB, free: 7.395 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.01453, allocations: 0 / 251.3 MB, free: 7.395 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.01455, allocations: 0 / 251.3 MB, free: 7.395 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001163/0.01571, allocations: 1.119 MB / 252.4 MB, free: 6.246 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.01574, allocations: 12.03 kB / 252.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.01589, allocations: 124.8 kB / 252.5 MB, free: 6.113 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005396/0.01643, allocations: 388.9 kB / 252.9 MB, free: 5.711 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.849e-05/0.01647, allocations: 62.38 kB / 253 MB, free: 5.652 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.32e-05/0.01657, allocations: 88.31 kB / 253 MB, free: 5.566 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007801/0.01735, allocations: 0.6738 MB / 253.7 MB, free: 4.832 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.99e-05/0.01738, allocations: 12.12 kB / 253.7 MB, free: 4.82 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.01742, allocations: 32.38 kB / 253.8 MB, free: 4.789 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.01744, allocations: 27.94 kB / 253.8 MB, free: 4.762 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003851/0.01782, allocations: 224.5 kB / 254 MB, free: 4.543 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002013/0.01984, allocations: 2.163 MB / 256.2 MB, free: 2.285 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003307/0.02017, allocations: 150.3 kB / 256.3 MB, free: 2.129 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.539e-05/0.02023, allocations: 56.77 kB / 256.4 MB, free: 2.07 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.296e-05/0.02031, allocations: 19.98 kB / 256.4 MB, free: 2.051 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.02033, allocations: 34.56 kB / 256.4 MB, free: 2.008 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 2.104e-06/0.02033, allocations: 4 kB / 256.4 MB, free: 2.004 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.001289/0.02162, allocations: 0.8027 MB / 257.2 MB, free: 1.141 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.02165, allocations: 55.41 kB / 257.3 MB, free: 1.074 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.02184, allocations: 290.8 kB / 257.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.02186, allocations: 29.7 kB / 257.6 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.02202, allocations: 384.3 kB / 258 MB, free: 372 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.703e-05/0.0221, allocations: 142.8 kB / 258.1 MB, free: 228 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.009e-05/0.02219, allocations: 82.12 kB / 258.2 MB, free: 136 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.0223, allocations: 358.7 kB / 258.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.664e-05/0.02236, allocations: 36.98 kB / 258.6 MB, free: 15.74 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.02249, allocations: 194 kB / 258.8 MB, free: 15.49 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/0.02273, allocations: 284.5 kB / 259 MB, free: 15.15 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.02274, allocations: 4 kB / 259 MB, free: 15.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000328/0.02306, allocations: 282 kB / 259.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.02308, allocations: 11.98 kB / 259.3 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.02309, allocations: 4 kB / 259.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001185/0.02321, allocations: 32.78 kB / 259.4 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003207/0.02353, allocations: 135.8 kB / 259.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002563/0.02378, allocations: 0.5366 MB / 260 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.02391, allocations: 16.28 kB / 260.1 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.02393, allocations: 20 kB / 260.1 MB, free: 14.08 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001294/0.02406, allocations: 144.5 kB / 260.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.016e-05/0.02411, allocations: 31.97 kB / 260.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002786/0.02439, allocations: 198.3 kB / 260.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.0244, allocations: 7.938 kB / 260.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.0244, allocations: 0 / 260.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.0244, allocations: 3.984 kB / 260.5 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007146/0.02512, allocations: 0.5595 MB / 261 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.02512, allocations: 7.984 kB / 261 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002954/0.02542, allocations: 94.39 kB / 261.1 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.305e-05/0.02545, allocations: 31.77 kB / 261.1 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.531e-05/0.02554, allocations: 32.81 kB / 261.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.02555, allocations: 8 kB / 261.2 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002142/0.02577, allocations: 0.529 MB / 261.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.02577, allocations: 4.031 kB / 261.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003335/0.0261, allocations: 386.4 kB / 262.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.31e-05/0.02614, allocations: 8 kB / 262.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.02624, allocations: 4 kB / 262.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.072e-05/0.02628, allocations: 27.95 kB / 262.1 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.02629, allocations: 4 kB / 262.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.063e-05/0.02638, allocations: 112.6 kB / 262.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02638, allocations: 0 / 262.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003697/0.02675, allocations: 124 kB / 262.4 MB, free: 11.65 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001419/0.02689, allocations: 100.3 kB / 262.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000301/0.0272, allocations: 206.6 kB / 262.7 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.46e-05/0.02721, allocations: 8 kB / 262.7 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.02733, allocations: 108.8 kB / 262.8 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003602/0.02769, allocations: 108.9 kB / 262.9 MB, free: 11.12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007138/0.03483, allocations: 1.361 MB / 264.2 MB, free: 9.711 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.03497, allocations: 169.7 kB / 264.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001451/0.03512, allocations: 47.38 kB / 264.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001532/0.03527, allocations: 119.3 kB / 264.6 MB, free: 9.355 MB / 266.7 MB Notification: Performance of SimCode: time 1.182e-06/0.03527, allocations: 0 / 264.6 MB, free: 9.355 MB / 266.7 MB Notification: Performance of Templates: time 0.009459/0.04473, allocations: 4.178 MB / 268.8 MB, free: 5.262 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/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: 2.56234232801944]