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.001999/0.001999, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.002477/0.002477, allocations: 213.7 kB / 24.54 MB, free: 4.016 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.494/1.494, allocations: 230.6 MB / 258.3 MB, free: 8.051 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.002093/0.002093, allocations: 68.77 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2342, allocations: 53.37 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003098/0.2373, allocations: 1.716 MB / 433.6 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.2383, allocations: 0.5649 MB / 434.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.27e-05/0.2384, allocations: 4 kB / 434.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001035/0.2385, allocations: 15.75 kB / 434.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001782/0.2387, allocations: 19.8 kB / 434.2 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002214/0.2389, allocations: 59.92 kB / 434.3 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.2391, allocations: 107.6 kB / 434.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.2392, allocations: 25.3 kB / 434.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.2393, allocations: 39.86 kB / 434.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.2395, allocations: 59.69 kB / 434.5 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.2395, allocations: 4 kB / 434.5 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.98e-05/0.2395, allocations: 12 kB / 434.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.708e-05/0.2396, allocations: 19.92 kB / 434.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.212e-05/0.2396, allocations: 39.73 kB / 434.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001695/0.2398, allocations: 91.09 kB / 434.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2398, allocations: 0 / 434.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2398, allocations: 0 / 434.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.2398, allocations: 3.938 kB / 434.7 MB, free: 4.113 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.0006791/0.2405, allocations: 347 kB / 435 MB, free: 3.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.2405, allocations: 12.03 kB / 435 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.973e-05/0.2406, allocations: 34.75 kB / 435.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.2407, allocations: 24.83 kB / 435.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002715/0.241, allocations: 144.4 kB / 435.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.241, allocations: 8.375 kB / 435.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/0.2411, allocations: 11.94 kB / 435.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.2412, allocations: 88.2 kB / 435.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.2413, allocations: 0 / 435.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.2413, allocations: 4 kB / 435.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.2413, allocations: 7.984 kB / 435.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001225/0.2414, allocations: 35.97 kB / 435.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006093/0.242, allocations: 379 kB / 435.7 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001596/0.2422, allocations: 62.58 kB / 435.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.672e-05/0.2422, allocations: 32.89 kB / 435.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.369e-05/0.2423, allocations: 3.938 kB / 435.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.2423, allocations: 30.56 kB / 435.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.122e-06/0.2423, allocations: 0 / 435.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003036/0.2426, allocations: 101.5 kB / 436 MB, free: 2.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.2426, allocations: 55.41 kB / 436 MB, free: 2.602 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.2428, allocations: 148.7 kB / 436.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.2428, allocations: 25.7 kB / 436.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.275e-05/0.2429, allocations: 108.1 kB / 436.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.875e-05/0.2429, allocations: 19.94 kB / 436.3 MB, free: 2.281 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.539e-05/0.243, allocations: 21.7 kB / 436.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.2431, allocations: 326.8 kB / 436.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.925e-05/0.2432, allocations: 20 kB / 436.7 MB, free: 1.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.302e-05/0.2432, allocations: 19.98 kB / 436.7 MB, free: 1.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001323/0.2434, allocations: 52.78 kB / 436.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.2434, allocations: 256 / 436.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001834/0.2436, allocations: 89.56 kB / 436.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.2436, allocations: 4 kB / 436.8 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.2436, allocations: 4 kB / 436.9 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.2436, allocations: 4 kB / 436.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.2439, allocations: 39.97 kB / 436.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.2439, allocations: 4 kB / 436.9 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.685e-05/0.2439, allocations: 3.953 kB / 436.9 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.2439, allocations: 4 kB / 436.9 MB, free: 1.676 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 0.0001097/0.244, allocations: 121.8 kB / 437 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.693e-05/0.2441, allocations: 11.89 kB / 437 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.892e-05/0.2441, allocations: 8.406 kB / 437 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.2441, allocations: 11.94 kB / 437.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2441, allocations: 0 / 437.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2441, allocations: 0 / 437.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002279/0.2443, allocations: 172.7 kB / 437.2 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2443, allocations: 3.938 kB / 437.2 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001526/0.2445, allocations: 23.97 kB / 437.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2445, allocations: 0 / 437.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.2445, allocations: 0 / 437.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.2445, allocations: 4 kB / 437.3 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2445, allocations: 0 / 437.3 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003194/0.2448, allocations: 211.3 kB / 437.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.167e-05/0.2449, allocations: 11.83 kB / 437.5 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.2449, allocations: 4.031 kB / 437.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.584e-05/0.245, allocations: 0 / 437.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.819e-05/0.245, allocations: 7.984 kB / 437.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.245, allocations: 0 / 437.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001022/0.2451, allocations: 114.3 kB / 437.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2451, allocations: 4 kB / 437.6 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000239/0.2453, allocations: 15.95 kB / 437.6 MB, free: 0.8984 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.0005883/0.2459, allocations: 0.7281 MB / 438.3 MB, free: 148 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001748/0.2461, allocations: 56.03 kB / 438.4 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2461, allocations: 0 / 438.4 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.845e-05/0.2462, allocations: 27.98 kB / 438.4 MB, free: 64 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.2465, allocations: 18.64 kB / 438.4 MB, free: 48 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001975/0.2485, allocations: 1.583 MB / 440 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.2488, allocations: 0.7041 MB / 440.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.822e-05/0.2489, allocations: 7.984 kB / 440.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.351e-05/0.2489, allocations: 31.42 kB / 440.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2489, allocations: 0 / 440.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02816/0.2771, allocations: 2.374 MB / 443.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.417/8.695, allocations: 10.56 kB / 443.2 MB, free: 11.31 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.056350217666477] Failed to read output from testmodel.py, exit status != 0: ['time', 'firstOrder1.y', 'firstOrder2.y'] 8.769627938978374 8.798479964 8.553475912 Calling exit ...