Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_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.009868/0.009868, allocations: 99.08 kB / 15.73 MB, free: 6.004 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.001459/0.001459, allocations: 191.4 kB / 16.67 MB, free: 5.922 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.645/1.645, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.001233/0.001233, allocations: 44.84 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1078, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005954/0.1138, allocations: 4.561 MB / 377.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002759/0.1166, allocations: 1.373 MB / 379.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003858/0.1171, allocations: 27.81 kB / 379.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000403/0.1175, allocations: 178.2 kB / 379.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003501/0.1179, allocations: 166.3 kB / 379.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007541/0.1186, allocations: 351.5 kB / 379.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001278/0.1199, allocations: 0.9897 MB / 380.8 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006906/0.1206, allocations: 426.9 kB / 381.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005146/0.1211, allocations: 326.5 kB / 381.5 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004791/0.1216, allocations: 346 kB / 381.9 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.1218, allocations: 72 kB / 381.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002905/0.1221, allocations: 116 kB / 382 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.1223, allocations: 167.3 kB / 382.2 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004616/0.1227, allocations: 433.5 kB / 382.6 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001541/0.1243, allocations: 1.104 MB / 383.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.1243, allocations: 0 / 383.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1243, allocations: 4 kB / 383.7 MB, free: 6.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.286e-05/0.1243, allocations: 0 / 383.7 MB, free: 6.66 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.001807/0.1261, allocations: 1.172 MB / 384.9 MB, free: 5.434 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.1262, allocations: 8.031 kB / 384.9 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.1264, allocations: 111.3 kB / 385 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009256/0.1273, allocations: 0.6389 MB / 385.7 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.167e-05/0.1273, allocations: 62 kB / 385.7 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.1275, allocations: 79.95 kB / 385.8 MB, free: 4.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.1291, allocations: 0.8521 MB / 386.7 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.076e-05/0.1291, allocations: 7.938 kB / 386.7 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.1292, allocations: 32 kB / 386.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.018e-05/0.1293, allocations: 24 kB / 386.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009138/0.1302, allocations: 471.3 kB / 387.2 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003673/0.1339, allocations: 4.378 MB / 391.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005744/0.1345, allocations: 303.6 kB / 391.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002285/0.1347, allocations: 141.3 kB / 392 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002084/0.1349, allocations: 170.6 kB / 392.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.135, allocations: 34.94 kB / 392.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 3.045e-06/0.135, allocations: 0 / 392.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.003257/0.1382, allocations: 1.749 MB / 393.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.1383, allocations: 59.91 kB / 394 MB, free: 11.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005624/0.1389, allocations: 0.5393 MB / 394.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.1389, allocations: 33.7 kB / 394.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002934/0.1392, allocations: 491.7 kB / 395.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.1394, allocations: 226.1 kB / 395.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/0.1395, allocations: 138.6 kB / 395.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1397, allocations: 382.8 kB / 395.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00028/0.14, allocations: 157.9 kB / 395.9 MB, free: 9.863 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004789/0.1405, allocations: 463.2 kB / 396.4 MB, free: 9.277 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007837/0.1413, allocations: 0.6712 MB / 397.1 MB, free: 8.473 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.1413, allocations: 7.938 kB / 397.1 MB, free: 8.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001059/0.1424, allocations: 0.7385 MB / 397.8 MB, free: 7.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.1424, allocations: 11.94 kB / 397.8 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.1424, allocations: 12.08 kB / 397.8 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001674/0.1426, allocations: 44.84 kB / 397.9 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00056/0.1431, allocations: 183.7 kB / 398.1 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/0.1445, allocations: 1.693 MB / 399.8 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.1449, allocations: 28 kB / 399.8 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.046e-05/0.1449, allocations: 40.25 kB / 399.8 MB, free: 5.57 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.0003054/0.1452, allocations: 229.5 kB / 400 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.122e-05/0.1453, allocations: 79.47 kB / 400.1 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001264/0.1455, allocations: 75.06 kB / 400.2 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.1455, allocations: 15.94 kB / 400.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.1455, allocations: 0 / 400.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.1455, allocations: 0 / 400.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.1473, allocations: 1.412 MB / 401.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.1474, allocations: 4 kB / 401.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004646/0.1478, allocations: 119.8 kB / 401.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.465e-05/0.1479, allocations: 24.84 kB / 401.8 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.097e-05/0.148, allocations: 12 kB / 401.8 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009419/0.1489, allocations: 1.375 MB / 403.2 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.1489, allocations: 4.156 kB / 403.2 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.15, allocations: 0.7855 MB / 403.9 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.1501, allocations: 136.6 kB / 404.1 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.26e-05/0.1502, allocations: 16 kB / 404.1 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.1504, allocations: 19.98 kB / 404.1 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.701e-05/0.1505, allocations: 43.89 kB / 404.2 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/0.1505, allocations: 12 kB / 404.2 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003896/0.1509, allocations: 367.1 kB / 404.5 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1509, allocations: 0 / 404.5 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000657/0.1516, allocations: 136 kB / 404.7 MB, free: 412 kB / 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.0001464/0.1517, allocations: 123.2 kB / 404.8 MB, free: 280 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.1528, allocations: 0.5844 MB / 405.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1528, allocations: 7.938 kB / 405.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003938/0.1532, allocations: 307.6 kB / 405.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006301/0.1538, allocations: 107.1 kB / 405.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002751/0.1566, allocations: 1.875 MB / 407.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005091/0.1571, allocations: 0.9691 MB / 408.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002452/0.1574, allocations: 81.92 kB / 408.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.1575, allocations: 59.42 kB / 408.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1575, allocations: 0 / 408.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of Templates: time 0.0115/0.169, allocations: 5.441 MB / 414.2 MB, free: 6.719 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1)