Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.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.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_InverseModel",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.001551/0.001551, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.979/1.979, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001157/0.001157, allocations: 96.36 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004069/0.0004068, allocations: 8 kB / 327 MB, free: 144 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3706/0.3711, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1276/0.4988, allocations: 76.21 MB / 450.8 MB, free: 4.461 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.4991, allocations: 67.97 kB / 450.9 MB, free: 4.395 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01021/0.5093, allocations: 2.221 MB / 453.1 MB, free: 2.164 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.5094, allocations: 0 / 453.1 MB, free: 2.164 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.5094, allocations: 0 / 453.1 MB, free: 2.164 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006835/0.5101, allocations: 410.8 kB / 453.5 MB, free: 1.715 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.5102, allocations: 12.03 kB / 453.5 MB, free: 1.703 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.002e-05/0.5102, allocations: 42.55 kB / 453.6 MB, free: 1.652 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.52e-05/0.5103, allocations: 11.81 kB / 453.6 MB, free: 1.641 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.5106, allocations: 207.9 kB / 453.8 MB, free: 1.395 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.5107, allocations: 7.938 kB / 453.8 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.602e-05/0.5107, allocations: 11.95 kB / 453.8 MB, free: 1.375 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002582/0.511, allocations: 73.66 kB / 453.9 MB, free: 1.297 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.511, allocations: 0 / 453.9 MB, free: 1.297 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.511, allocations: 8 kB / 453.9 MB, free: 1.289 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.511, allocations: 4 kB / 453.9 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.5112, allocations: 39.97 kB / 453.9 MB, free: 1.246 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008206/0.5121, allocations: 422.1 kB / 454.3 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.5123, allocations: 58.58 kB / 454.4 MB, free: 0.707 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.5123, allocations: 3.938 kB / 454.4 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.5124, allocations: 38.72 kB / 454.4 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 3.787e-06/0.5124, allocations: 0 / 454.4 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004406/0.5129, allocations: 109.9 kB / 454.5 MB, free: 0.543 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.5129, allocations: 51.41 kB / 454.6 MB, free: 492 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.5131, allocations: 133 kB / 454.7 MB, free: 356 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/0.5131, allocations: 33.7 kB / 454.8 MB, free: 316 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.565e-05/0.5132, allocations: 170.7 kB / 454.9 MB, free: 144 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.241e-05/0.5133, allocations: 15.75 kB / 454.9 MB, free: 128 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.908e-06/0.5133, allocations: 4 kB / 454.9 MB, free: 124 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.5135, allocations: 318.8 kB / 455.3 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.789e-05/0.5136, allocations: 16 kB / 455.3 MB, free: 15.79 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.5137, allocations: 31.92 kB / 455.3 MB, free: 15.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.5138, allocations: 27.97 kB / 455.3 MB, free: 15.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.5138, allocations: 0 / 455.3 MB, free: 15.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002817/0.5141, allocations: 81.69 kB / 455.4 MB, free: 15.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.5142, allocations: 4 kB / 455.4 MB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.5142, allocations: 64 / 455.4 MB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.5142, allocations: 4 kB / 455.4 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003748/0.5146, allocations: 39.97 kB / 455.5 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.5146, allocations: 3.984 kB / 455.5 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.368e-05/0.5147, allocations: 11.91 kB / 455.5 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.5147, allocations: 3.953 kB / 455.5 MB, free: 15.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001227/0.5149, allocations: 121.8 kB / 455.6 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.991e-05/0.5149, allocations: 7.906 kB / 455.6 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.944e-05/0.515, allocations: 16.3 kB / 455.6 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.515, allocations: 0 / 455.6 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.515, allocations: 0 / 455.6 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.515, allocations: 0 / 455.6 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002954/0.5153, allocations: 201.5 kB / 455.8 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.5153, allocations: 0 / 455.8 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002548/0.5156, allocations: 23.98 kB / 455.8 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.5156, allocations: 4 kB / 455.8 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.5156, allocations: 0 / 455.8 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.5156, allocations: 0 / 455.8 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.5157, allocations: 0 / 455.8 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004577/0.5161, allocations: 211.3 kB / 456 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.128e-05/0.5162, allocations: 89.11 kB / 456.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.107e-05/0.5162, allocations: 3.984 kB / 456.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.5164, allocations: 11.94 kB / 456.2 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.796e-05/0.5164, allocations: 0 / 456.2 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.5165, allocations: 4 kB / 456.2 MB, free: 14.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000109/0.5166, allocations: 111.8 kB / 456.3 MB, free: 14.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.5166, allocations: 0 / 456.3 MB, free: 14.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003118/0.5169, allocations: 15.91 kB / 456.3 MB, free: 14.68 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * 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 (5): * Single equations (assignments): 5 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008255/0.5177, allocations: 0.7436 MB / 457 MB, free: 13.91 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.518, allocations: 60.09 kB / 457.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.518, allocations: 0 / 457.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.5182, allocations: 27.98 kB / 457.1 MB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.5185, allocations: 18.05 kB / 457.1 MB, free: 13.81 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001808/0.5203, allocations: 0.7424 MB / 457.9 MB, free: 13.01 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.5207, allocations: 0.7043 MB / 458.6 MB, free: 12.28 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.426e-05/0.5208, allocations: 23.44 kB / 458.6 MB, free: 12.26 MB / 346.7 MB Notification: Performance of SimCode: time 3.046e-06/0.5208, allocations: 0 / 458.6 MB, free: 12.26 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.471/2.992, allocations: 1.648 MB / 460.2 MB, free: 10.61 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat