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.0009125/0.0009125, allocations: 83.58 kB / 21.19 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.00093/0.00093, allocations: 161 kB / 24.56 MB, free: 16 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.9787/0.9787, allocations: 177.1 MB / 205 MB, free: 5.59 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.352e-06/1.352e-06, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.873e-05/2.008e-05, allocations: 2.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004821/0.004841, allocations: 5.319 MB / 278.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002839/0.007679, allocations: 2.098 MB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004582/0.008138, allocations: 47.62 kB / 280.4 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003542/0.008492, allocations: 210.2 kB / 280.6 MB, free: 9.812 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002856/0.008777, allocations: 186.2 kB / 280.8 MB, free: 9.629 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007943/0.009572, allocations: 410.9 kB / 281.2 MB, free: 9.227 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008905/0.01046, allocations: 1.04 MB / 282.3 MB, free: 8.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004504/0.01091, allocations: 393.6 kB / 282.6 MB, free: 7.766 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005472/0.01146, allocations: 0.534 MB / 283.2 MB, free: 7.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002719/0.01173, allocations: 271.2 kB / 283.4 MB, free: 6.965 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.179e-05/0.01181, allocations: 92 kB / 283.5 MB, free: 6.875 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.01201, allocations: 155.8 kB / 283.7 MB, free: 6.723 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.01213, allocations: 207.3 kB / 283.9 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.01233, allocations: 295.3 kB / 284.2 MB, free: 6.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008687/0.0132, allocations: 0.6848 MB / 284.9 MB, free: 5.543 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.01321, allocations: 3.984 kB / 284.9 MB, free: 5.539 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.01321, allocations: 0 / 284.9 MB, free: 5.539 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.01322, allocations: 4 kB / 284.9 MB, free: 5.535 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.0009538/0.01417, allocations: 1.065 MB / 285.9 MB, free: 4.434 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.0142, allocations: 12.03 kB / 285.9 MB, free: 4.422 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002129/0.01442, allocations: 168.4 kB / 286.1 MB, free: 4.258 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004674/0.01488, allocations: 490.4 kB / 286.6 MB, free: 3.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.455e-05/0.01492, allocations: 66.38 kB / 286.7 MB, free: 3.684 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.867e-05/0.015, allocations: 96.3 kB / 286.8 MB, free: 3.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007317/0.01573, allocations: 0.6497 MB / 287.4 MB, free: 2.891 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.01575, allocations: 4.188 kB / 287.4 MB, free: 2.887 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.896e-05/0.01579, allocations: 36.38 kB / 287.4 MB, free: 2.852 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.01581, allocations: 23.94 kB / 287.5 MB, free: 2.828 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004203/0.01623, allocations: 283.6 kB / 287.7 MB, free: 2.547 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1094/0.1257, allocations: 2.966 MB / 290.7 MB, free: 24.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004437/0.1261, allocations: 171 kB / 290.9 MB, free: 24.67 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.977e-05/0.1262, allocations: 64.3 kB / 290.9 MB, free: 24.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.616e-05/0.1263, allocations: 19.34 kB / 291 MB, free: 24.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.1263, allocations: 39.67 kB / 291 MB, free: 24.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.083e-06/0.1263, allocations: 1.781 kB / 291 MB, free: 24.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001508/0.1278, allocations: 0.9801 MB / 292 MB, free: 24.25 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.691e-05/0.1279, allocations: 56.23 kB / 292 MB, free: 24.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002613/0.1281, allocations: 356.3 kB / 292.4 MB, free: 24.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1281, allocations: 31.89 kB / 292.4 MB, free: 23.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.1283, allocations: 458.6 kB / 292.9 MB, free: 23.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.308e-05/0.1284, allocations: 140.4 kB / 293 MB, free: 23.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.386e-05/0.1285, allocations: 93.34 kB / 293.1 MB, free: 23.63 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.567e-05/0.1286, allocations: 0.5234 MB / 293.6 MB, free: 23.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.1287, allocations: 56.39 kB / 293.7 MB, free: 23.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.1288, allocations: 263.5 kB / 293.9 MB, free: 22.9 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002801/0.1291, allocations: 354.1 kB / 294.3 MB, free: 22.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1291, allocations: 1.641 kB / 294.3 MB, free: 22.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004191/0.1296, allocations: 392.1 kB / 294.7 MB, free: 22.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.1296, allocations: 7.562 kB / 294.7 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1296, allocations: 5.281 kB / 294.7 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001491/0.1297, allocations: 33 kB / 294.7 MB, free: 22.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.1299, allocations: 111.2 kB / 294.8 MB, free: 22.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002105/0.1302, allocations: 0.8152 MB / 295.6 MB, free: 21.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.1303, allocations: 14.28 kB / 295.6 MB, free: 21.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.965e-05/0.1303, allocations: 25.72 kB / 295.7 MB, free: 21.77 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.0001137/0.1304, allocations: 182.8 kB / 295.8 MB, free: 21.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.685e-05/0.1304, allocations: 54.91 kB / 295.9 MB, free: 21.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003309/0.1308, allocations: 260.5 kB / 296.1 MB, free: 21.53 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.1308, allocations: 3.688 kB / 296.1 MB, free: 21.53 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1308, allocations: 0 / 296.1 MB, free: 21.53 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1308, allocations: 2.938 kB / 296.2 MB, free: 21.53 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000904/0.1317, allocations: 0.8432 MB / 297 MB, free: 21.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1317, allocations: 3.438 kB / 297 MB, free: 21.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/0.1319, allocations: 79.17 kB / 297.1 MB, free: 21.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.342e-05/0.132, allocations: 38.53 kB / 297.1 MB, free: 21.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.132, allocations: 8.984 kB / 297.1 MB, free: 21.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001453/0.1322, allocations: 0.8028 MB / 297.9 MB, free: 20.35 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.1322, allocations: 1.406 kB / 297.9 MB, free: 20.35 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003804/0.1326, allocations: 0.5048 MB / 298.4 MB, free: 20.06 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.194e-05/0.1326, allocations: 39.97 kB / 298.5 MB, free: 20.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.036e-05/0.1326, allocations: 9.016 kB / 298.5 MB, free: 20.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.463e-05/0.1327, allocations: 11.28 kB / 298.5 MB, free: 20.04 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.695e-05/0.1327, allocations: 24.27 kB / 298.5 MB, free: 20.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.1328, allocations: 13.7 kB / 298.5 MB, free: 20.04 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001247/0.1329, allocations: 234.1 kB / 298.8 MB, free: 19.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1329, allocations: 0 / 298.8 MB, free: 19.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000327/0.1332, allocations: 120.5 kB / 298.9 MB, free: 19.91 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.000129/0.1333, allocations: 129.8 kB / 299 MB, free: 19.82 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003621/0.1337, allocations: 237 kB / 299.2 MB, free: 19.78 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1337, allocations: 1.25 kB / 299.2 MB, free: 19.78 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001382/0.1338, allocations: 119.7 kB / 299.3 MB, free: 19.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.1342, allocations: 65.25 kB / 299.4 MB, free: 19.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.1358, allocations: 1.381 MB / 300.8 MB, free: 18.92 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.1359, allocations: 147.1 kB / 300.9 MB, free: 18.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.136, allocations: 47.41 kB / 301 MB, free: 18.83 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.42e-05/0.1361, allocations: 32.98 kB / 301 MB, free: 18.82 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.1361, allocations: 0 / 301 MB, free: 18.82 MB / 266.7 MB Notification: Performance of Templates: time 0.007188/0.1433, allocations: 3.76 MB / 304.8 MB, free: 18.19 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: 2.7450269260443747]