Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01061/0.01061, allocations: 103 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 191.4 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002161/0.002161, allocations: 54.25 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.136, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007432/0.1435, allocations: 5.407 MB / 378.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004099/0.1476, allocations: 2.119 MB / 380.7 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.1487, allocations: 35.81 kB / 380.7 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008224/0.1495, allocations: 202.2 kB / 380.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009119/0.1505, allocations: 178.4 kB / 381.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001332/0.1518, allocations: 387.1 kB / 381.5 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001761/0.1536, allocations: 1.021 MB / 382.5 MB, free: 7.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.1549, allocations: 0.6142 MB / 383.1 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007823/0.1557, allocations: 342.8 kB / 383.4 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006963/0.1564, allocations: 362.3 kB / 383.8 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001879/0.1566, allocations: 95.94 kB / 383.9 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003818/0.157, allocations: 147.9 kB / 384 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002355/0.1572, allocations: 199.4 kB / 384.2 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006133/0.1579, allocations: 434 kB / 384.7 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001357/0.1592, allocations: 1.176 MB / 385.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.1593, allocations: 0 / 385.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.1593, allocations: 0 / 385.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.1593, allocations: 4 kB / 385.8 MB, free: 4.559 MB / 318.1 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.001394/0.1607, allocations: 1.022 MB / 386.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.1607, allocations: 8.031 kB / 386.9 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.1609, allocations: 95.84 kB / 387 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000808/0.1617, allocations: 0.522 MB / 387.5 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.781e-05/0.1618, allocations: 58.38 kB / 387.5 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.1619, allocations: 88.28 kB / 387.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.1634, allocations: 0.8087 MB / 388.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.748e-05/0.1634, allocations: 3.906 kB / 388.4 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.456e-05/0.1635, allocations: 36 kB / 388.5 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.1635, allocations: 28 kB / 388.5 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000888/0.1644, allocations: 0.4918 MB / 389 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003221/0.1676, allocations: 2.848 MB / 391.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005724/0.1682, allocations: 222.7 kB / 392.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.1684, allocations: 104.8 kB / 392.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002419/0.1687, allocations: 247.2 kB / 392.4 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.1687, allocations: 38.56 kB / 392.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.853e-06/0.1687, allocations: 0 / 392.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002536/0.1712, allocations: 1.263 MB / 393.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.1713, allocations: 63.33 kB / 393.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000366/0.1717, allocations: 304.4 kB / 394.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.1717, allocations: 29.7 kB / 394.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003052/0.1721, allocations: 406.5 kB / 394.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.1722, allocations: 138.1 kB / 394.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.1723, allocations: 86.14 kB / 394.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.1725, allocations: 350.7 kB / 395 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002409/0.1728, allocations: 109.1 kB / 395.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003283/0.1731, allocations: 254.7 kB / 395.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005583/0.1737, allocations: 392.6 kB / 395.8 MB, free: 10 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.1737, allocations: 0 / 395.8 MB, free: 10 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008183/0.1745, allocations: 457.1 kB / 396.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.1746, allocations: 8 kB / 396.2 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/0.1746, allocations: 4 kB / 396.2 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000255/0.1748, allocations: 40.78 kB / 396.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003711/0.1752, allocations: 107.8 kB / 396.4 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004988/0.1757, allocations: 0.5722 MB / 397 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.176, allocations: 8 kB / 397 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.657e-05/0.176, allocations: 24 kB / 397 MB, free: 8.754 MB / 334.1 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.0003393/0.1764, allocations: 221.6 kB / 397.2 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.883e-05/0.1764, allocations: 31.62 kB / 397.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006038/0.177, allocations: 326.2 kB / 397.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.1771, allocations: 4 kB / 397.6 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1771, allocations: 0 / 397.6 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.1771, allocations: 3.984 kB / 397.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001505/0.1786, allocations: 1.011 MB / 398.6 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.1786, allocations: 4 kB / 398.6 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003581/0.179, allocations: 75.89 kB / 398.7 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001635/0.1792, allocations: 36.84 kB / 398.7 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.291e-05/0.1792, allocations: 11.98 kB / 398.7 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000442/0.1796, allocations: 0.5525 MB / 399.3 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1797, allocations: 0 / 399.3 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007936/0.1805, allocations: 0.5564 MB / 399.8 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.1806, allocations: 100.7 kB / 399.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.698e-05/0.1806, allocations: 15.98 kB / 399.9 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.1808, allocations: 8 kB / 399.9 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.728e-05/0.1809, allocations: 23.97 kB / 400 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.049e-05/0.1809, allocations: 16.09 kB / 400 MB, free: 5.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002188/0.1811, allocations: 211 kB / 400.2 MB, free: 5.383 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.954e-06/0.1811, allocations: 4 kB / 400.2 MB, free: 5.379 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005769/0.1817, allocations: 127.9 kB / 400.3 MB, free: 5.254 MB / 334.1 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.0002072/0.1819, allocations: 119.2 kB / 400.4 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007146/0.1826, allocations: 300.7 kB / 400.7 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.1827, allocations: 0 / 400.7 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003053/0.183, allocations: 139.8 kB / 400.9 MB, free: 4.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005754/0.1836, allocations: 65.44 kB / 400.9 MB, free: 4.637 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003062/0.1866, allocations: 1.578 MB / 402.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007034/0.1874, allocations: 0.921 MB / 403.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002048/0.1876, allocations: 51.33 kB / 403.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.006e-05/0.1877, allocations: 27.44 kB / 403.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1877, allocations: 4 kB / 403.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of Templates: time 0.01082/0.1985, allocations: 3.842 MB / 407.3 MB, free: 14.13 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1)