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.006878/0.006878, allocations: 100.3 kB / 15.73 MB, free: 6.449 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.001317/0.001317, allocations: 198.2 kB / 16.68 MB, free: 6.355 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.467/1.467, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.001261/0.001261, allocations: 50.08 kB / 326.5 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1132, allocations: 46.63 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005962/0.1192, allocations: 4.541 MB / 377.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002565/0.1218, allocations: 1.373 MB / 379.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003044/0.1222, allocations: 27.81 kB / 379.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003834/0.1226, allocations: 174.2 kB / 379.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003435/0.1229, allocations: 170.3 kB / 379.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007075/0.1236, allocations: 367.5 kB / 379.8 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009/0.1245, allocations: 0.9898 MB / 380.8 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005398/0.1251, allocations: 422.9 kB / 381.2 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003657/0.1255, allocations: 326.6 kB / 381.5 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003085/0.1258, allocations: 346 kB / 381.9 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.852e-05/0.1259, allocations: 72 kB / 381.9 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.1261, allocations: 116 kB / 382 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.1262, allocations: 183.2 kB / 382.2 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003196/0.1265, allocations: 421.6 kB / 382.6 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009732/0.1275, allocations: 1.097 MB / 383.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1275, allocations: 3.938 kB / 383.7 MB, free: 6.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1276, allocations: 0 / 383.7 MB, free: 6.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.1276, allocations: 4 kB / 383.7 MB, free: 6.676 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.001552/0.1291, allocations: 1.142 MB / 384.9 MB, free: 5.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.1292, allocations: 8.031 kB / 384.9 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.1293, allocations: 102.8 kB / 385 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008994/0.1303, allocations: 0.6267 MB / 385.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.583e-05/0.1303, allocations: 62 kB / 385.7 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.1304, allocations: 79.91 kB / 385.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.1318, allocations: 0.8521 MB / 386.6 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.45e-05/0.1318, allocations: 11.84 kB / 386.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.886e-05/0.1319, allocations: 32 kB / 386.7 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.14e-05/0.1319, allocations: 27.98 kB / 386.7 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000859/0.1328, allocations: 471.3 kB / 387.1 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003694/0.1365, allocations: 4.369 MB / 391.5 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005799/0.1371, allocations: 303.5 kB / 391.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002383/0.1373, allocations: 141.3 kB / 391.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002126/0.1376, allocations: 170.6 kB / 392.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.1376, allocations: 34.94 kB / 392.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 3.557e-06/0.1376, allocations: 4 kB / 392.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.003402/0.141, allocations: 1.735 MB / 393.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.1411, allocations: 59.97 kB / 393.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005927/0.1417, allocations: 0.543 MB / 394.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.971e-05/0.1417, allocations: 33.7 kB / 394.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/0.142, allocations: 478.4 kB / 395 MB, free: 10.85 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.1422, allocations: 212.9 kB / 395.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.1423, allocations: 138.6 kB / 395.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.1425, allocations: 382.8 kB / 395.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002827/0.1428, allocations: 153.9 kB / 395.9 MB, free: 9.961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005164/0.1434, allocations: 463.2 kB / 396.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008071/0.1442, allocations: 0.6751 MB / 397 MB, free: 8.566 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1442, allocations: 3.938 kB / 397 MB, free: 8.562 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001234/0.1454, allocations: 0.7419 MB / 397.7 MB, free: 7.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/0.1455, allocations: 8 kB / 397.7 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.1455, allocations: 8 kB / 397.7 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002485/0.1458, allocations: 56.72 kB / 397.8 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006735/0.1464, allocations: 175.7 kB / 398 MB, free: 7.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001864/0.1483, allocations: 1.689 MB / 399.7 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003551/0.1487, allocations: 36 kB / 399.7 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.376e-05/0.1487, allocations: 32 kB / 399.7 MB, free: 5.672 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.0003962/0.1491, allocations: 237.5 kB / 400 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.1493, allocations: 75.09 kB / 400 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001398/0.1494, allocations: 71.08 kB / 400.1 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1494, allocations: 4 kB / 400.1 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.1494, allocations: 4.188 kB / 400.1 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.1495, allocations: 12.02 kB / 400.1 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002414/0.1519, allocations: 1.408 MB / 401.5 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.1519, allocations: 4 kB / 401.5 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004853/0.1524, allocations: 111.8 kB / 401.6 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.812e-05/0.1525, allocations: 28.84 kB / 401.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.72e-05/0.1525, allocations: 12 kB / 401.7 MB, free: 3.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.1536, allocations: 1.375 MB / 403.1 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.1536, allocations: 8.062 kB / 403.1 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.1548, allocations: 0.7695 MB / 403.8 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000198/0.155, allocations: 136.2 kB / 404 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.637e-05/0.1551, allocations: 19.98 kB / 404 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.1553, allocations: 16 kB / 404 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.1555, allocations: 43.89 kB / 404 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/0.1555, allocations: 16 kB / 404.1 MB, free: 1 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004965/0.156, allocations: 367.1 kB / 404.4 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.156, allocations: 0 / 404.4 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007582/0.1568, allocations: 136 kB / 404.5 MB, free: 0.5156 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.0001976/0.157, allocations: 119.2 kB / 404.7 MB, free: 400 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001237/0.1582, allocations: 0.5917 MB / 405.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.1582, allocations: 0 / 405.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000478/0.1587, allocations: 311.8 kB / 405.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000741/0.1595, allocations: 111.2 kB / 405.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003196/0.1627, allocations: 1.846 MB / 407.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007267/0.1634, allocations: 0.9691 MB / 408.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003186/0.1638, allocations: 81.94 kB / 408.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.1639, allocations: 59.42 kB / 408.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1639, allocations: 0 / 408.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of Templates: time 0.01331/0.1772, allocations: 5.437 MB / 414.1 MB, free: 6.863 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)