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.002525/0.002525, allocations: 95.61 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.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.003056/0.003056, allocations: 165.6 kB / 24.28 MB, free: 152 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 1.606/1.606, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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 4.83e-06/4.83e-06, allocations: 4 kB / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.466e-05/2.949e-05, allocations: 2.312 kB / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.008249/0.008279, allocations: 5.277 MB / 277.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004215/0.01249, allocations: 2.087 MB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005786/0.01307, allocations: 55.56 kB / 279.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005271/0.0136, allocations: 206.2 kB / 279.9 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004347/0.01403, allocations: 186.2 kB / 280.1 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.0152, allocations: 406.9 kB / 280.5 MB, free: 9.613 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001268/0.01647, allocations: 1.036 MB / 281.5 MB, free: 8.574 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007071/0.01718, allocations: 397.6 kB / 281.9 MB, free: 8.156 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007809/0.01796, allocations: 0.5341 MB / 282.5 MB, free: 7.621 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004321/0.01839, allocations: 271.2 kB / 282.7 MB, free: 7.355 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001385/0.01853, allocations: 95.94 kB / 282.8 MB, free: 7.262 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002926/0.01882, allocations: 159.8 kB / 283 MB, free: 7.105 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002306/0.01905, allocations: 211.3 kB / 283.2 MB, free: 6.898 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003586/0.01941, allocations: 291.3 kB / 283.5 MB, free: 6.613 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001467/0.02088, allocations: 1.207 MB / 284.7 MB, free: 5.402 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.02088, allocations: 0 / 284.7 MB, free: 5.402 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.02088, allocations: 0 / 284.7 MB, free: 5.402 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.0209, allocations: 0 / 284.7 MB, free: 5.402 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.001794/0.02269, allocations: 1.15 MB / 285.8 MB, free: 4.215 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.02273, allocations: 11.97 kB / 285.8 MB, free: 4.203 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003542/0.02308, allocations: 168.4 kB / 286 MB, free: 4.039 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008473/0.02393, allocations: 486.4 kB / 286.5 MB, free: 3.535 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.085e-05/0.024, allocations: 70.31 kB / 286.5 MB, free: 3.465 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.02413, allocations: 88.33 kB / 286.6 MB, free: 3.379 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.02589, allocations: 0.8287 MB / 287.5 MB, free: 2.504 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.706e-05/0.02592, allocations: 8.172 kB / 287.5 MB, free: 2.496 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.911e-05/0.02599, allocations: 40.38 kB / 287.5 MB, free: 2.457 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.525e-05/0.02602, allocations: 23.94 kB / 287.5 MB, free: 2.434 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009794/0.027, allocations: 431.7 kB / 288 MB, free: 2.008 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1109/0.1379, allocations: 3.308 MB / 291.3 MB, free: 26.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006064/0.1385, allocations: 222.2 kB / 291.5 MB, free: 26.19 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.1387, allocations: 95.33 kB / 291.6 MB, free: 26.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001233/0.1388, allocations: 22.02 kB / 291.6 MB, free: 26.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.842e-05/0.1389, allocations: 36.75 kB / 291.6 MB, free: 26.13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.813e-06/0.1389, allocations: 0 / 291.6 MB, free: 26.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.002237/0.1411, allocations: 1.147 MB / 292.8 MB, free: 25.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.561e-05/0.1411, allocations: 59.69 kB / 292.8 MB, free: 25.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003736/0.1415, allocations: 443.7 kB / 293.3 MB, free: 25.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.1415, allocations: 30.48 kB / 293.3 MB, free: 25.49 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002009/0.1417, allocations: 474 kB / 293.8 MB, free: 25.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.705e-05/0.1418, allocations: 153.4 kB / 293.9 MB, free: 25.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.1419, allocations: 109.1 kB / 294 MB, free: 25.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.142, allocations: 0.5471 MB / 294.6 MB, free: 24.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.1422, allocations: 102.9 kB / 294.7 MB, free: 24.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.1425, allocations: 320.4 kB / 295 MB, free: 24.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004446/0.1429, allocations: 462.5 kB / 295.4 MB, free: 23.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1429, allocations: 2.281 kB / 295.4 MB, free: 23.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006951/0.1436, allocations: 481.9 kB / 295.9 MB, free: 23.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.1436, allocations: 8.219 kB / 295.9 MB, free: 23.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1436, allocations: 4.812 kB / 295.9 MB, free: 23.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001882/0.1438, allocations: 45.62 kB / 296 MB, free: 23.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003553/0.1442, allocations: 113.7 kB / 296.1 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003009/0.1445, allocations: 0.8299 MB / 296.9 MB, free: 22.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.1447, allocations: 12.8 kB / 296.9 MB, free: 22.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.908e-05/0.1447, allocations: 21.56 kB / 296.9 MB, free: 22.92 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.0002247/0.1449, allocations: 246.4 kB / 297.2 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.873e-05/0.145, allocations: 52.92 kB / 297.2 MB, free: 22.68 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005558/0.1456, allocations: 332.4 kB / 297.5 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.1456, allocations: 3.25 kB / 297.6 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1456, allocations: 1.469 kB / 297.6 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.1456, allocations: 2.016 kB / 297.6 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/0.1469, allocations: 1.075 MB / 298.6 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.1469, allocations: 5 kB / 298.6 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003468/0.1473, allocations: 80.56 kB / 298.7 MB, free: 21.85 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001155/0.1474, allocations: 33.58 kB / 298.7 MB, free: 21.83 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.1474, allocations: 16.97 kB / 298.8 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002313/0.1477, allocations: 0.8206 MB / 299.6 MB, free: 21.01 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1477, allocations: 1.156 kB / 299.6 MB, free: 21.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007853/0.1485, allocations: 0.6154 MB / 300.2 MB, free: 20.61 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.015e-05/0.1485, allocations: 34.31 kB / 300.2 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.516e-05/0.1485, allocations: 8.062 kB / 300.2 MB, free: 20.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.1487, allocations: 8.125 kB / 300.2 MB, free: 20.58 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.182e-05/0.1488, allocations: 33.64 kB / 300.3 MB, free: 20.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.1488, allocations: 19.78 kB / 300.3 MB, free: 20.56 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000217/0.149, allocations: 276.4 kB / 300.6 MB, free: 20.4 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.149, allocations: 0 / 300.6 MB, free: 20.4 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005052/0.1495, allocations: 123 kB / 300.7 MB, free: 20.38 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.0001504/0.1497, allocations: 121.3 kB / 300.8 MB, free: 20.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006028/0.1503, allocations: 331.6 kB / 301.1 MB, free: 20.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.1503, allocations: 0 / 301.1 MB, free: 20.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002661/0.1505, allocations: 153 kB / 301.3 MB, free: 20.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.1511, allocations: 74.41 kB / 301.4 MB, free: 20.1 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001975/0.153, allocations: 1.419 MB / 302.8 MB, free: 19.18 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.1534, allocations: 333 kB / 303.1 MB, free: 19.07 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001463/0.1535, allocations: 46.03 kB / 303.1 MB, free: 19.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.583e-05/0.1536, allocations: 31.81 kB / 303.2 MB, free: 19.04 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1536, allocations: 1.344 kB / 303.2 MB, free: 19.04 MB / 266.7 MB Notification: Performance of Templates: time 0.008701/0.1623, allocations: 3.565 MB / 306.7 MB, free: 18.18 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.646741061937064]