Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008723/0.0008723, allocations: 76.81 kB / 22.28 MB, free: 2.211 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.0009164/0.0009164, allocations: 165.3 kB / 25.69 MB, free: 7.961 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8982/0.8982, allocations: 158.6 MB / 187.6 MB, free: 2.781 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 251.6 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.713e-05/1.878e-05, allocations: 6.25 kB / 251.6 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004281/0.0043, allocations: 5.21 MB / 256.8 MB, free: 1.988 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002255/0.006555, allocations: 2.134 MB / 258.9 MB, free: 15.84 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003111/0.006866, allocations: 51.56 kB / 259 MB, free: 15.79 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003477/0.007214, allocations: 202.2 kB / 259.2 MB, free: 15.59 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00023/0.007444, allocations: 178.3 kB / 259.3 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00057/0.008014, allocations: 398.9 kB / 259.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006584/0.008672, allocations: 1.036 MB / 260.8 MB, free: 13.98 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004178/0.00909, allocations: 405.5 kB / 261.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000392/0.009482, allocations: 0.5263 MB / 261.7 MB, free: 13.02 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002543/0.009736, allocations: 267.2 kB / 261.9 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.183e-05/0.009808, allocations: 92 kB / 262 MB, free: 12.67 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001857/0.009994, allocations: 159.8 kB / 262.2 MB, free: 12.52 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.01011, allocations: 203.3 kB / 262.4 MB, free: 12.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.01028, allocations: 295.3 kB / 262.7 MB, free: 12.03 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005047/0.01079, allocations: 0.681 MB / 263.4 MB, free: 11.34 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.01079, allocations: 0 / 263.4 MB, free: 11.34 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.01079, allocations: 0 / 263.4 MB, free: 11.34 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.022e-06/0.0108, allocations: 0 / 263.4 MB, free: 11.34 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.0007965/0.01159, allocations: 0.9516 MB / 264.3 MB, free: 10.37 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/0.01162, allocations: 11.98 kB / 264.3 MB, free: 10.36 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.01173, allocations: 124.8 kB / 264.4 MB, free: 10.23 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004086/0.01214, allocations: 393 kB / 264.8 MB, free: 9.828 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.377e-05/0.01217, allocations: 66.38 kB / 264.9 MB, free: 9.762 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.486e-05/0.01223, allocations: 84.38 kB / 265 MB, free: 9.68 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005446/0.01278, allocations: 0.5984 MB / 265.6 MB, free: 9.043 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.0128, allocations: 8.078 kB / 265.6 MB, free: 9.035 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.115e-05/0.01283, allocations: 36.38 kB / 265.6 MB, free: 9 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.01285, allocations: 27.94 kB / 265.6 MB, free: 8.973 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003938/0.01324, allocations: 216.6 kB / 265.8 MB, free: 8.758 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001619/0.01486, allocations: 2.155 MB / 268 MB, free: 6.508 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002525/0.01512, allocations: 142.1 kB / 268.1 MB, free: 6.363 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.998e-05/0.01517, allocations: 48.84 kB / 268.2 MB, free: 6.312 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.835e-05/0.01522, allocations: 23.97 kB / 268.2 MB, free: 6.289 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.01525, allocations: 38.56 kB / 268.3 MB, free: 6.242 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.223e-06/0.01525, allocations: 0 / 268.3 MB, free: 6.242 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.001068/0.01632, allocations: 0.8062 MB / 269.1 MB, free: 5.379 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.681e-05/0.01635, allocations: 59.39 kB / 269.1 MB, free: 5.309 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.0165, allocations: 286.8 kB / 269.4 MB, free: 5.016 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.01651, allocations: 29.7 kB / 269.4 MB, free: 4.98 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.01665, allocations: 388.3 kB / 269.8 MB, free: 4.594 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.256e-05/0.01671, allocations: 138.8 kB / 269.9 MB, free: 4.457 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.321e-05/0.01679, allocations: 94.09 kB / 270 MB, free: 4.359 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.357e-05/0.01688, allocations: 350.7 kB / 270.4 MB, free: 4.008 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.666e-05/0.01693, allocations: 40.97 kB / 270.4 MB, free: 3.965 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.01704, allocations: 190 kB / 270.6 MB, free: 3.719 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.01723, allocations: 272.6 kB / 270.9 MB, free: 3.391 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.01723, allocations: 4 kB / 270.9 MB, free: 3.387 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0002611/0.01749, allocations: 297.9 kB / 271.2 MB, free: 3.086 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.01751, allocations: 4 kB / 271.2 MB, free: 3.082 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.01752, allocations: 16.03 kB / 271.2 MB, free: 3.066 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000108/0.01762, allocations: 24.84 kB / 271.2 MB, free: 3.039 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002339/0.01786, allocations: 127.8 kB / 271.3 MB, free: 2.914 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002155/0.01807, allocations: 0.5366 MB / 271.9 MB, free: 2.352 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.773e-05/0.01816, allocations: 19.98 kB / 271.9 MB, free: 2.332 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.01818, allocations: 16 kB / 271.9 MB, free: 2.316 MB / 250.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.0001043/0.01829, allocations: 136.5 kB / 272 MB, free: 2.172 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.187e-05/0.01833, allocations: 43.94 kB / 272.1 MB, free: 2.129 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002236/0.01855, allocations: 186.4 kB / 272.3 MB, free: 1.938 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.01856, allocations: 11.92 kB / 272.3 MB, free: 1.926 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.01856, allocations: 0 / 272.3 MB, free: 1.926 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.01856, allocations: 0 / 272.3 MB, free: 1.926 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006289/0.01919, allocations: 0.567 MB / 272.8 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.01919, allocations: 4.156 kB / 272.8 MB, free: 1.312 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/0.01941, allocations: 99.48 kB / 272.9 MB, free: 1.219 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.719e-05/0.01947, allocations: 20.84 kB / 273 MB, free: 1.195 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.01949, allocations: 15.98 kB / 273 MB, free: 1.18 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001889/0.01968, allocations: 0.5288 MB / 273.5 MB, free: 0.625 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.01968, allocations: 4 kB / 273.5 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.01996, allocations: 374.3 kB / 273.9 MB, free: 224 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.567e-05/0.01998, allocations: 39.73 kB / 273.9 MB, free: 184 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.02001, allocations: 11.98 kB / 273.9 MB, free: 172 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.831e-05/0.02007, allocations: 8 kB / 273.9 MB, free: 164 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.923e-05/0.02011, allocations: 31.89 kB / 274 MB, free: 132 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.02013, allocations: 12 kB / 274 MB, free: 120 kB / 250.7 MB Notification: Performance of sorting global known variables: time 7.052e-05/0.0202, allocations: 104.6 kB / 274.1 MB, free: 16 kB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0202, allocations: 0 / 274.1 MB, free: 16 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002727/0.02047, allocations: 120 kB / 274.2 MB, free: 15.89 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.000142/0.02061, allocations: 100.2 kB / 274.3 MB, free: 15.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002666/0.02088, allocations: 205.2 kB / 274.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.02088, allocations: 4 kB / 274.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.02099, allocations: 101.8 kB / 274.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.02127, allocations: 81.06 kB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001314/0.02258, allocations: 1.171 MB / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.184e-05/0.02267, allocations: 145.7 kB / 276 MB, free: 14.03 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.957e-05/0.02277, allocations: 55.11 kB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.02289, allocations: 115.4 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.02289, allocations: 4 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of Templates: time 0.007179/0.03007, allocations: 4.002 MB / 280.2 MB, free: 9.887 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.599565691780299]