Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009155/0.0009152, allocations: 86.11 kB / 16.31 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000895/0.000895, allocations: 183.7 kB / 17.21 MB, free: 6.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.253/1.253, allocations: 223.2 MB / 241.2 MB, free: 236 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002445/0.0002447, allocations: 8 kB / 300.9 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0863/0.08657, allocations: 50.42 MB / 351.3 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001607/0.08821, allocations: 1.364 MB / 352.7 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006902/0.08891, allocations: 459.9 kB / 353.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.325e-05/0.089, allocations: 4 kB / 353.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.739e-05/0.08908, allocations: 3.938 kB / 353.1 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.08926, allocations: 23.84 kB / 353.2 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001461/0.08942, allocations: 35.95 kB / 353.2 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001506/0.08958, allocations: 95.64 kB / 353.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.08969, allocations: 24.95 kB / 353.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.232e-05/0.08978, allocations: 35.86 kB / 353.4 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.226e-05/0.08986, allocations: 31.78 kB / 353.4 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.849e-05/0.08989, allocations: 4 kB / 353.4 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.683e-05/0.08991, allocations: 4 kB / 353.4 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.671e-05/0.08997, allocations: 23.84 kB / 353.4 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.127e-05/0.09001, allocations: 41.64 kB / 353.5 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.926e-05/0.09011, allocations: 56.11 kB / 353.5 MB, free: 1.695 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.09012, allocations: 0 / 353.5 MB, free: 1.695 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.09012, allocations: 0 / 353.5 MB, free: 1.695 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.09013, allocations: 0 / 353.5 MB, free: 1.695 MB / 286.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.0004985/0.09063, allocations: 398.9 kB / 353.9 MB, free: 1.258 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.09068, allocations: 8.031 kB / 353.9 MB, free: 1.25 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.09e-05/0.09073, allocations: 42.56 kB / 354 MB, free: 1.199 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.903e-05/0.09077, allocations: 11.81 kB / 354 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002087/0.09098, allocations: 195.4 kB / 354.2 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.091, allocations: 8 kB / 354.2 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.907e-05/0.09103, allocations: 11.98 kB / 354.2 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001806/0.09122, allocations: 77.05 kB / 354.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/0.09124, allocations: 0 / 354.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.09126, allocations: 7.953 kB / 354.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.09127, allocations: 0 / 354.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001112/0.09139, allocations: 47.97 kB / 354.3 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000519/0.09192, allocations: 400 kB / 354.7 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001314/0.09206, allocations: 74.52 kB / 354.8 MB, free: 276 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.605e-05/0.09214, allocations: 36.88 kB / 354.8 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.09216, allocations: 0 / 354.8 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.907e-05/0.09219, allocations: 30.56 kB / 354.8 MB, free: 196 kB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 9.21e-07/0.09219, allocations: 0 / 354.8 MB, free: 196 kB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002842/0.09248, allocations: 101.6 kB / 354.9 MB, free: 88 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.205e-05/0.09253, allocations: 51.41 kB / 355 MB, free: 24 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.09267, allocations: 149.4 kB / 355.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.0927, allocations: 33.58 kB / 355.2 MB, free: 15.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.354e-05/0.09277, allocations: 116.2 kB / 355.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.287e-05/0.0928, allocations: 15.8 kB / 355.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.529e-05/0.09282, allocations: 4 kB / 355.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.09294, allocations: 330.7 kB / 355.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.906e-05/0.093, allocations: 23.98 kB / 355.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.606e-05/0.09305, allocations: 19.98 kB / 355.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.641e-05/0.09312, allocations: 20.16 kB / 355.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.09313, allocations: 4 kB / 355.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001724/0.0933, allocations: 93.56 kB / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.09333, allocations: 4 kB / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.09334, allocations: 0 / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.769e-06/0.09335, allocations: 0 / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.09357, allocations: 47.91 kB / 355.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.09358, allocations: 0 / 355.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.216e-05/0.09364, allocations: 11.84 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.09366, allocations: 4.25 kB / 355.8 MB, free: 15.13 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 7.967e-05/0.09374, allocations: 121.8 kB / 356 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.701e-05/0.09377, allocations: 7.906 kB / 356 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.73e-05/0.09381, allocations: 12.31 kB / 356 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.09382, allocations: 4 kB / 356 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.09383, allocations: 0 / 356 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.09384, allocations: 0 / 356 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/0.09402, allocations: 197.6 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.09403, allocations: 0 / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.09417, allocations: 35.97 kB / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.09418, allocations: 0 / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.0942, allocations: 0 / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.0942, allocations: 0 / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.09421, allocations: 0 / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002594/0.09447, allocations: 219.4 kB / 356.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.956e-05/0.09453, allocations: 84.97 kB / 356.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.09456, allocations: 0 / 356.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.435e-05/0.09464, allocations: 4 kB / 356.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.82e-05/0.09468, allocations: 7.984 kB / 356.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-06/0.09469, allocations: 0 / 356.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.531e-05/0.09478, allocations: 113.3 kB / 356.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09479, allocations: 0 / 356.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00022/0.09501, allocations: 12 kB / 356.6 MB, free: 14.23 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.0004905/0.09551, allocations: 0.7475 MB / 357.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.09566, allocations: 59.92 kB / 357.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.09567, allocations: 0 / 357.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.738e-05/0.09573, allocations: 23.98 kB / 357.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.09607, allocations: 29.92 kB / 357.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.09723, allocations: 0.7182 MB / 358.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.09753, allocations: 0.7004 MB / 358.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.662e-05/0.09758, allocations: 7.984 kB / 358.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.936e-05/0.09765, allocations: 27.42 kB / 359 MB, free: 11.83 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.09766, allocations: 0 / 359 MB, free: 11.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01225/0.1099, allocations: 1.983 MB / 360.9 MB, free: 9.949 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002014/0.1101, allocations: 169 kB / 361.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.728/1.838, allocations: 0 / 361.1 MB, free: 9.711 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat