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.007256/0.007256, allocations: 101.5 kB / 15.73 MB, free: 6.047 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.001496/0.001496, allocations: 196.4 kB / 16.67 MB, free: 5.977 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.5/1.5, allocations: 205.1 MB / 222.5 MB, free: 4.398 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.00125/0.00125, allocations: 54.44 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0926/0.09386, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005654/0.09955, allocations: 4.553 MB / 377.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002574/0.1022, allocations: 1.365 MB / 379.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004207/0.1027, allocations: 23.88 kB / 379.1 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004381/0.1031, allocations: 182.2 kB / 379.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003647/0.1035, allocations: 170.2 kB / 379.4 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008143/0.1043, allocations: 367.5 kB / 379.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009622/0.1053, allocations: 0.9897 MB / 380.8 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005795/0.1059, allocations: 426.8 kB / 381.2 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003895/0.1063, allocations: 326.6 kB / 381.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004222/0.1067, allocations: 338 kB / 381.9 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.175e-05/0.1068, allocations: 72 kB / 381.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002058/0.107, allocations: 123.9 kB / 382.1 MB, free: 8.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.1071, allocations: 179.3 kB / 382.2 MB, free: 8.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003232/0.1075, allocations: 425.6 kB / 382.6 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001163/0.1086, allocations: 1.094 MB / 383.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1087, allocations: 4 kB / 383.7 MB, free: 6.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1087, allocations: 0 / 383.7 MB, free: 6.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.1087, 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.001614/0.1103, allocations: 1.142 MB / 384.9 MB, free: 5.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.1104, allocations: 8.031 kB / 384.9 MB, free: 5.457 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.1106, allocations: 102.8 kB / 385 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.1116, allocations: 0.6306 MB / 385.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.071e-05/0.1116, allocations: 58 kB / 385.7 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.1118, allocations: 83.91 kB / 385.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.113, allocations: 0.852 MB / 386.6 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.119e-05/0.1131, allocations: 7.906 kB / 386.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.758e-05/0.1132, allocations: 35.94 kB / 386.7 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.1132, allocations: 28 kB / 386.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008493/0.114, allocations: 467.3 kB / 387.1 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004337/0.1184, allocations: 4.369 MB / 391.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006098/0.119, allocations: 303.5 kB / 391.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002321/0.1193, allocations: 141.3 kB / 391.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002146/0.1195, allocations: 170.6 kB / 392.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.1195, allocations: 38.94 kB / 392.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 3.988e-06/0.1195, allocations: 4 kB / 392.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.003574/0.1231, allocations: 1.731 MB / 393.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.1232, allocations: 59.97 kB / 393.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006577/0.1238, allocations: 0.5391 MB / 394.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.1239, allocations: 33.7 kB / 394.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003409/0.1242, allocations: 482.4 kB / 395 MB, free: 10.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/0.1244, allocations: 212.9 kB / 395.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.1246, allocations: 138.6 kB / 395.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.1248, allocations: 386.6 kB / 395.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002736/0.125, allocations: 157.9 kB / 395.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004467/0.1255, allocations: 467.2 kB / 396.3 MB, free: 9.348 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007883/0.1263, allocations: 0.6634 MB / 397 MB, free: 8.551 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.1263, allocations: 4 kB / 397 MB, free: 8.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001072/0.1274, allocations: 0.738 MB / 397.7 MB, free: 7.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.1274, allocations: 8 kB / 397.7 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.1275, allocations: 12 kB / 397.7 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001776/0.1276, allocations: 48.78 kB / 397.8 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005352/0.1282, allocations: 179.7 kB / 398 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001544/0.1297, allocations: 1.705 MB / 399.7 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/0.13, allocations: 28.06 kB / 399.7 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.832e-05/0.1301, allocations: 40 kB / 399.7 MB, free: 5.645 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.0003131/0.1304, allocations: 221.6 kB / 400 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.1305, allocations: 75.09 kB / 400 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001261/0.1307, allocations: 79.06 kB / 400.1 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.1307, allocations: 8 kB / 400.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.1307, allocations: 0 / 400.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.1307, allocations: 0 / 400.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001792/0.1325, allocations: 1.416 MB / 401.5 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.1325, allocations: 4 kB / 401.5 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004449/0.133, allocations: 111.9 kB / 401.6 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.032e-05/0.133, allocations: 20.84 kB / 401.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.116e-05/0.1331, allocations: 12 kB / 401.7 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009155/0.134, allocations: 1.379 MB / 403.1 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.134, allocations: 8.156 kB / 403.1 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009999/0.135, allocations: 0.7696 MB / 403.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.1352, allocations: 140.2 kB / 404 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.468e-05/0.1352, allocations: 23.98 kB / 404 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.1354, allocations: 12 kB / 404 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.107e-05/0.1355, allocations: 47.92 kB / 404 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.577e-05/0.1355, allocations: 16 kB / 404.1 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003937/0.1359, allocations: 363.1 kB / 404.4 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.136, allocations: 0 / 404.4 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006308/0.1366, allocations: 136 kB / 404.5 MB, free: 0.5 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.0001472/0.1367, allocations: 131.1 kB / 404.7 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009436/0.1377, allocations: 0.5802 MB / 405.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1377, allocations: 4 kB / 405.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003696/0.1381, allocations: 315.7 kB / 405.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006047/0.1387, allocations: 107.2 kB / 405.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.1412, allocations: 1.847 MB / 407.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004852/0.1417, allocations: 0.9691 MB / 408.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002476/0.1419, allocations: 85.92 kB / 408.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.142, allocations: 59.42 kB / 408.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.142, allocations: 0 / 408.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Templates: time 0.01071/0.1528, allocations: 5.445 MB / 414.1 MB, free: 6.832 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)