Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.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.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 103.2 kB / 17.06 MB, free: 5.742 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.001165/0.001166, allocations: 194.9 kB / 18 MB, free: 4.91 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.591/1.591, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.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.001159/0.001159, allocations: 47.92 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09766/0.09882, allocations: 46.61 MB / 374.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.2389/0.3378, allocations: 4.57 MB / 379 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004037/0.3419, allocations: 1.364 MB / 380.4 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001306/0.3433, allocations: 23.53 kB / 380.4 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009647/0.3443, allocations: 179.9 kB / 380.6 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001225/0.3456, allocations: 158.6 kB / 380.8 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001821/0.3474, allocations: 369.1 kB / 381.1 MB, free: 9.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002355/0.3498, allocations: 0.9763 MB / 382.1 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009933/0.3508, allocations: 427.5 kB / 382.5 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000731/0.3515, allocations: 326.2 kB / 382.8 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000818/0.3524, allocations: 349.9 kB / 383.2 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003406/0.3527, allocations: 72.62 kB / 383.2 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00064/0.3534, allocations: 116.4 kB / 383.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003198/0.3537, allocations: 171.4 kB / 383.5 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006851/0.3544, allocations: 425 kB / 383.9 MB, free: 8.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001675/0.3561, allocations: 1.104 MB / 385 MB, free: 7.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.3561, allocations: 4 kB / 385 MB, free: 7.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.3561, allocations: 2.641 kB / 385 MB, free: 7.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.366e-05/0.3562, allocations: 0 / 385 MB, free: 7.906 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.002003/0.3582, allocations: 1.129 MB / 386.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.3583, allocations: 10.12 kB / 386.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.3584, allocations: 103 kB / 386.3 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.3596, allocations: 0.6328 MB / 386.9 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.787e-05/0.3596, allocations: 61.56 kB / 387 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.3597, allocations: 85.55 kB / 387.1 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.3612, allocations: 0.8457 MB / 387.9 MB, free: 6.035 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.672e-05/0.3612, allocations: 10.97 kB / 387.9 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.119e-05/0.3613, allocations: 38.33 kB / 388 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.819e-05/0.3613, allocations: 21.09 kB / 388 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009459/0.3623, allocations: 478.6 kB / 388.4 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003344/0.3656, allocations: 4.36 MB / 392.8 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005923/0.3663, allocations: 309 kB / 393.1 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.3665, allocations: 142.2 kB / 393.2 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001824/0.3667, allocations: 172 kB / 393.4 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.3667, allocations: 41.06 kB / 393.5 MB, free: 1.762 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 2.705e-06/0.3667, allocations: 0 / 393.5 MB, free: 1.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.003305/0.37, allocations: 1.73 MB / 395.2 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/0.3701, allocations: 59.22 kB / 395.2 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006182/0.3707, allocations: 0.535 MB / 395.8 MB, free: 400 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.3708, allocations: 36.11 kB / 395.8 MB, free: 360 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002709/0.371, allocations: 483.8 kB / 396.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/0.3712, allocations: 208.9 kB / 396.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000213/0.3714, allocations: 137.4 kB / 396.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002113/0.3716, allocations: 382 kB / 397 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003299/0.372, allocations: 166.5 kB / 397.2 MB, free: 15.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005605/0.3726, allocations: 461.1 kB / 397.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009564/0.3735, allocations: 0.6708 MB / 398.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.3735, allocations: 2.531 kB / 398.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001358/0.3749, allocations: 0.7419 MB / 399 MB, free: 13.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.3749, allocations: 8.922 kB / 399 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.375, allocations: 10.5 kB / 399 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001975/0.3752, allocations: 46.84 kB / 399.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006437/0.3758, allocations: 182.8 kB / 399.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00155/0.3774, allocations: 1.687 MB / 401 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003953/0.3778, allocations: 29.78 kB / 401 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.425e-05/0.3779, allocations: 38.77 kB / 401 MB, free: 12.29 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (101): * Single equations (assignments): 100 * 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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003618/0.3782, allocations: 237.9 kB / 401.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.3783, allocations: 72.56 kB / 401.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001417/0.3785, allocations: 77.08 kB / 401.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.3785, allocations: 6.625 kB / 401.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/0.3785, allocations: 2 kB / 401.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.3785, allocations: 3 kB / 401.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002392/0.3809, allocations: 1.41 MB / 402.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.3809, allocations: 2.75 kB / 402.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005005/0.3815, allocations: 112.6 kB / 402.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.886e-05/0.3816, allocations: 24.67 kB / 403 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.3816, allocations: 14.67 kB / 403 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.3827, allocations: 1.368 MB / 404.3 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/0.3827, allocations: 12.08 kB / 404.4 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.384, allocations: 0.7806 MB / 405.1 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.3842, allocations: 137.3 kB / 405.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.087e-05/0.3843, allocations: 15.48 kB / 405.3 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.3845, allocations: 15.05 kB / 405.3 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.3846, allocations: 46.41 kB / 405.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.451e-05/0.3846, allocations: 22.45 kB / 405.4 MB, free: 9.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005907/0.3852, allocations: 364.3 kB / 405.7 MB, free: 8.875 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3852, allocations: 0 / 405.7 MB, free: 8.875 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009262/0.3862, allocations: 136.9 kB / 405.9 MB, free: 8.855 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * 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 (56): * Single equations (assignments): 55 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002012/0.3864, allocations: 126.6 kB / 406 MB, free: 8.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001353/0.3878, allocations: 0.5916 MB / 406.6 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.85e-06/0.3878, allocations: 0 / 406.6 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005179/0.3883, allocations: 313.6 kB / 406.9 MB, free: 8.277 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007163/0.389, allocations: 103.2 kB / 407 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003263/0.3923, allocations: 1.847 MB / 408.8 MB, free: 6.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007431/0.3931, allocations: 0.9639 MB / 409.8 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003434/0.3934, allocations: 83.67 kB / 409.9 MB, free: 6.254 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.3936, allocations: 63.45 kB / 409.9 MB, free: 6.238 MB / 334.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3936, allocations: 0 / 409.9 MB, free: 6.238 MB / 334.1 MB Notification: Performance of Templates: time 0.01383/0.4074, allocations: 5.443 MB / 415.4 MB, free: 3.848 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1)