Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002205/0.002209, allocations: 186.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 94.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003872/0.0003874, allocations: 12 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1034, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.008723/0.1122, allocations: 3.789 MB / 378.4 MB, free: 11.54 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004617/0.1169, allocations: 1.331 MB / 379.8 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.118, allocations: 23.81 kB / 379.8 MB, free: 10.18 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003265/0.1184, allocations: 75.27 kB / 379.8 MB, free: 10.1 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001203/0.1196, allocations: 211.2 kB / 380.1 MB, free: 9.895 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001468/0.1211, allocations: 243.7 kB / 380.3 MB, free: 9.656 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002387/0.1235, allocations: 0.6475 MB / 380.9 MB, free: 9.008 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009466/0.1246, allocations: 288.3 kB / 381.2 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007487/0.1253, allocations: 246.8 kB / 381.5 MB, free: 8.469 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005949/0.1259, allocations: 274.2 kB / 381.7 MB, free: 8.199 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001317/0.1261, allocations: 28 kB / 381.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000354/0.1265, allocations: 59.91 kB / 381.8 MB, free: 8.113 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.1267, allocations: 119.4 kB / 381.9 MB, free: 7.996 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003445/0.1271, allocations: 177.1 kB / 382.1 MB, free: 7.816 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00168/0.1287, allocations: 0.7521 MB / 382.9 MB, free: 7.062 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1288, allocations: 0 / 382.9 MB, free: 7.062 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.667e-06/0.1288, allocations: 0 / 382.9 MB, free: 7.062 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.689e-05/0.1289, allocations: 0 / 382.9 MB, free: 7.062 MB / 282.7 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.003134/0.132, allocations: 0.9821 MB / 383.8 MB, free: 6.031 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.708e-05/0.1321, allocations: 12.03 kB / 383.9 MB, free: 6.02 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003376/0.1325, allocations: 127 kB / 384 MB, free: 5.887 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003095/0.1328, allocations: 106.7 kB / 384.1 MB, free: 5.781 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001862/0.1347, allocations: 0.5686 MB / 384.6 MB, free: 5.168 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.1348, allocations: 62 kB / 384.7 MB, free: 5.105 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002409/0.1351, allocations: 80 kB / 384.8 MB, free: 5.027 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003022/0.1381, allocations: 0.8364 MB / 385.6 MB, free: 4.086 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.899e-05/0.1383, allocations: 11.84 kB / 385.6 MB, free: 4.074 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001346/0.1384, allocations: 36 kB / 385.7 MB, free: 4.039 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.102e-05/0.1385, allocations: 20 kB / 385.7 MB, free: 4.02 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002246/0.1407, allocations: 467.3 kB / 386.1 MB, free: 3.562 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.301/0.4418, allocations: 4.408 MB / 390.6 MB, free: 17.24 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009869/0.4428, allocations: 302.4 kB / 390.9 MB, free: 17.21 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002221/0.4431, allocations: 174.1 kB / 391 MB, free: 17.03 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.4431, allocations: 36.03 kB / 391.1 MB, free: 16.99 MB / 282.7 MB Notification: Performance of pre-optimization done (n=46): time 3.487e-06/0.4431, allocations: 1.188 kB / 391.1 MB, free: 16.99 MB / 282.7 MB Notification: Performance of matching and sorting (n=57): time 0.00507/0.4482, allocations: 1.741 MB / 392.8 MB, free: 16.39 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.4483, allocations: 59.06 kB / 392.9 MB, free: 16.32 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008709/0.4492, allocations: 0.5265 MB / 393.4 MB, free: 16.15 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.4492, allocations: 37.27 kB / 393.4 MB, free: 16.11 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003401/0.4496, allocations: 0.4964 MB / 393.9 MB, free: 15.69 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002014/0.4498, allocations: 215.2 kB / 394.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.943e-05/0.4499, allocations: 14.81 kB / 394.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.997e-05/0.45, allocations: 344.8 kB / 394.5 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005178/0.4505, allocations: 157 kB / 394.6 MB, free: 15.13 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006353/0.4512, allocations: 466.7 kB / 395.1 MB, free: 14.71 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006338/0.4518, allocations: 235.3 kB / 395.3 MB, free: 14.61 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.4518, allocations: 2.656 kB / 395.3 MB, free: 14.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001753/0.4536, allocations: 0.6948 MB / 396 MB, free: 14.32 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.4537, allocations: 8.906 kB / 396 MB, free: 14.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.359e-05/0.4537, allocations: 9.375 kB / 396 MB, free: 14.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000253/0.454, allocations: 53.39 kB / 396.1 MB, free: 14.3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.4551, allocations: 180.2 kB / 396.3 MB, free: 14.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001475/0.4566, allocations: 1.52 MB / 397.8 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006048/0.4572, allocations: 25.98 kB / 397.8 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.209e-05/0.4573, allocations: 42.25 kB / 397.8 MB, free: 12.79 MB / 282.7 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.000442/0.4577, allocations: 229.2 kB / 398.1 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.4579, allocations: 73.81 kB / 398.1 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001524/0.458, allocations: 76.81 kB / 398.2 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.4581, allocations: 5.688 kB / 398.2 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/0.4581, allocations: 3.781 kB / 398.2 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.4581, allocations: 3.312 kB / 398.2 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003073/0.4612, allocations: 1.428 MB / 399.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.619e-06/0.4612, allocations: 6.25 kB / 399.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009796/0.4622, allocations: 122.3 kB / 399.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001307/0.4624, allocations: 23.75 kB / 399.8 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.796e-05/0.4624, allocations: 15.31 kB / 399.8 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009106/0.4634, allocations: 1.278 MB / 401.1 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.4634, allocations: 4.594 kB / 401.1 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.4652, allocations: 0.907 MB / 402 MB, free: 9.629 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002082/0.4654, allocations: 136.6 kB / 402.1 MB, free: 9.496 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.4656, allocations: 11.81 kB / 402.2 MB, free: 9.492 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.4659, allocations: 15.06 kB / 402.2 MB, free: 9.484 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.4661, allocations: 51.78 kB / 402.2 MB, free: 9.465 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.341e-05/0.4661, allocations: 17.36 kB / 402.2 MB, free: 9.461 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006511/0.4668, allocations: 355.2 kB / 402.6 MB, free: 9.301 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4668, allocations: 0 / 402.6 MB, free: 9.301 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001159/0.468, allocations: 138.3 kB / 402.7 MB, free: 9.281 MB / 282.7 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.002066/0.47, allocations: 2.226 MB / 404.9 MB, free: 7.328 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.4717, allocations: 0.5805 MB / 405.5 MB, free: 7.055 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.4717, allocations: 3.938 kB / 405.5 MB, free: 7.051 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000637/0.4724, allocations: 314.4 kB / 405.8 MB, free: 6.871 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007717/0.4732, allocations: 92.7 kB / 405.9 MB, free: 6.82 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01264/0.4858, allocations: 11.05 MB / 417 MB, free: 13.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008412/0.4867, allocations: 0.9848 MB / 418 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007573/0.4875, allocations: 331.3 kB / 418.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of SimCode: time 1.333e-06/0.4875, allocations: 0 / 418.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.84/3.327, allocations: 15.27 MB / 433.5 MB, free: 1.137 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat