Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001561/0.001561, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.192/2.192, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 98.78 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003983/0.0003985, allocations: 8 kB / 327 MB, free: 15.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1009, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002517/0.1034, allocations: 1.36 MB / 376 MB, free: 13.98 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.1048, allocations: 0.4894 MB / 376.5 MB, free: 13.48 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.781e-05/0.1049, allocations: 3.938 kB / 376.5 MB, free: 13.48 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.967e-05/0.105, allocations: 7.922 kB / 376.5 MB, free: 13.47 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.1052, allocations: 27.91 kB / 376.5 MB, free: 13.44 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001949/0.1054, allocations: 43.88 kB / 376.6 MB, free: 13.4 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001579/0.1056, allocations: 59.86 kB / 376.6 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.1057, allocations: 29.09 kB / 376.6 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.1058, allocations: 31.84 kB / 376.7 MB, free: 13.28 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.622e-05/0.1059, allocations: 31.84 kB / 376.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.201e-05/0.106, allocations: 4 kB / 376.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.75e-05/0.106, allocations: 0 / 376.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.755e-05/0.1061, allocations: 19.92 kB / 376.7 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.755e-05/0.1061, allocations: 41.64 kB / 376.8 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001147/0.1063, allocations: 60.09 kB / 376.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.1063, allocations: 0 / 376.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1063, allocations: 0 / 376.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.1063, allocations: 0 / 376.8 MB, free: 13.12 MB / 282.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.0006833/0.107, allocations: 398.9 kB / 377.2 MB, free: 12.68 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.107, allocations: 12.03 kB / 377.2 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.638e-05/0.1071, allocations: 42.55 kB / 377.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.386e-05/0.1072, allocations: 15.75 kB / 377.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.1075, allocations: 195.4 kB / 377.5 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.1075, allocations: 7.938 kB / 377.5 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.8e-05/0.1075, allocations: 8 kB / 377.5 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002762/0.1078, allocations: 86.3 kB / 377.6 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1078, allocations: 0 / 377.6 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.1079, allocations: 0 / 377.6 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1079, allocations: 4 kB / 377.6 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002039/0.1081, allocations: 47.97 kB / 377.6 MB, free: 12.22 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008498/0.109, allocations: 412 kB / 378 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002261/0.1092, allocations: 58.59 kB / 378.1 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.1093, allocations: 0 / 378.1 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.1093, allocations: 34.56 kB / 378.1 MB, free: 11.64 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 1.874e-06/0.1093, allocations: 0 / 378.1 MB, free: 11.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004517/0.1098, allocations: 113.6 kB / 378.2 MB, free: 11.53 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.1098, allocations: 51.41 kB / 378.3 MB, free: 11.46 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.11, allocations: 138.3 kB / 378.4 MB, free: 11.32 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.1101, allocations: 33.7 kB / 378.5 MB, free: 11.28 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.1102, allocations: 174.6 kB / 378.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.811e-05/0.1102, allocations: 15.81 kB / 378.6 MB, free: 11.09 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-06/0.1103, allocations: 0 / 378.6 MB, free: 11.09 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1104, allocations: 322.8 kB / 379 MB, free: 10.77 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.1105, allocations: 16 kB / 379 MB, free: 10.75 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.759e-05/0.1106, allocations: 23.98 kB / 379 MB, free: 10.73 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.1108, allocations: 23.98 kB / 379 MB, free: 10.71 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.1108, allocations: 0 / 379 MB, free: 10.71 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003073/0.1111, allocations: 93.61 kB / 379.1 MB, free: 10.61 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.1111, allocations: 4 kB / 379.1 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1112, allocations: 0 / 379.1 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.1112, allocations: 0 / 379.1 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003783/0.1116, allocations: 44.17 kB / 379.2 MB, free: 10.56 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.1116, allocations: 3.984 kB / 379.2 MB, free: 10.56 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.1117, allocations: 15.84 kB / 379.2 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.1117, allocations: 0 / 379.2 MB, free: 10.54 MB / 282.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 () * 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 0.0001415/0.1119, allocations: 117.8 kB / 379.3 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.866e-05/0.112, allocations: 11.91 kB / 379.3 MB, free: 10.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.65e-05/0.112, allocations: 16.3 kB / 379.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.112, allocations: 0 / 379.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.112, allocations: 7.891 kB / 379.3 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1121, allocations: 3.938 kB / 379.3 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003024/0.1124, allocations: 197.6 kB / 379.5 MB, free: 10.13 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.1124, allocations: 0 / 379.5 MB, free: 10.13 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002943/0.1127, allocations: 23.92 kB / 379.5 MB, free: 10.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.1127, allocations: 8 kB / 379.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.1127, allocations: 0 / 379.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.1128, allocations: 0 / 379.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1128, allocations: 0 / 379.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004926/0.1133, allocations: 207.4 kB / 379.8 MB, free: 9.883 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.844e-05/0.1134, allocations: 85.05 kB / 379.8 MB, free: 9.781 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.981e-05/0.1134, allocations: 8.047 kB / 379.8 MB, free: 9.773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.1135, allocations: 4 kB / 379.9 MB, free: 9.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.489e-05/0.1136, allocations: 0 / 379.9 MB, free: 9.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.1136, allocations: 8 kB / 379.9 MB, free: 9.762 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001305/0.1138, allocations: 116.4 kB / 380 MB, free: 9.648 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1138, allocations: 0 / 380 MB, free: 9.648 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003379/0.1141, allocations: 19.86 kB / 380 MB, free: 9.629 MB / 282.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 () * 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.0008329/0.115, allocations: 0.732 MB / 380.7 MB, free: 8.871 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002773/0.1153, allocations: 55.91 kB / 380.8 MB, free: 8.816 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1153, allocations: 4.062 kB / 380.8 MB, free: 8.812 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.1154, allocations: 27.98 kB / 380.8 MB, free: 8.785 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.1158, allocations: 20.23 kB / 380.8 MB, free: 8.766 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001927/0.1178, allocations: 0.7419 MB / 381.6 MB, free: 7.973 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.1182, allocations: 0.7083 MB / 382.3 MB, free: 7.238 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.1183, allocations: 27.42 kB / 382.3 MB, free: 7.211 MB / 282.7 MB Notification: Performance of SimCode: time 1.533e-06/0.1183, allocations: 0 / 382.3 MB, free: 7.211 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.571/2.689, allocations: 1.644 MB / 384 MB, free: 5.566 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat