Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_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.0009829/0.0009829, allocations: 93.92 kB / 16.95 MB, free: 6.047 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.001091/0.001091, allocations: 183.3 kB / 17.84 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.658/1.658, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004743/0.0004743, allocations: 8 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1101, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001909/0.1121, allocations: 1.36 MB / 329.8 MB, free: 2.625 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008432/0.1129, allocations: 0.4969 MB / 330.3 MB, free: 2.121 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.031e-05/0.113, allocations: 3.938 kB / 330.3 MB, free: 2.117 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.627e-05/0.1131, allocations: 11.88 kB / 330.3 MB, free: 2.105 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.1133, allocations: 23.84 kB / 330.3 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001408/0.1135, allocations: 27.97 kB / 330.4 MB, free: 2.055 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000148/0.1136, allocations: 95.67 kB / 330.5 MB, free: 1.961 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.829e-05/0.1137, allocations: 29.09 kB / 330.5 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.571e-05/0.1138, allocations: 27.86 kB / 330.5 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.927e-05/0.1139, allocations: 39.77 kB / 330.5 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.1139, allocations: 0 / 330.5 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.763e-05/0.114, allocations: 8 kB / 330.6 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.128e-05/0.114, allocations: 11.94 kB / 330.6 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.633e-05/0.114, allocations: 41.62 kB / 330.6 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 9.194e-05/0.1141, allocations: 60.11 kB / 330.7 MB, free: 1.742 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.1142, allocations: 4 kB / 330.7 MB, free: 1.738 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1142, allocations: 0 / 330.7 MB, free: 1.738 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.1142, allocations: 0 / 330.7 MB, free: 1.738 MB / 270.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.0006459/0.1148, allocations: 398.9 kB / 331.1 MB, free: 1.301 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.534e-05/0.1149, allocations: 8.031 kB / 331.1 MB, free: 1.293 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.713e-05/0.115, allocations: 38.56 kB / 331.1 MB, free: 1.246 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.67e-05/0.115, allocations: 11.81 kB / 331.1 MB, free: 1.234 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003002/0.1153, allocations: 199.4 kB / 331.3 MB, free: 1 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.1153, allocations: 4 kB / 331.3 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/0.1154, allocations: 8 kB / 331.3 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002201/0.1156, allocations: 81.59 kB / 331.4 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.1156, allocations: 0 / 331.4 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.1156, allocations: 8 kB / 331.4 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.385e-06/0.1157, allocations: 4 kB / 331.4 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.1158, allocations: 39.97 kB / 331.5 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000647/0.1164, allocations: 412 kB / 331.9 MB, free: 396 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.1166, allocations: 58.62 kB / 331.9 MB, free: 328 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.613e-05/0.1167, allocations: 28.86 kB / 331.9 MB, free: 296 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.1167, allocations: 7.922 kB / 332 MB, free: 288 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/0.1168, allocations: 42.55 kB / 332 MB, free: 236 kB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 2.896e-06/0.1168, allocations: 0 / 332 MB, free: 236 kB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.000289/0.1171, allocations: 109.5 kB / 332.1 MB, free: 120 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.1171, allocations: 55.41 kB / 332.2 MB, free: 52 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.1173, allocations: 142.3 kB / 332.3 MB, free: 15.9 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.1173, allocations: 25.7 kB / 332.3 MB, free: 15.87 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.636e-05/0.1174, allocations: 120.2 kB / 332.4 MB, free: 15.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.1174, allocations: 11.81 kB / 332.4 MB, free: 15.74 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-06/0.1174, allocations: 0 / 332.4 MB, free: 15.74 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.1175, allocations: 326.8 kB / 332.8 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.838e-05/0.1176, allocations: 23.98 kB / 332.8 MB, free: 15.39 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.589e-05/0.1176, allocations: 16 kB / 332.8 MB, free: 15.37 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.09e-05/0.1177, allocations: 27.98 kB / 332.8 MB, free: 15.34 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1177, allocations: 4 kB / 332.8 MB, free: 15.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001654/0.1179, allocations: 89.69 kB / 332.9 MB, free: 15.25 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1179, allocations: 10.64 kB / 332.9 MB, free: 15.24 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1179, allocations: 0 / 332.9 MB, free: 15.24 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.1179, allocations: 7.953 kB / 332.9 MB, free: 15.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.1182, allocations: 39.95 kB / 333 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.1182, allocations: 4.062 kB / 333 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.446e-05/0.1182, allocations: 15.84 kB / 333 MB, free: 15.17 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.1183, allocations: 0 / 333 MB, free: 15.17 MB / 286.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 0.0001076/0.1184, allocations: 117.8 kB / 333.1 MB, free: 15.05 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.874e-05/0.1184, allocations: 7.906 kB / 333.1 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.635e-05/0.1185, allocations: 16.3 kB / 333.1 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.1185, allocations: 0 / 333.1 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1185, allocations: 7.891 kB / 333.1 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.1185, allocations: 4 kB / 333.1 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002072/0.1187, allocations: 201.6 kB / 333.3 MB, free: 14.76 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1187, allocations: 0 / 333.3 MB, free: 14.76 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.1189, allocations: 19.98 kB / 333.4 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.1189, allocations: 0 / 333.4 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.1189, allocations: 0 / 333.4 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.1189, allocations: 3.984 kB / 333.4 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1189, allocations: 4 kB / 333.4 MB, free: 14.73 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002972/0.1192, allocations: 211.3 kB / 333.6 MB, free: 14.51 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.677e-05/0.1193, allocations: 85 kB / 333.7 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.085e-05/0.1193, allocations: 4.031 kB / 333.7 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.666e-05/0.1194, allocations: 0 / 333.7 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.197e-05/0.1194, allocations: 4 kB / 333.7 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.1194, allocations: 8.234 kB / 333.7 MB, free: 14.39 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.889e-05/0.1195, allocations: 116.5 kB / 333.8 MB, free: 14.28 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1195, allocations: 4.062 kB / 333.8 MB, free: 14.28 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002208/0.1198, allocations: 16 kB / 333.8 MB, free: 14.26 MB / 286.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.0006736/0.1204, allocations: 0.7357 MB / 334.5 MB, free: 13.5 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001909/0.1206, allocations: 59.97 kB / 334.6 MB, free: 13.44 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1207, allocations: 0 / 334.6 MB, free: 13.44 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.013e-05/0.1207, allocations: 27.98 kB / 334.6 MB, free: 13.41 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.1211, allocations: 19.92 kB / 334.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.1223, allocations: 0.7207 MB / 335.4 MB, free: 12.63 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.1227, allocations: 0.7004 MB / 336.1 MB, free: 11.9 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.446e-05/0.1227, allocations: 4 kB / 336.1 MB, free: 11.9 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.028e-05/0.1228, allocations: 31.42 kB / 336.1 MB, free: 11.87 MB / 286.1 MB Notification: Performance of SimCode: time 2.144e-06/0.1228, allocations: 4.109 kB / 336.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01348/0.1363, allocations: 1.981 MB / 338.1 MB, free: 9.895 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001996/0.1365, allocations: 176.9 kB / 338.3 MB, free: 9.648 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.959/2.096, allocations: 0 / 338.3 MB, free: 9.648 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat