Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.001111/0.001111, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.001245/0.001245, allocations: 161 kB / 24.56 MB, free: 12 kB / 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.9714/0.9714, allocations: 177.1 MB / 205 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] 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(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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.492e-05/2.654e-05, allocations: 2.312 kB / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007325/0.007352, allocations: 5.32 MB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004453/0.0118, allocations: 2.102 MB / 280.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.01283, allocations: 51.56 kB / 280.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005837/0.01342, allocations: 210.2 kB / 280.6 MB, free: 9.828 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007018/0.01412, allocations: 182.2 kB / 280.8 MB, free: 9.648 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.01539, allocations: 406.9 kB / 281.2 MB, free: 9.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001371/0.01676, allocations: 1.044 MB / 282.3 MB, free: 8.199 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007456/0.01751, allocations: 397.6 kB / 282.7 MB, free: 7.781 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009368/0.01844, allocations: 0.5263 MB / 283.2 MB, free: 7.254 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004945/0.01894, allocations: 275.2 kB / 283.4 MB, free: 6.984 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001484/0.01909, allocations: 92 kB / 283.5 MB, free: 6.895 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000319/0.01941, allocations: 155.8 kB / 283.7 MB, free: 6.742 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001921/0.0196, allocations: 207.3 kB / 283.9 MB, free: 6.539 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003429/0.01994, allocations: 295.3 kB / 284.2 MB, free: 6.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.02096, allocations: 0.681 MB / 284.9 MB, free: 5.566 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.02096, allocations: 0 / 284.9 MB, free: 5.566 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.02096, allocations: 0 / 284.9 MB, free: 5.566 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.048e-05/0.02098, allocations: 4 kB / 284.9 MB, free: 5.562 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001572/0.02256, allocations: 1.076 MB / 285.9 MB, free: 4.449 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.0226, allocations: 8.031 kB / 286 MB, free: 4.441 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003464/0.02295, allocations: 168.4 kB / 286.1 MB, free: 4.277 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008287/0.02378, allocations: 486.4 kB / 286.6 MB, free: 3.773 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.932e-05/0.02383, allocations: 66.38 kB / 286.7 MB, free: 3.707 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.02397, allocations: 96.25 kB / 286.7 MB, free: 3.613 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.02521, allocations: 0.6497 MB / 287.4 MB, free: 2.914 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.943e-05/0.02525, allocations: 16.12 kB / 287.4 MB, free: 2.898 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.299e-05/0.02531, allocations: 32.38 kB / 287.4 MB, free: 2.867 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.488e-05/0.02534, allocations: 23.94 kB / 287.5 MB, free: 2.844 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007843/0.02612, allocations: 287.6 kB / 287.7 MB, free: 2.559 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.132/0.1581, allocations: 2.957 MB / 290.7 MB, free: 24.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005231/0.1586, allocations: 169.1 kB / 290.9 MB, free: 24.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.1587, allocations: 64.86 kB / 290.9 MB, free: 24.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001187/0.1588, allocations: 21.16 kB / 291 MB, free: 24.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.1588, allocations: 42.44 kB / 291 MB, free: 24.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 4.339e-06/0.1589, allocations: 0.9062 kB / 291 MB, free: 24.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001649/0.1605, allocations: 0.9767 MB / 292 MB, free: 23.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.645e-05/0.1605, allocations: 56 kB / 292 MB, free: 23.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000284/0.1608, allocations: 357.2 kB / 292.4 MB, free: 23.46 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.1608, allocations: 32.17 kB / 292.4 MB, free: 23.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.161, allocations: 456.8 kB / 292.9 MB, free: 23.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.559e-05/0.1611, allocations: 142.1 kB / 293 MB, free: 23.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.69e-05/0.1612, allocations: 90.78 kB / 293.1 MB, free: 23.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.963e-05/0.1613, allocations: 0.5241 MB / 293.6 MB, free: 22.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/0.1614, allocations: 61.2 kB / 293.7 MB, free: 22.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.1616, allocations: 257.9 kB / 293.9 MB, free: 22.35 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003065/0.1619, allocations: 358.4 kB / 294.3 MB, free: 22.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1619, allocations: 1.062 kB / 294.3 MB, free: 22.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005031/0.1624, allocations: 384.1 kB / 294.6 MB, free: 22.04 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.1624, allocations: 8.547 kB / 294.7 MB, free: 22.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.1624, allocations: 8.281 kB / 294.7 MB, free: 22.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001762/0.1626, allocations: 34.02 kB / 294.7 MB, free: 22.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002463/0.1628, allocations: 110 kB / 294.8 MB, free: 22.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002654/0.1631, allocations: 0.8162 MB / 295.6 MB, free: 21.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.1632, allocations: 12.97 kB / 295.6 MB, free: 21.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.1633, allocations: 24.78 kB / 295.7 MB, free: 21.23 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.000146/0.1634, allocations: 188.7 kB / 295.8 MB, free: 21.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.407e-05/0.1635, allocations: 48.98 kB / 295.9 MB, free: 21.05 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000384/0.1638, allocations: 265.4 kB / 296.1 MB, free: 20.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1639, allocations: 3.438 kB / 296.2 MB, free: 20.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.1639, allocations: 0.5469 kB / 296.2 MB, free: 20.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1639, allocations: 3.281 kB / 296.2 MB, free: 20.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009518/0.1648, allocations: 0.8438 MB / 297 MB, free: 20.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1648, allocations: 1.344 kB / 297 MB, free: 20.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.165, allocations: 81.45 kB / 297.1 MB, free: 20.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.307e-05/0.1651, allocations: 31.75 kB / 297.1 MB, free: 20.6 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.1652, allocations: 13.92 kB / 297.1 MB, free: 20.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001777/0.1653, allocations: 0.8023 MB / 297.9 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1653, allocations: 2.969 kB / 297.9 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004395/0.1658, allocations: 0.5042 MB / 298.4 MB, free: 19.51 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.876e-05/0.1658, allocations: 35.72 kB / 298.5 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.167e-05/0.1659, allocations: 11.56 kB / 298.5 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.09e-05/0.1659, allocations: 11.56 kB / 298.5 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.57e-05/0.166, allocations: 23.98 kB / 298.5 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.166, allocations: 12.41 kB / 298.5 MB, free: 19.49 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001487/0.1662, allocations: 235.5 kB / 298.8 MB, free: 19.37 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1662, allocations: 0 / 298.8 MB, free: 19.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004278/0.1666, allocations: 124.8 kB / 298.9 MB, free: 19.37 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.0001576/0.1667, allocations: 124.2 kB / 299 MB, free: 19.28 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004184/0.1672, allocations: 242.4 kB / 299.2 MB, free: 19.24 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1672, allocations: 0 / 299.2 MB, free: 19.24 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.1673, allocations: 113.3 kB / 299.3 MB, free: 19.22 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.1677, allocations: 73.55 kB / 299.4 MB, free: 19.22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.1696, allocations: 1.382 MB / 300.8 MB, free: 18.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.1697, allocations: 147.9 kB / 300.9 MB, free: 18.31 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000136/0.1698, allocations: 49.56 kB / 301 MB, free: 18.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.995e-05/0.1699, allocations: 31.77 kB / 301 MB, free: 18.29 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1699, allocations: 1.031 kB / 301 MB, free: 18.29 MB / 266.7 MB Notification: Performance of Templates: time 0.008166/0.1781, allocations: 3.569 MB / 304.6 MB, free: 17.78 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.0226323818787932]