Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00109/0.00109, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001433, allocations: 160.9 kB / 24.91 MB, free: 8.719 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.008/1.008, allocations: 177 MB / 205.2 MB, free: 5.051 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 273.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.932e-05/2.065e-05, allocations: 5.266 kB / 273.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004658/0.004679, allocations: 5.222 MB / 278.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003263/0.007942, allocations: 2.152 MB / 280.8 MB, free: 9.617 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005311/0.008473, allocations: 55.5 kB / 280.9 MB, free: 9.562 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003873/0.00886, allocations: 206.2 kB / 281.1 MB, free: 9.359 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004113/0.009271, allocations: 186.2 kB / 281.2 MB, free: 9.176 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007885/0.01006, allocations: 406.9 kB / 281.6 MB, free: 8.777 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009467/0.01101, allocations: 1.036 MB / 282.7 MB, free: 7.734 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005175/0.01152, allocations: 413.5 kB / 283.1 MB, free: 7.301 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000682/0.01221, allocations: 0.534 MB / 283.6 MB, free: 6.766 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003439/0.01255, allocations: 267.2 kB / 283.9 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.985e-05/0.01265, allocations: 95.94 kB / 284 MB, free: 6.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002369/0.01289, allocations: 155.9 kB / 284.1 MB, free: 6.258 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.01303, allocations: 215.3 kB / 284.3 MB, free: 6.047 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002242/0.01325, allocations: 291.3 kB / 284.6 MB, free: 5.762 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007646/0.01402, allocations: 0.6848 MB / 285.3 MB, free: 5.074 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.01402, allocations: 0 / 285.3 MB, free: 5.074 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.01402, allocations: 3.938 kB / 285.3 MB, free: 5.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.01404, allocations: 0 / 285.3 MB, free: 5.07 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.0008645/0.0149, allocations: 0.9516 MB / 286.2 MB, free: 4.094 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.01494, allocations: 19.92 kB / 286.3 MB, free: 4.074 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002669/0.0152, allocations: 136.8 kB / 286.4 MB, free: 3.941 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004337/0.01564, allocations: 385 kB / 286.8 MB, free: 3.539 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.488e-05/0.01567, allocations: 66.38 kB / 286.8 MB, free: 3.473 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.147e-05/0.01574, allocations: 92.27 kB / 286.9 MB, free: 3.383 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005783/0.01632, allocations: 0.5984 MB / 287.5 MB, free: 2.746 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/0.01635, allocations: 8.172 kB / 287.5 MB, free: 2.738 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.01638, allocations: 36.38 kB / 287.6 MB, free: 2.703 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.0164, allocations: 27.94 kB / 287.6 MB, free: 2.676 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003123/0.01671, allocations: 212.6 kB / 287.8 MB, free: 2.465 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.01874, allocations: 2.155 MB / 290 MB, free: 224 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002942/0.01903, allocations: 147.2 kB / 290.1 MB, free: 60 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.297e-05/0.01908, allocations: 52.77 kB / 290.2 MB, free: 4 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1071/0.1262, allocations: 15.69 kB / 290.2 MB, free: 26.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.1262, allocations: 36.56 kB / 290.2 MB, free: 26.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.395e-06/0.1262, allocations: 0 / 290.2 MB, free: 26.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001403/0.1276, allocations: 0.8006 MB / 291 MB, free: 26.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.903e-05/0.1277, allocations: 55.16 kB / 291.1 MB, free: 26.06 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001991/0.1279, allocations: 295.1 kB / 291.4 MB, free: 25.94 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.1279, allocations: 32.02 kB / 291.4 MB, free: 25.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.128, allocations: 387.5 kB / 291.8 MB, free: 25.74 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.055e-05/0.1281, allocations: 144.5 kB / 291.9 MB, free: 25.67 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.442e-05/0.1281, allocations: 90.36 kB / 292 MB, free: 25.65 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.888e-05/0.1282, allocations: 355.9 kB / 292.3 MB, free: 25.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.711e-05/0.1283, allocations: 41.97 kB / 292.4 MB, free: 25.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.926e-05/0.1284, allocations: 186 kB / 292.6 MB, free: 25.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002021/0.1286, allocations: 282.6 kB / 292.8 MB, free: 25.01 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1286, allocations: 4.094 kB / 292.8 MB, free: 25.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003066/0.1289, allocations: 282 kB / 293.1 MB, free: 24.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.1289, allocations: 8.844 kB / 293.1 MB, free: 24.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.1289, allocations: 5.281 kB / 293.1 MB, free: 24.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001224/0.129, allocations: 29.47 kB / 293.2 MB, free: 24.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/0.1293, allocations: 126.4 kB / 293.3 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001877/0.1295, allocations: 0.534 MB / 293.8 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.1296, allocations: 16.55 kB / 293.8 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.1296, allocations: 17.45 kB / 293.9 MB, free: 24.44 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.0001361/0.1298, allocations: 145.5 kB / 294 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.334e-05/0.1298, allocations: 38.34 kB / 294 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002549/0.1301, allocations: 200.7 kB / 294.2 MB, free: 24.26 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1301, allocations: 5.844 kB / 294.2 MB, free: 24.26 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.1301, allocations: 1.938 kB / 294.2 MB, free: 24.26 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1301, allocations: 3.562 kB / 294.2 MB, free: 24.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006814/0.1307, allocations: 0.5632 MB / 294.8 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1307, allocations: 2.188 kB / 294.8 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002284/0.131, allocations: 93.02 kB / 294.9 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.388e-05/0.1311, allocations: 31.97 kB / 294.9 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.1311, allocations: 9.469 kB / 294.9 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001278/0.1312, allocations: 0.5334 MB / 295.5 MB, free: 23.49 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1312, allocations: 2.875 kB / 295.5 MB, free: 23.49 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003097/0.1315, allocations: 374.1 kB / 295.8 MB, free: 23.3 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.164e-05/0.1316, allocations: 31.88 kB / 295.9 MB, free: 23.28 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.1316, allocations: 7.344 kB / 295.9 MB, free: 23.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.227e-05/0.1316, allocations: 11.25 kB / 295.9 MB, free: 23.28 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.426e-05/0.1317, allocations: 28.16 kB / 295.9 MB, free: 23.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.1317, allocations: 8.969 kB / 295.9 MB, free: 23.28 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.367e-05/0.1318, allocations: 116.3 kB / 296 MB, free: 23.26 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1318, allocations: 0 / 296 MB, free: 23.26 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003677/0.1322, allocations: 122.4 kB / 296.2 MB, free: 23.26 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.0001411/0.1323, allocations: 100.6 kB / 296.3 MB, free: 23.19 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002906/0.1326, allocations: 209.8 kB / 296.5 MB, free: 23.15 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/0.1326, allocations: 4.344 kB / 296.5 MB, free: 23.15 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.1327, allocations: 101.7 kB / 296.6 MB, free: 23.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002734/0.133, allocations: 71.91 kB / 296.6 MB, free: 23.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.1345, allocations: 1.165 MB / 297.8 MB, free: 22.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001076/0.1346, allocations: 155.3 kB / 297.9 MB, free: 22.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001197/0.1347, allocations: 50.59 kB / 298 MB, free: 22.38 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.1348, allocations: 119.7 kB / 298.1 MB, free: 22.33 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1348, allocations: 0 / 298.1 MB, free: 22.33 MB / 266.7 MB Notification: Performance of Templates: time 0.008278/0.1431, allocations: 4.044 MB / 302.2 MB, free: 21.64 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.666113607119769]