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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001339/0.001339, allocations: 95.64 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001716/0.001716, allocations: 207.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002383/0.0002383, allocations: 4 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1223, allocations: 51.48 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001828/0.1241, allocations: 1.373 MB / 359.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008845/0.125, allocations: 0.5069 MB / 360.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.77e-05/0.1251, allocations: 0 / 360.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.05e-05/0.1252, allocations: 7.922 kB / 360.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001749/0.1254, allocations: 19.97 kB / 360.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001892/0.1256, allocations: 43.83 kB / 360.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001865/0.1258, allocations: 63.84 kB / 360.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.126, allocations: 37.08 kB / 360.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.1261, allocations: 35.84 kB / 360.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.894e-05/0.1262, allocations: 31.84 kB / 360.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.711e-05/0.1262, allocations: 7.938 kB / 360.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.478e-05/0.1262, allocations: 4 kB / 360.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.442e-05/0.1263, allocations: 15.97 kB / 360.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.112e-05/0.1263, allocations: 37.64 kB / 360.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.1265, allocations: 52.12 kB / 360.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.1265, allocations: 0 / 360.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1265, allocations: 4 kB / 360.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.1265, allocations: 0 / 360.4 MB, free: 11.52 MB / 302.1 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.0006259/0.1271, allocations: 398.9 kB / 360.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.1272, allocations: 11.97 kB / 360.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.237e-05/0.1272, allocations: 38.56 kB / 360.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001529/0.1274, allocations: 27.8 kB / 360.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.1276, allocations: 200.8 kB / 361.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.1276, allocations: 11.89 kB / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.1277, allocations: 8 kB / 361.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/0.1279, allocations: 77.66 kB / 361.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.1279, allocations: 0 / 361.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.1279, allocations: 4 kB / 361.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.1279, allocations: 4 kB / 361.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001223/0.1281, allocations: 43.97 kB / 361.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005282/0.1286, allocations: 404 kB / 361.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001372/0.1287, allocations: 66.62 kB / 361.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.1288, allocations: 4 kB / 361.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.1288, allocations: 34.5 kB / 361.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.082e-06/0.1288, allocations: 0 / 361.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.000264/0.1291, allocations: 97.7 kB / 361.8 MB, free: 9.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.1291, allocations: 59.36 kB / 361.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001633/0.1293, allocations: 152 kB / 362 MB, free: 9.699 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.1293, allocations: 25.7 kB / 362 MB, free: 9.668 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.935e-05/0.1294, allocations: 112.2 kB / 362.2 MB, free: 9.555 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.1294, allocations: 15.81 kB / 362.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-06/0.1294, allocations: 3.938 kB / 362.2 MB, free: 9.535 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1295, allocations: 318.8 kB / 362.5 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.336e-05/0.1296, allocations: 31.97 kB / 362.5 MB, free: 9.184 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.501e-05/0.1297, allocations: 31.91 kB / 362.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.282e-05/0.1297, allocations: 20 kB / 362.6 MB, free: 9.133 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1297, allocations: 0 / 362.6 MB, free: 9.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001786/0.1299, allocations: 85.58 kB / 362.7 MB, free: 9.043 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.13, allocations: 8 kB / 362.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.13, allocations: 4 kB / 362.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.13, allocations: 0 / 362.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000214/0.1302, allocations: 39.97 kB / 362.7 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.738e-06/0.1302, allocations: 0 / 362.7 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.684e-05/0.1303, allocations: 15.8 kB / 362.7 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.1303, allocations: 7.938 kB / 362.7 MB, free: 8.969 MB / 302.1 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 8.966e-05/0.1304, allocations: 120.2 kB / 362.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.031e-05/0.1304, allocations: 11.89 kB / 362.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.37e-05/0.1305, allocations: 12.31 kB / 362.9 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.1305, allocations: 4 kB / 362.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1305, allocations: 0 / 362.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.1305, allocations: 4.234 kB / 362.9 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002131/0.1307, allocations: 197.6 kB / 363.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1307, allocations: 4 kB / 363.1 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001429/0.1309, allocations: 27.97 kB / 363.1 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1309, allocations: 0 / 363.1 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.1309, allocations: 4 kB / 363.1 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1309, allocations: 4 kB / 363.1 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1309, allocations: 0 / 363.1 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003013/0.1312, allocations: 215.3 kB / 363.3 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.125e-05/0.1313, allocations: 85.05 kB / 363.4 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.928e-05/0.1313, allocations: 0 / 363.4 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.341e-05/0.1314, allocations: 8.062 kB / 363.4 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.616e-05/0.1314, allocations: 3.984 kB / 363.4 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.1315, allocations: 0 / 363.4 MB, free: 8.191 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.826e-05/0.1315, allocations: 114.8 kB / 363.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1316, allocations: 0 / 363.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002277/0.1318, allocations: 12 kB / 363.5 MB, free: 8.07 MB / 302.1 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.0005962/0.1324, allocations: 0.7396 MB / 364.3 MB, free: 7.301 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001581/0.1326, allocations: 51.92 kB / 364.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1326, allocations: 0 / 364.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.511e-05/0.1326, allocations: 31.98 kB / 364.4 MB, free: 7.219 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002433/0.1329, allocations: 15.98 kB / 364.4 MB, free: 7.203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.1341, allocations: 0.7129 MB / 365.1 MB, free: 6.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.1344, allocations: 0.7082 MB / 365.8 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.477e-05/0.1345, allocations: 8.25 kB / 365.8 MB, free: 5.699 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.828e-05/0.1345, allocations: 31.42 kB / 365.8 MB, free: 5.668 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1345, allocations: 0 / 365.8 MB, free: 5.668 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01161/0.1461, allocations: 1.964 MB / 367.8 MB, free: 3.812 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/0.1463, allocations: 176 kB / 368 MB, free: 3.559 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/1.876, allocations: 0 / 368 MB, free: 3.559 MB / 302.1 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