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.001265/0.001265, allocations: 109.4 kB / 19.8 MB, free: 2.516 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.001403/0.001403, allocations: 219 kB / 23 MB, free: 5.609 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.4/1.4, allocations: 230.5 MB / 256.5 MB, free: 8.406 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.001867/0.001867, allocations: 67.89 kB / 376.2 MB, free: 4.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2502, allocations: 53.31 MB / 429.5 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002942/0.2532, allocations: 1.715 MB / 431.2 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009883/0.2541, allocations: 0.5532 MB / 431.8 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.638e-05/0.2542, allocations: 3.938 kB / 431.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.658e-05/0.2543, allocations: 11.86 kB / 431.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.2545, allocations: 23.78 kB / 431.8 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002063/0.2547, allocations: 67.86 kB / 431.9 MB, free: 5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001675/0.2549, allocations: 95.7 kB / 432 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.255, allocations: 21.11 kB / 432 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.2551, allocations: 51.77 kB / 432.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.202e-05/0.2552, allocations: 43.78 kB / 432.1 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.772e-05/0.2552, allocations: 4 kB / 432.1 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.358e-05/0.2553, allocations: 15.94 kB / 432.1 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.833e-05/0.2553, allocations: 23.91 kB / 432.1 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.271e-05/0.2554, allocations: 43.67 kB / 432.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001734/0.2555, allocations: 99.94 kB / 432.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2555, allocations: 0 / 432.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2555, allocations: 0 / 432.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.2556, allocations: 0 / 432.3 MB, free: 4.617 MB / 334.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.0006017/0.2562, allocations: 407 kB / 432.7 MB, free: 4.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.2562, allocations: 8.031 kB / 432.7 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.306e-05/0.2562, allocations: 50.66 kB / 432.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.2564, allocations: 28.83 kB / 432.8 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/0.2566, allocations: 200.8 kB / 433 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.2566, allocations: 4.375 kB / 433 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.788e-05/0.2567, allocations: 15.94 kB / 433 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001787/0.2568, allocations: 77.59 kB / 433.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.2569, allocations: 0 / 433.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.2569, allocations: 4 kB / 433.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.2569, allocations: 7.938 kB / 433.1 MB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.257, allocations: 39.97 kB / 433.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005622/0.2576, allocations: 411.9 kB / 433.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.2577, allocations: 58.62 kB / 433.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.887e-05/0.2578, allocations: 32.8 kB / 433.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.2578, allocations: 7.984 kB / 433.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.2578, allocations: 30.56 kB / 433.6 MB, free: 3.078 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.042e-06/0.2578, allocations: 0 / 433.6 MB, free: 3.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002928/0.2581, allocations: 101.5 kB / 433.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.2581, allocations: 55.41 kB / 433.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.2583, allocations: 144.3 kB / 433.9 MB, free: 2.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.2583, allocations: 25.7 kB / 433.9 MB, free: 2.719 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.799e-05/0.2584, allocations: 112.1 kB / 434.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.552e-05/0.2584, allocations: 19.94 kB / 434.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.823e-05/0.2584, allocations: 21.7 kB / 434.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.2586, allocations: 318.8 kB / 434.4 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.938e-05/0.2586, allocations: 19.98 kB / 434.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.82e-05/0.2587, allocations: 20.23 kB / 434.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001171/0.2588, allocations: 52.98 kB / 434.5 MB, free: 2.145 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.2588, allocations: 8 kB / 434.5 MB, free: 2.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001824/0.259, allocations: 101.5 kB / 434.6 MB, free: 2.031 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.259, allocations: 4 kB / 434.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.259, allocations: 0 / 434.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.259, allocations: 0 / 434.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002063/0.2592, allocations: 35.97 kB / 434.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.2592, allocations: 7.938 kB / 434.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.889e-05/0.2593, allocations: 3.953 kB / 434.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.447e-06/0.2593, allocations: 4 kB / 434.7 MB, free: 1.977 MB / 334.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.823e-05/0.2594, allocations: 117.8 kB / 434.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.191e-05/0.2594, allocations: 11.89 kB / 434.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.198e-05/0.2595, allocations: 16.3 kB / 434.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2595, allocations: 4 kB / 434.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.2595, allocations: 0 / 434.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.2595, allocations: 3.938 kB / 434.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000214/0.2597, allocations: 193.6 kB / 435 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2597, allocations: 3.938 kB / 435 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001529/0.2598, allocations: 23.98 kB / 435 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.2598, allocations: 3.984 kB / 435 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.779e-06/0.2598, allocations: 0 / 435 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.2598, allocations: 4 kB / 435 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2599, allocations: 3.938 kB / 435 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000298/0.2601, allocations: 203.5 kB / 435.2 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.383e-05/0.2602, allocations: 88.94 kB / 435.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.2602, allocations: 64 / 435.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.644e-05/0.2603, allocations: 8 kB / 435.3 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.601e-05/0.2603, allocations: 3.984 kB / 435.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.2603, allocations: 8 kB / 435.3 MB, free: 1.195 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.758e-05/0.2604, allocations: 109.8 kB / 435.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2604, allocations: 0 / 435.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002213/0.2606, allocations: 15.95 kB / 435.5 MB, free: 1.074 MB / 334.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.0005761/0.2612, allocations: 0.7476 MB / 436.2 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001636/0.2614, allocations: 47.92 kB / 436.3 MB, free: 260 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2614, allocations: 0 / 436.3 MB, free: 260 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.139e-05/0.2614, allocations: 23.98 kB / 436.3 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.2617, allocations: 19.98 kB / 436.3 MB, free: 216 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001833/0.2636, allocations: 1.589 MB / 437.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.2639, allocations: 0.7041 MB / 438.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.995e-05/0.264, allocations: 3.984 kB / 438.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.878e-05/0.264, allocations: 31.44 kB / 438.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.264, allocations: 4 kB / 438.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03134/0.2954, allocations: 2.331 MB / 441 MB, free: 11.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.659/7.954, allocations: 0 / 441 MB, free: 11.52 MB / 350.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 --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.160658585984493] Failed to read output from testmodel.py, exit status != 0: ['time', 'firstOrder1.y', 'firstOrder2.y'] 8.023747281986289 8.051489663 7.790564348 Calling exit ...