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.0009647/0.0009648, allocations: 91.23 kB / 17 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001262, allocations: 193.5 kB / 17.9 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002383/0.0002385, allocations: 8 kB / 306.8 MB, free: 1.496 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.108, allocations: 51.49 MB / 358.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001864/0.1099, allocations: 1.381 MB / 359.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008498/0.1108, allocations: 0.5029 MB / 360.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.179e-05/0.1109, allocations: 4 kB / 360.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.554e-05/0.111, allocations: 3.938 kB / 360.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001498/0.1111, allocations: 23.84 kB / 360.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001418/0.1113, allocations: 31.95 kB / 360.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.1115, allocations: 95.69 kB / 360.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.1116, allocations: 29.09 kB / 360.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.1117, allocations: 35.8 kB / 360.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.433e-05/0.1118, allocations: 31.83 kB / 360.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.1118, allocations: 4 kB / 360.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.032e-05/0.1118, allocations: 8 kB / 360.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.814e-05/0.1119, allocations: 11.92 kB / 360.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.648e-05/0.1119, allocations: 41.64 kB / 360.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.112, allocations: 64.05 kB / 360.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1121, allocations: 4 kB / 360.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1121, allocations: 4 kB / 360.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.396e-06/0.1121, allocations: 0 / 360.6 MB, free: 11.72 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.0005828/0.1127, allocations: 401.6 kB / 361 MB, free: 11.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.1127, allocations: 12.03 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.983e-05/0.1128, allocations: 34.56 kB / 361 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.1129, allocations: 31.8 kB / 361 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002064/0.1131, allocations: 195.4 kB / 361.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.1131, allocations: 11.95 kB / 361.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.585e-05/0.1132, allocations: 7.938 kB / 361.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001961/0.1134, allocations: 81.66 kB / 361.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.801e-06/0.1134, allocations: 0 / 361.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.1134, allocations: 8 kB / 361.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.1134, allocations: 0 / 361.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.1135, allocations: 47.97 kB / 361.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005316/0.1141, allocations: 408 kB / 361.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/0.1142, allocations: 70.58 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.355e-05/0.1143, allocations: 32.89 kB / 361.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.1143, allocations: 0 / 361.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.1144, allocations: 34.5 kB / 361.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 8.12e-07/0.1144, allocations: 0 / 361.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002615/0.1146, allocations: 105.5 kB / 362 MB, free: 10.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.1147, allocations: 51.41 kB / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.1148, allocations: 150.3 kB / 362.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.1148, allocations: 25.7 kB / 362.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.394e-05/0.1149, allocations: 112.2 kB / 362.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.1149, allocations: 15.81 kB / 362.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-06/0.1149, allocations: 0 / 362.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.1151, allocations: 322.8 kB / 362.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.681e-05/0.1152, allocations: 23.98 kB / 362.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.763e-05/0.1152, allocations: 23.94 kB / 362.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.752e-05/0.1153, allocations: 23.98 kB / 362.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1153, allocations: 0 / 362.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001664/0.1155, allocations: 93.56 kB / 362.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.1155, allocations: 8 kB / 362.8 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.1155, allocations: 0 / 362.8 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.448e-06/0.1155, allocations: 0 / 362.8 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.1157, allocations: 43.91 kB / 362.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.1158, allocations: 7.953 kB / 362.9 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.886e-05/0.1158, allocations: 7.844 kB / 362.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.1158, allocations: 4 kB / 362.9 MB, free: 9.137 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 9.38e-05/0.1159, allocations: 125.7 kB / 363 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.008e-05/0.116, allocations: 7.906 kB / 363 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.808e-05/0.116, allocations: 16.3 kB / 363 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.116, allocations: 0 / 363 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.116, allocations: 0 / 363 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.116, allocations: 3.953 kB / 363.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002024/0.1162, allocations: 193.6 kB / 363.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1162, allocations: 0 / 363.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.1164, allocations: 23.98 kB / 363.3 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1164, allocations: 8 kB / 363.3 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.1164, allocations: 3.984 kB / 363.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1164, allocations: 0 / 363.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1164, allocations: 3.984 kB / 363.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002781/0.1167, allocations: 211.6 kB / 363.5 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.1168, allocations: 89.11 kB / 363.6 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.1168, allocations: 4 kB / 363.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.772e-05/0.1169, allocations: 4 kB / 363.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.618e-05/0.1169, allocations: 3.984 kB / 363.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.1169, allocations: 4 kB / 363.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.138e-05/0.117, allocations: 107 kB / 363.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.117, allocations: 0 / 363.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002163/0.1172, allocations: 16 kB / 363.7 MB, free: 8.238 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.0005482/0.1178, allocations: 0.7396 MB / 364.4 MB, free: 7.469 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001325/0.1179, allocations: 51.92 kB / 364.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1179, allocations: 4.062 kB / 364.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.473e-05/0.118, allocations: 23.98 kB / 364.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.1183, allocations: 23.98 kB / 364.6 MB, free: 7.367 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.1194, allocations: 0.7012 MB / 365.3 MB, free: 6.617 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.1197, allocations: 0.7054 MB / 366 MB, free: 5.887 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.639e-05/0.1198, allocations: 7.984 kB / 366 MB, free: 5.879 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.446e-05/0.1199, allocations: 27.42 kB / 366 MB, free: 5.852 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1199, allocations: 0 / 366 MB, free: 5.852 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01441/0.1343, allocations: 1.992 MB / 368 MB, free: 3.973 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/0.1345, allocations: 168.7 kB / 368.1 MB, free: 3.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.796/1.931, allocations: 3.938 kB / 368.2 MB, free: 3.727 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