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.001435/0.001435, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001577/0.001577, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.487/1.487, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0007002/0.0007004, allocations: 16 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2445, allocations: 47.58 MB / 326.4 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004477/0.249, allocations: 4.381 MB / 330.8 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003201/0.2522, allocations: 2.011 MB / 332.8 MB, free: 12.42 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006541/0.2529, allocations: 32.88 kB / 332.9 MB, free: 12.41 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003755/0.2533, allocations: 155.6 kB / 333 MB, free: 12.28 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006379/0.2539, allocations: 306.7 kB / 333.3 MB, free: 12.01 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009336/0.2549, allocations: 347.9 kB / 333.7 MB, free: 11.77 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009522/0.2558, allocations: 0.6671 MB / 334.3 MB, free: 11.34 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006037/0.2564, allocations: 416 kB / 334.7 MB, free: 11.09 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002881/0.2567, allocations: 228.4 kB / 335 MB, free: 10.96 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002819/0.257, allocations: 263.7 kB / 335.2 MB, free: 10.71 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.7e-05/0.2571, allocations: 36 kB / 335.2 MB, free: 10.68 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001954/0.2573, allocations: 79.84 kB / 335.3 MB, free: 10.6 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.2574, allocations: 119.5 kB / 335.4 MB, free: 10.48 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.2576, allocations: 169.3 kB / 335.6 MB, free: 10.31 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007665/0.2583, allocations: 0.8855 MB / 336.5 MB, free: 9.422 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.2583, allocations: 0 / 336.5 MB, free: 9.422 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2584, allocations: 0 / 336.5 MB, free: 9.422 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.2584, allocations: 0 / 336.5 MB, free: 9.422 MB / 270.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.001326/0.2597, allocations: 0.8891 MB / 337.4 MB, free: 8.48 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.2598, allocations: 12.03 kB / 337.4 MB, free: 8.469 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.2599, allocations: 90.91 kB / 337.5 MB, free: 8.379 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006455/0.2606, allocations: 493.6 kB / 338 MB, free: 7.852 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.012e-05/0.2606, allocations: 69.94 kB / 338 MB, free: 7.785 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.2607, allocations: 87.91 kB / 338.1 MB, free: 7.699 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.2621, allocations: 0.7849 MB / 338.9 MB, free: 6.875 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.706e-05/0.2621, allocations: 11.91 kB / 338.9 MB, free: 6.863 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.039e-05/0.2622, allocations: 36 kB / 338.9 MB, free: 6.828 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.919e-05/0.2622, allocations: 20 kB / 339 MB, free: 6.809 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009153/0.2632, allocations: 0.4918 MB / 339.5 MB, free: 6.32 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003421/0.2666, allocations: 2.903 MB / 342.4 MB, free: 3.289 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005398/0.2672, allocations: 227.9 kB / 342.6 MB, free: 3.059 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002203/0.2674, allocations: 251.3 kB / 342.8 MB, free: 2.758 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.2674, allocations: 30.56 kB / 342.9 MB, free: 2.719 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.953e-06/0.2674, allocations: 0 / 342.9 MB, free: 2.719 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.0022/0.2696, allocations: 1.272 MB / 344.1 MB, free: 1.352 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.2697, allocations: 55.41 kB / 344.2 MB, free: 1.285 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000307/0.27, allocations: 300.5 kB / 344.5 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.059e-05/0.2701, allocations: 29.7 kB / 344.5 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002349/0.2703, allocations: 402.5 kB / 344.9 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.2704, allocations: 138 kB / 345 MB, free: 424 kB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.596e-05/0.2704, allocations: 8 kB / 345 MB, free: 416 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.2706, allocations: 346.8 kB / 345.4 MB, free: 60 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.2708, allocations: 113.1 kB / 345.5 MB, free: 15.95 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002779/0.2711, allocations: 254.5 kB / 345.7 MB, free: 15.64 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002449/0.2713, allocations: 147.7 kB / 345.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.2713, allocations: 0 / 345.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006712/0.272, allocations: 469.6 kB / 346.3 MB, free: 15.03 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.2721, allocations: 8 kB / 346.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.2721, allocations: 4 kB / 346.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001697/0.2723, allocations: 36.78 kB / 346.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003426/0.2726, allocations: 111.8 kB / 346.5 MB, free: 14.87 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003474/0.273, allocations: 0.5563 MB / 347.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/0.2731, allocations: 24.08 kB / 347.1 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/0.2732, allocations: 16 kB / 347.1 MB, free: 14.25 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002868/0.2735, allocations: 225.6 kB / 347.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.409e-05/0.2735, allocations: 39.53 kB / 347.4 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005663/0.2741, allocations: 322.1 kB / 347.7 MB, free: 13.66 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.2741, allocations: 4 kB / 347.7 MB, free: 13.65 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2741, allocations: 3.938 kB / 347.7 MB, free: 13.65 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.2742, allocations: 0 / 347.7 MB, free: 13.65 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.2755, allocations: 1.03 MB / 348.7 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.2756, allocations: 7.953 kB / 348.7 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003328/0.2759, allocations: 83.89 kB / 348.8 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001157/0.276, allocations: 28.84 kB / 348.8 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.2761, allocations: 8 kB / 348.8 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000307/0.2764, allocations: 0.5486 MB / 349.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.2764, allocations: 4.031 kB / 349.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007367/0.2771, allocations: 0.6032 MB / 350 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.183e-05/0.2772, allocations: 112.6 kB / 350.1 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.015e-05/0.2773, allocations: 16.08 kB / 350.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.2774, allocations: 11.94 kB / 350.1 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.422e-05/0.2775, allocations: 23.97 kB / 350.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.2775, allocations: 8 kB / 350.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001864/0.2777, allocations: 211 kB / 350.4 MB, free: 10.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2777, allocations: 0 / 350.4 MB, free: 10.77 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004798/0.2782, allocations: 120 kB / 350.5 MB, free: 10.65 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001503/0.2784, allocations: 123.2 kB / 350.6 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005644/0.2789, allocations: 308.7 kB / 350.9 MB, free: 10.22 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.279, allocations: 0 / 350.9 MB, free: 10.22 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002353/0.2792, allocations: 153.1 kB / 351.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.2796, allocations: 61.72 kB / 351.1 MB, free: 10.02 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/0.2819, allocations: 2.003 MB / 353.1 MB, free: 7.969 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.2824, allocations: 0.9327 MB / 354 MB, free: 7.008 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001537/0.2825, allocations: 51.31 kB / 354.1 MB, free: 6.953 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.002e-05/0.2826, allocations: 31.44 kB / 354.1 MB, free: 6.922 MB / 286.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2826, allocations: 0 / 354.1 MB, free: 6.922 MB / 286.1 MB Notification: Performance of Templates: time 0.007215/0.2898, allocations: 3.441 MB / 357.6 MB, free: 3.48 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: