Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001242/0.001242, allocations: 195.8 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008204/0.0008205, allocations: 97.55 kB / 286.7 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.314e-05/2.341e-05, allocations: 4 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.09722, allocations: 51.47 MB / 395.2 MB, free: 4.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3173/0.4146, allocations: 77.07 MB / 472.3 MB, free: 14.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/0.4149, allocations: 65.81 kB / 472.4 MB, free: 14.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006233/0.4211, allocations: 2.364 MB / 474.7 MB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4211, allocations: 0 / 474.7 MB, free: 13.01 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.198e-06/0.4212, allocations: 4 kB / 474.8 MB, free: 13.01 MB / 346.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.0003219/0.4215, allocations: 387.1 kB / 475.1 MB, free: 12.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.4215, allocations: 12.03 kB / 475.1 MB, free: 12.6 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/0.4217, allocations: 27.7 kB / 475.2 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001808/0.4219, allocations: 203.1 kB / 475.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.4219, allocations: 4.859 kB / 475.4 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.297e-05/0.4219, allocations: 7.75 kB / 475.4 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.685e-05/0.422, allocations: 27.7 kB / 475.4 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.809e-05/0.4221, allocations: 61.86 kB / 475.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.4221, allocations: 0 / 475.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.4221, allocations: 0 / 475.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.4221, allocations: 8 kB / 475.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004287/0.4226, allocations: 384 kB / 475.9 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.919e-05/0.4227, allocations: 60.03 kB / 475.9 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.415e-05/0.4227, allocations: 25.14 kB / 475.9 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.4227, allocations: 0 / 475.9 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.21e-05/0.4228, allocations: 30.56 kB / 476 MB, free: 11.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 8.31e-07/0.4228, allocations: 0 / 476 MB, free: 11.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001557/0.4229, allocations: 67.56 kB / 476 MB, free: 11.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.376e-05/0.4229, allocations: 51.41 kB / 476.1 MB, free: 11.67 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.482e-05/0.423, allocations: 125.9 kB / 476.2 MB, free: 11.56 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.423, allocations: 29.7 kB / 476.2 MB, free: 11.53 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.436e-05/0.4231, allocations: 113.2 kB / 476.3 MB, free: 11.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.806e-05/0.4231, allocations: 13.28 kB / 476.4 MB, free: 11.42 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.4231, allocations: 0 / 476.4 MB, free: 11.42 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.362e-05/0.4232, allocations: 325.8 kB / 476.7 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.617e-05/0.4232, allocations: 15.62 kB / 476.7 MB, free: 11.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.334e-05/0.4232, allocations: 16.91 kB / 476.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.222e-05/0.4233, allocations: 13.83 kB / 476.7 MB, free: 11.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.4233, allocations: 0 / 476.7 MB, free: 11.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.618e-05/0.4234, allocations: 84.62 kB / 476.8 MB, free: 11 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.4234, allocations: 4 kB / 476.8 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.4234, allocations: 0 / 476.8 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.4234, allocations: 0.8438 kB / 476.8 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002306/0.4237, allocations: 43.45 kB / 476.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.4237, allocations: 1.312 kB / 476.9 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.777e-05/0.4237, allocations: 0 / 476.9 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-06/0.4237, allocations: 8.578 kB / 476.9 MB, free: 10.96 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 () * 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 4.087e-05/0.4238, allocations: 112.9 kB / 477 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.124e-05/0.4239, allocations: 66.44 kB / 477 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.415e-05/0.4239, allocations: 7.906 kB / 477 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.805e-05/0.4239, allocations: 16.33 kB / 477.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.424, allocations: 0.9375 kB / 477.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.424, allocations: 0 / 477.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.424, allocations: 0 / 477.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001268/0.4241, allocations: 173.6 kB / 477.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.4241, allocations: 0 / 477.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.4242, allocations: 25.39 kB / 477.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.4243, allocations: 4 kB / 477.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.4243, allocations: 1.406 kB / 477.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.4243, allocations: 0 / 477.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4243, allocations: 224 / 477.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001431/0.4244, allocations: 191.3 kB / 477.4 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.223e-05/0.4245, allocations: 87.77 kB / 477.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.4245, allocations: 5.531 kB / 477.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.815e-05/0.4246, allocations: 7.312 kB / 477.5 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.74e-05/0.4246, allocations: 5.828 kB / 477.5 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.259e-06/0.4246, allocations: 1.266 kB / 477.6 MB, free: 10.28 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.059e-05/0.4247, allocations: 105.7 kB / 477.7 MB, free: 10.19 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4247, allocations: 0 / 477.7 MB, free: 10.19 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002181/0.4249, allocations: 19.91 kB / 477.7 MB, free: 10.17 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 () * 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.0002687/0.4252, allocations: 0.7277 MB / 478.4 MB, free: 9.445 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.37e-05/0.4253, allocations: 30.69 kB / 478.4 MB, free: 9.426 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.4253, allocations: 0 / 478.4 MB, free: 9.426 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.911e-05/0.4253, allocations: 20 kB / 478.5 MB, free: 9.414 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002239/0.4255, allocations: 17.94 kB / 478.5 MB, free: 9.406 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000531/0.4261, allocations: 212.7 kB / 478.7 MB, free: 9.203 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.4262, allocations: 0.7068 MB / 479.4 MB, free: 8.484 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.144e-05/0.4263, allocations: 6.719 kB / 479.4 MB, free: 8.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.61e-05/0.4263, allocations: 26 kB / 479.4 MB, free: 8.473 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4263, allocations: 4 kB / 479.4 MB, free: 8.469 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01913/0.4454, allocations: 1.619 MB / 481 MB, free: 7.555 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001303/0.4456, allocations: 125.5 kB / 481.2 MB, free: 7.367 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.504/1.949, allocations: 3.75 kB / 481.2 MB, free: 7.367 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat