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.002615/0.002615, allocations: 95.86 kB / 20.96 MB, free: 3.461 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.003053/0.003053, allocations: 153.1 kB / 24.27 MB, free: 164 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 1.511/1.511, allocations: 173.3 MB / 200.8 MB, free: 9.324 MB / 186.7 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.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.292e-06/1.292e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.368e-05/2.498e-05, allocations: 6.312 kB / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.008153/0.008177, allocations: 5.255 MB / 272.6 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003781/0.01196, allocations: 2.036 MB / 274.6 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004075/0.01237, allocations: 47.62 kB / 274.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004776/0.01284, allocations: 210.2 kB / 274.9 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003981/0.01324, allocations: 182.3 kB / 275 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008551/0.0141, allocations: 394.9 kB / 275.4 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001213/0.01531, allocations: 1.04 MB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000664/0.01597, allocations: 393.6 kB / 276.8 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007118/0.01669, allocations: 0.5263 MB / 277.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004271/0.01711, allocations: 271.2 kB / 277.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.01726, allocations: 92 kB / 277.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002883/0.01755, allocations: 159.8 kB / 277.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004884/0.01804, allocations: 211.3 kB / 278.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003616/0.0184, allocations: 291.3 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001439/0.01984, allocations: 1.199 MB / 279.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.01984, allocations: 0 / 279.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.01984, allocations: 0 / 279.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.01986, allocations: 0 / 279.6 MB, free: 10.41 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.001816/0.02167, allocations: 1.139 MB / 280.7 MB, free: 9.238 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.02172, allocations: 20.86 kB / 280.7 MB, free: 9.219 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002667/0.02199, allocations: 160.4 kB / 280.9 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008443/0.02283, allocations: 490.3 kB / 281.4 MB, free: 8.555 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.505e-05/0.02291, allocations: 70.38 kB / 281.4 MB, free: 8.484 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.02305, allocations: 84.33 kB / 281.5 MB, free: 8.402 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.02455, allocations: 0.8326 MB / 282.3 MB, free: 7.523 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.939e-05/0.02459, allocations: 12.12 kB / 282.4 MB, free: 7.512 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.993e-05/0.02466, allocations: 36.38 kB / 282.4 MB, free: 7.477 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.375e-05/0.02469, allocations: 23.94 kB / 282.4 MB, free: 7.453 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009427/0.02563, allocations: 431.6 kB / 282.8 MB, free: 7.031 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004386/0.03002, allocations: 3.321 MB / 286.2 MB, free: 3.594 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005921/0.03061, allocations: 222.7 kB / 286.4 MB, free: 3.363 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.0308, allocations: 96.14 kB / 286.5 MB, free: 3.266 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001207/0.03092, allocations: 16 kB / 286.5 MB, free: 3.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.875e-05/0.03096, allocations: 45.38 kB / 286.5 MB, free: 3.195 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.714e-06/0.03096, allocations: 0 / 286.5 MB, free: 3.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.002493/0.03345, allocations: 1.154 MB / 287.7 MB, free: 1.973 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.03351, allocations: 63.25 kB / 287.7 MB, free: 1.898 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005077/0.03402, allocations: 434.2 kB / 288.2 MB, free: 1.453 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.125e-05/0.03405, allocations: 29.7 kB / 288.2 MB, free: 1.418 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000368/0.03442, allocations: 470.4 kB / 288.7 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.03456, allocations: 150.8 kB / 288.8 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.03473, allocations: 111.8 kB / 288.9 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000343/0.03507, allocations: 0.543 MB / 289.5 MB, free: 136 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.03529, allocations: 105 kB / 289.6 MB, free: 32 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1095/0.1448, allocations: 313.8 kB / 289.9 MB, free: 23.6 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004945/0.1453, allocations: 459.2 kB / 290.3 MB, free: 23.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.1453, allocations: 10.22 kB / 290.3 MB, free: 23.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007631/0.1461, allocations: 478.4 kB / 290.8 MB, free: 23.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.1461, allocations: 7.641 kB / 290.8 MB, free: 23.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.1461, allocations: 4.344 kB / 290.8 MB, free: 23.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002359/0.1464, allocations: 44.05 kB / 290.8 MB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003635/0.1467, allocations: 110.6 kB / 291 MB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003274/0.1471, allocations: 0.83 MB / 291.8 MB, free: 22.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001854/0.1472, allocations: 14.58 kB / 291.8 MB, free: 22.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-05/0.1473, allocations: 24.39 kB / 291.8 MB, free: 22.5 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.0002396/0.1475, allocations: 251 kB / 292.1 MB, free: 22.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.028e-05/0.1476, allocations: 46.83 kB / 292.1 MB, free: 22.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005741/0.1482, allocations: 314.8 kB / 292.4 MB, free: 22.28 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.1482, allocations: 3.688 kB / 292.4 MB, free: 22.28 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1482, allocations: 2.188 kB / 292.4 MB, free: 22.28 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1482, allocations: 4.875 kB / 292.4 MB, free: 22.28 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.1495, allocations: 1.076 MB / 293.5 MB, free: 21.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.1495, allocations: 5.656 kB / 293.5 MB, free: 21.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003572/0.1499, allocations: 76 kB / 293.6 MB, free: 21.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001322/0.15, allocations: 39.92 kB / 293.6 MB, free: 21.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/0.15, allocations: 11.55 kB / 293.6 MB, free: 21.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002506/0.1503, allocations: 0.8201 MB / 294.5 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1503, allocations: 3.859 kB / 294.5 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007113/0.151, allocations: 0.6313 MB / 295.1 MB, free: 20.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.167e-05/0.1511, allocations: 33.25 kB / 295.1 MB, free: 20.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.737e-05/0.1511, allocations: 9.578 kB / 295.1 MB, free: 20.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.1512, allocations: 7 kB / 295.1 MB, free: 20.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.393e-05/0.1513, allocations: 24.27 kB / 295.2 MB, free: 20.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.1513, allocations: 15.97 kB / 295.2 MB, free: 20.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000201/0.1515, allocations: 273.6 kB / 295.4 MB, free: 20.72 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1515, allocations: 1.344 kB / 295.4 MB, free: 20.72 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005023/0.152, allocations: 119.3 kB / 295.6 MB, free: 20.72 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.0001514/0.1522, allocations: 125 kB / 295.7 MB, free: 20.63 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005909/0.1528, allocations: 333 kB / 296 MB, free: 20.61 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1528, allocations: 1.375 kB / 296 MB, free: 20.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002502/0.153, allocations: 144.3 kB / 296.2 MB, free: 20.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004946/0.1535, allocations: 69.98 kB / 296.2 MB, free: 20.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001925/0.1554, allocations: 1.42 MB / 297.6 MB, free: 19.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.1558, allocations: 337 kB / 298 MB, free: 19.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.00015/0.1559, allocations: 45.78 kB / 298 MB, free: 19.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.619e-05/0.156, allocations: 32.17 kB / 298 MB, free: 19.66 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.156, allocations: 0 / 298 MB, free: 19.66 MB / 266.7 MB Notification: Performance of Templates: time 0.008865/0.1649, allocations: 3.553 MB / 301.6 MB, free: 19.18 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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: 4.553414041991346]