Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_1_0-beta_om_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.001432/0.001433, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001347, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.459/1.459, allocations: 227.7 MB / 247.1 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 64.64 kB / 307.3 MB, free: 408 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1126, allocations: 50.54 MB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003597/0.1162, allocations: 1.688 MB / 359.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.1174, allocations: 0.5548 MB / 360.1 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.385e-05/0.1175, allocations: 3.938 kB / 360.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.1176, allocations: 11.86 kB / 360.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001822/0.1178, allocations: 23.8 kB / 360.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002155/0.118, allocations: 59.86 kB / 360.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001805/0.1182, allocations: 99.69 kB / 360.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.1183, allocations: 37.09 kB / 360.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.1185, allocations: 43.8 kB / 360.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.273e-05/0.1186, allocations: 43.77 kB / 360.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/0.1186, allocations: 4 kB / 360.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.883e-05/0.1187, allocations: 19.98 kB / 360.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.616e-05/0.1187, allocations: 15.92 kB / 360.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.404e-05/0.1188, allocations: 39.75 kB / 360.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.119, allocations: 91.92 kB / 360.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.119, allocations: 11.92 kB / 360.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.119, allocations: 0 / 360.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.119, allocations: 0 / 360.6 MB, free: 11.08 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.0006221/0.1196, allocations: 407 kB / 361 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.1197, allocations: 8.031 kB / 361 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.879e-05/0.1197, allocations: 38.75 kB / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.1199, allocations: 24.73 kB / 361.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002593/0.1202, allocations: 212.6 kB / 361.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.1202, allocations: 4.375 kB / 361.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.144e-05/0.1202, allocations: 11.94 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.1204, allocations: 77.66 kB / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1204, allocations: 0 / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.1205, allocations: 4 kB / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.1205, allocations: 0 / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.1206, allocations: 39.97 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000642/0.1212, allocations: 415.8 kB / 361.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.1214, allocations: 62.61 kB / 361.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.519e-05/0.1215, allocations: 32.8 kB / 361.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.323e-05/0.1215, allocations: 4 kB / 361.9 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.1216, allocations: 38.55 kB / 362 MB, free: 9.547 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.1216, allocations: 0 / 362 MB, free: 9.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002981/0.1219, allocations: 101.5 kB / 362.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.1219, allocations: 51.41 kB / 362.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/0.1221, allocations: 144.5 kB / 362.2 MB, free: 9.223 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.1221, allocations: 29.7 kB / 362.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.934e-05/0.1222, allocations: 112.1 kB / 362.4 MB, free: 9.074 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.1222, allocations: 19.8 kB / 362.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-05/0.1223, allocations: 21.7 kB / 362.4 MB, free: 9.027 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1224, allocations: 318.8 kB / 362.7 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.023e-05/0.1225, allocations: 19.92 kB / 362.8 MB, free: 8.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.212e-05/0.1225, allocations: 23.97 kB / 362.8 MB, free: 8.664 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001275/0.1227, allocations: 48.84 kB / 362.8 MB, free: 8.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1227, allocations: 4 kB / 362.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001825/0.1229, allocations: 93.52 kB / 362.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.1229, allocations: 7.938 kB / 362.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1229, allocations: 0 / 362.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.1229, allocations: 0 / 362.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.1231, allocations: 39.91 kB / 363 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.1232, allocations: 4 kB / 363 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.371e-05/0.1232, allocations: 7.844 kB / 363 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.1232, allocations: 4 kB / 363 MB, free: 8.449 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.932e-05/0.1233, allocations: 121.8 kB / 363.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.485e-05/0.1234, allocations: 11.84 kB / 363.1 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.197e-05/0.1234, allocations: 12.3 kB / 363.1 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.1234, allocations: 4 kB / 363.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.1234, allocations: 0 / 363.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.1234, allocations: 256 / 363.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002278/0.1237, allocations: 197.6 kB / 363.3 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.1237, allocations: 7.938 kB / 363.3 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.1238, allocations: 19.98 kB / 363.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.1239, allocations: 4 kB / 363.4 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.1239, allocations: 3.984 kB / 363.4 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1239, allocations: 4 kB / 363.4 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1239, allocations: 0 / 363.4 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003104/0.1242, allocations: 203.4 kB / 363.6 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.882e-05/0.1243, allocations: 84.95 kB / 363.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.1243, allocations: 0 / 363.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.277e-05/0.1244, allocations: 12 kB / 363.7 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.502e-05/0.1244, allocations: 7.984 kB / 363.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.1245, allocations: 4 kB / 363.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.275e-05/0.1245, allocations: 104.8 kB / 363.8 MB, free: 7.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1245, allocations: 0 / 363.8 MB, free: 7.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002355/0.1248, allocations: 19.91 kB / 363.8 MB, free: 7.551 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006096/0.1254, allocations: 0.7396 MB / 364.5 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001704/0.1256, allocations: 43.98 kB / 364.6 MB, free: 6.742 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1256, allocations: 0 / 364.6 MB, free: 6.742 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.596e-05/0.1257, allocations: 27.92 kB / 364.6 MB, free: 6.715 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.1261, allocations: 22.39 kB / 364.6 MB, free: 6.695 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.128, allocations: 1.57 MB / 366.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003509/0.1283, allocations: 0.7041 MB / 366.9 MB, free: 4.312 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.606e-05/0.1284, allocations: 12.23 kB / 366.9 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.174e-05/0.1285, allocations: 31.42 kB / 366.9 MB, free: 4.27 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1285, allocations: 0 / 366.9 MB, free: 4.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02481/0.1533, allocations: 2.258 MB / 369.2 MB, free: 2.074 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.854/8.007, allocations: 21.94 kB / 369.2 MB, free: 2.062 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.pipe 2>&1)