Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 93.3 kB / 16.3 MB, free: 5.996 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.002149/0.002149, allocations: 184.3 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003019/0.0003019, allocations: 5.938 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1016, allocations: 50.43 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.00429/0.1059, allocations: 3.794 MB / 355 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002544/0.1085, allocations: 1.291 MB / 356.3 MB, free: 6.531 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006875/0.1092, allocations: 19.88 kB / 356.3 MB, free: 6.512 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.1095, allocations: 87.19 kB / 356.4 MB, free: 6.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007952/0.1103, allocations: 207.3 kB / 356.6 MB, free: 6.223 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000837/0.1112, allocations: 243.6 kB / 356.9 MB, free: 5.984 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001176/0.1123, allocations: 0.6398 MB / 357.5 MB, free: 5.344 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004566/0.1128, allocations: 292.3 kB / 357.8 MB, free: 5.039 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/0.1132, allocations: 242.7 kB / 358 MB, free: 4.801 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.1134, allocations: 270.3 kB / 358.3 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.41e-05/0.1135, allocations: 28 kB / 358.3 MB, free: 4.508 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000205/0.1137, allocations: 67.86 kB / 358.4 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.704e-05/0.1138, allocations: 115.4 kB / 358.5 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.114, allocations: 173.2 kB / 358.7 MB, free: 4.152 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006892/0.1147, allocations: 0.7558 MB / 359.4 MB, free: 3.395 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1147, allocations: 4 kB / 359.4 MB, free: 3.391 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1147, allocations: 0 / 359.4 MB, free: 3.391 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.1147, allocations: 0 / 359.4 MB, free: 3.391 MB / 286.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.001401/0.1161, allocations: 0.9821 MB / 360.4 MB, free: 2.359 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.1162, allocations: 12.03 kB / 360.4 MB, free: 2.348 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001305/0.1163, allocations: 130.9 kB / 360.5 MB, free: 2.211 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.1164, allocations: 106.7 kB / 360.6 MB, free: 2.105 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007879/0.1172, allocations: 0.5609 MB / 361.2 MB, free: 1.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.305e-05/0.1173, allocations: 61.98 kB / 361.3 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.1174, allocations: 83.91 kB / 361.3 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.1186, allocations: 0.8364 MB / 362.2 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.978e-05/0.1186, allocations: 11.94 kB / 362.2 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.269e-05/0.1187, allocations: 36 kB / 362.2 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-05/0.1187, allocations: 23.95 kB / 362.3 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008311/0.1195, allocations: 471.3 kB / 362.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003504/0.1231, allocations: 4.412 MB / 367.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005431/0.1236, allocations: 291.6 kB / 367.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002023/0.1238, allocations: 170.6 kB / 367.6 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.1239, allocations: 38.92 kB / 367.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.893e-06/0.1239, allocations: 0 / 367.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003111/0.127, allocations: 1.742 MB / 369.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.127, allocations: 55.97 kB / 369.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005164/0.1276, allocations: 0.5314 MB / 369.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.1276, allocations: 37.7 kB / 370 MB, free: 8.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002693/0.1279, allocations: 478.4 kB / 370.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/0.128, allocations: 217 kB / 370.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.482e-05/0.1281, allocations: 16 kB / 370.7 MB, free: 7.543 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1282, allocations: 382.8 kB / 371.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002582/0.1285, allocations: 157.9 kB / 371.2 MB, free: 7.008 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004255/0.1289, allocations: 455.2 kB / 371.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003444/0.1293, allocations: 236.7 kB / 371.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.1293, allocations: 4 kB / 371.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001012/0.1303, allocations: 0.7345 MB / 372.6 MB, free: 5.449 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.1303, allocations: 12.14 kB / 372.6 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.1304, allocations: 12 kB / 372.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001604/0.1305, allocations: 52.84 kB / 372.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005437/0.1311, allocations: 187.7 kB / 372.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001208/0.1323, allocations: 1.518 MB / 374.4 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.1326, allocations: 31.98 kB / 374.4 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.027e-05/0.1327, allocations: 36 kB / 374.5 MB, free: 3.465 MB / 302.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 (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: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002866/0.133, allocations: 233.5 kB / 374.7 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.232e-05/0.133, allocations: 71.22 kB / 374.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.1332, allocations: 79.08 kB / 374.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.1332, allocations: 4 kB / 374.8 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1332, allocations: 3.938 kB / 374.8 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1332, allocations: 3.984 kB / 374.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/0.135, allocations: 1.425 MB / 376.3 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.135, allocations: 4 kB / 376.3 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004605/0.1355, allocations: 119.8 kB / 376.4 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.116e-05/0.1356, allocations: 20.86 kB / 376.4 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.893e-05/0.1356, allocations: 16.34 kB / 376.4 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007708/0.1364, allocations: 1.276 MB / 377.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1364, allocations: 256 / 377.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.1374, allocations: 0.9155 MB / 378.6 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.1375, allocations: 132.3 kB / 378.8 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.102e-05/0.1376, allocations: 16 kB / 378.8 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.1378, allocations: 16 kB / 378.8 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.135e-05/0.1379, allocations: 43.89 kB / 378.8 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-05/0.1379, allocations: 16 kB / 378.8 MB, free: 14.69 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003849/0.1383, allocations: 355.1 kB / 379.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1383, allocations: 0 / 379.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006/0.1389, allocations: 140 kB / 379.3 MB, free: 14.21 MB / 318.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 (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001491/0.1404, allocations: 2.232 MB / 381.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008697/0.1413, allocations: 0.5836 MB / 382.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1413, allocations: 0 / 382.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003638/0.1417, allocations: 312.5 kB / 382.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.1422, allocations: 81.73 kB / 382.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00771/0.1499, allocations: 11.03 MB / 393.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.1504, allocations: 0.989 MB / 394.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002822/0.1507, allocations: 81.92 kB / 394.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003372/0.1511, allocations: 327.3 kB / 394.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1511, allocations: 4 kB / 395 MB, free: 14.14 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.1753, allocations: 11.54 MB / 406.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/0.1755, allocations: 221.4 kB / 406.7 MB, free: 2.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.011/2.186, allocations: 0 / 406.7 MB, free: 2.57 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat