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.001093/0.001093, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001006/0.001007, allocations: 88.97 kB / 292.1 MB, free: 6.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.347e-05/3.357e-05, allocations: 4 kB / 350.6 MB, free: 2.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.386/0.4965, allocations: 77.73 MB / 479.8 MB, free: 11.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/0.4968, allocations: 66.59 kB / 479.9 MB, free: 11.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00658/0.5034, allocations: 2.381 MB / 482.3 MB, free: 9.664 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5034, allocations: 0 / 482.3 MB, free: 9.664 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.5034, allocations: 0 / 482.3 MB, free: 9.664 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.0003898/0.5038, allocations: 398.5 kB / 482.7 MB, free: 9.246 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.5039, allocations: 11.97 kB / 482.7 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.094e-05/0.5039, allocations: 38.38 kB / 482.7 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.5041, allocations: 25.61 kB / 482.8 MB, free: 9.168 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.5043, allocations: 202.6 kB / 482.9 MB, free: 8.938 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.5043, allocations: 4 kB / 483 MB, free: 8.934 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.5044, allocations: 11.86 kB / 483 MB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001394/0.5045, allocations: 72.48 kB / 483 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.5045, allocations: 3.938 kB / 483 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.5046, allocations: 0 / 483 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.5046, allocations: 4 kB / 483 MB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.902e-05/0.5046, allocations: 35.61 kB / 483.1 MB, free: 8.836 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005427/0.5052, allocations: 414.8 kB / 483.5 MB, free: 8.398 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.5053, allocations: 59.14 kB / 483.5 MB, free: 8.344 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.758e-05/0.5054, allocations: 24.23 kB / 483.6 MB, free: 8.328 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.5054, allocations: 4 kB / 483.6 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.401e-05/0.5054, allocations: 30.56 kB / 483.6 MB, free: 8.285 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.463e-06/0.5054, allocations: 0 / 483.6 MB, free: 8.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001806/0.5056, allocations: 74.03 kB / 483.7 MB, free: 8.219 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.517e-05/0.5056, allocations: 55.36 kB / 483.7 MB, free: 8.152 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.486e-05/0.5057, allocations: 124.5 kB / 483.8 MB, free: 8.035 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.5057, allocations: 32.77 kB / 483.9 MB, free: 8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.775e-05/0.5058, allocations: 110.9 kB / 484 MB, free: 7.898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.983e-05/0.5058, allocations: 14.92 kB / 484 MB, free: 7.887 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/0.5058, allocations: 0 / 484 MB, free: 7.887 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.315e-05/0.5059, allocations: 319.8 kB / 484.3 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.074e-05/0.5059, allocations: 14.81 kB / 484.3 MB, free: 7.562 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.572e-05/0.5059, allocations: 11.19 kB / 484.3 MB, free: 7.555 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.925e-05/0.506, allocations: 23.72 kB / 484.4 MB, free: 7.539 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.506, allocations: 0 / 484.4 MB, free: 7.539 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001208/0.5061, allocations: 85.62 kB / 484.4 MB, free: 7.461 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.5062, allocations: 4 kB / 484.4 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.5062, allocations: 0 / 484.4 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.5062, allocations: 4 kB / 484.5 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.5064, allocations: 37.56 kB / 484.5 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.5064, allocations: 0 / 484.5 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.329e-05/0.5065, allocations: 15.27 kB / 484.5 MB, free: 7.406 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-06/0.5065, allocations: 0 / 484.5 MB, free: 7.406 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.211e-05/0.5066, allocations: 109 kB / 484.6 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.737e-05/0.5066, allocations: 11.89 kB / 484.6 MB, free: 7.281 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.5066, allocations: 16.02 kB / 484.6 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.5066, allocations: 4 kB / 484.6 MB, free: 7.273 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.5066, allocations: 0 / 484.6 MB, free: 7.273 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.5066, allocations: 0 / 484.6 MB, free: 7.273 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.5068, allocations: 199.8 kB / 484.8 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.5069, allocations: 0 / 484.8 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.507, allocations: 25.55 kB / 484.9 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.507, allocations: 7.984 kB / 484.9 MB, free: 7.012 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.507, allocations: 7.25 kB / 484.9 MB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.507, allocations: 224 / 484.9 MB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.507, allocations: 1.484 kB / 484.9 MB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002113/0.5073, allocations: 190.4 kB / 485.1 MB, free: 6.828 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.725e-05/0.5073, allocations: 85.05 kB / 485.1 MB, free: 6.727 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.5073, allocations: 3.984 kB / 485.2 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.072e-05/0.5074, allocations: 6.438 kB / 485.2 MB, free: 6.719 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.597e-05/0.5075, allocations: 4 kB / 485.2 MB, free: 6.715 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-06/0.5075, allocations: 7.188 kB / 485.2 MB, free: 6.711 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.176e-05/0.5075, allocations: 104.7 kB / 485.3 MB, free: 6.617 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5075, allocations: 0 / 485.3 MB, free: 6.617 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002234/0.5078, allocations: 26.53 kB / 485.3 MB, free: 6.594 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.00034/0.5081, allocations: 0.7231 MB / 486 MB, free: 5.867 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.779e-05/0.5082, allocations: 40.5 kB / 486.1 MB, free: 5.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.5082, allocations: 0 / 486.1 MB, free: 5.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.457e-05/0.5083, allocations: 22.8 kB / 486.1 MB, free: 5.824 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002242/0.5085, allocations: 16.42 kB / 486.1 MB, free: 5.812 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006014/0.5091, allocations: 212.5 kB / 486.3 MB, free: 5.586 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.5093, allocations: 0.7083 MB / 487 MB, free: 4.852 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.917e-05/0.5093, allocations: 5.438 kB / 487 MB, free: 4.848 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.907e-05/0.5094, allocations: 32.55 kB / 487.1 MB, free: 4.832 MB / 346.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5094, allocations: 1.406 kB / 487.1 MB, free: 4.832 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01211/0.5215, allocations: 1.955 MB / 489 MB, free: 3.094 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001226/0.5217, allocations: 136.5 kB / 489.1 MB, free: 2.875 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.618/2.14, allocations: 4.062 kB / 489.1 MB, free: 2.871 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