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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001341/0.001341, allocations: 117.3 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001415, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.396/1.396, allocations: 230.5 MB / 254.7 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.001844/0.001844, allocations: 75.81 kB / 373.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0917/0.09355, allocations: 53.31 MB / 426.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002997/0.09654, allocations: 1.708 MB / 428.6 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.0976, allocations: 0.5532 MB / 429.1 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.262e-05/0.09768, allocations: 4 kB / 429.1 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.09779, allocations: 11.81 kB / 429.1 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001826/0.09798, allocations: 23.8 kB / 429.2 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000208/0.09819, allocations: 59.92 kB / 429.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000185/0.09837, allocations: 107.6 kB / 429.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.817e-05/0.09847, allocations: 25.11 kB / 429.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.0986, allocations: 47.78 kB / 429.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.531e-05/0.0987, allocations: 47.7 kB / 429.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.09872, allocations: 8 kB / 429.5 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.164e-05/0.09876, allocations: 8 kB / 429.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.208e-05/0.09881, allocations: 19.92 kB / 429.5 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.478e-05/0.09886, allocations: 43.73 kB / 429.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.09902, allocations: 91.5 kB / 429.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.09903, allocations: 4 kB / 429.6 MB, free: 2.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.09903, allocations: 0 / 429.6 MB, free: 2.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.09903, allocations: 4 kB / 429.6 MB, free: 2.098 MB / 350.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.0006205/0.09965, allocations: 414.9 kB / 430 MB, free: 1.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.09969, allocations: 8.031 kB / 430 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.152e-05/0.09974, allocations: 42.73 kB / 430.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.09987, allocations: 24.83 kB / 430.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002906/0.1002, allocations: 208.7 kB / 430.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.826e-06/0.1002, allocations: 8.375 kB / 430.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/0.1002, allocations: 7.938 kB / 430.3 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001732/0.1004, allocations: 81.61 kB / 430.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1004, allocations: 0 / 430.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.1004, allocations: 3.984 kB / 430.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1004, allocations: 0 / 430.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.1005, allocations: 39.98 kB / 430.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005585/0.1011, allocations: 415.9 kB / 430.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001515/0.1012, allocations: 58.59 kB / 430.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.646e-05/0.1013, allocations: 28.89 kB / 430.9 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.1013, allocations: 3.984 kB / 430.9 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.1013, allocations: 42.5 kB / 431 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.1013, allocations: 0 / 431 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002737/0.1016, allocations: 93.56 kB / 431.1 MB, free: 468 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.1017, allocations: 59.33 kB / 431.1 MB, free: 396 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.1018, allocations: 147.4 kB / 431.3 MB, free: 232 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.1018, allocations: 25.7 kB / 431.3 MB, free: 200 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.302e-05/0.1019, allocations: 104.1 kB / 431.4 MB, free: 92 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.043e-05/0.1019, allocations: 31.92 kB / 431.4 MB, free: 60 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.862e-05/0.1019, allocations: 17.72 kB / 431.5 MB, free: 36 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1021, allocations: 322.8 kB / 431.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.24e-05/0.1022, allocations: 23.92 kB / 431.8 MB, free: 15.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.717e-05/0.1022, allocations: 16 kB / 431.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.1023, allocations: 52.78 kB / 431.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1023, allocations: 0 / 431.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001652/0.1025, allocations: 89.56 kB / 431.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.1025, allocations: 8 kB / 432 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.1025, allocations: 0 / 432 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.1025, allocations: 0 / 432 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.1027, allocations: 39.97 kB / 432 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.1027, allocations: 0 / 432 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.372e-05/0.1028, allocations: 7.953 kB / 432 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.1028, allocations: 4.234 kB / 432 MB, free: 15.46 MB / 366.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.314e-05/0.1029, allocations: 121.8 kB / 432.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.222e-05/0.1029, allocations: 11.89 kB / 432.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.847e-05/0.103, allocations: 12.31 kB / 432.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.103, allocations: 4 kB / 432.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.103, allocations: 0 / 432.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.103, allocations: 4 kB / 432.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002247/0.1032, allocations: 197.6 kB / 432.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.1032, allocations: 7.922 kB / 432.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.1033, allocations: 23.98 kB / 432.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.1033, allocations: 0 / 432.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-06/0.1034, allocations: 4 kB / 432.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1034, allocations: 0 / 432.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1034, allocations: 240 / 432.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002849/0.1036, allocations: 203.4 kB / 432.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.954e-05/0.1037, allocations: 96.97 kB / 432.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.619e-05/0.1037, allocations: 0 / 432.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.521e-05/0.1038, allocations: 7.984 kB / 432.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.635e-05/0.1038, allocations: 4.062 kB / 432.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.1038, allocations: 0 / 432.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.772e-05/0.1039, allocations: 116.6 kB / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1039, allocations: 0 / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.1042, allocations: 15.95 kB / 432.8 MB, free: 14.55 MB / 366.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.0005816/0.1047, allocations: 0.7397 MB / 433.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001648/0.1049, allocations: 47.91 kB / 433.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.1049, allocations: 3.938 kB / 433.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.989e-05/0.105, allocations: 23.98 kB / 433.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.1053, allocations: 21.7 kB / 433.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.1073, allocations: 1.582 MB / 435.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003327/0.1076, allocations: 0.7041 MB / 435.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.35e-05/0.1076, allocations: 4 kB / 435.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.03e-05/0.1077, allocations: 31.42 kB / 436 MB, free: 11.27 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1077, allocations: 0 / 436 MB, free: 11.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03351/0.1412, allocations: 2.341 MB / 438.3 MB, free: 9.004 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.639/7.78, allocations: 14.66 kB / 438.3 MB, free: 8.996 MB / 366.1 MB " [Timeout remaining time 652] (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 --stepSize=0.00019992 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.170759234111756] Failed to read output from testmodel.py, exit status != 0: ['time', 'firstOrder1.y', 'firstOrder2.y'] 7.848955536726862 8.052140162 7.95064716 Calling exit ...