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.001755/0.001755, 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.002151/0.002151, allocations: 213.9 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.408/1.408, allocations: 230.6 MB / 258.3 MB, free: 8.055 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.001961/0.001961, allocations: 64.77 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2475, allocations: 53.37 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003055/0.2506, allocations: 1.716 MB / 433.6 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.2517, allocations: 0.5571 MB / 434.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.07e-05/0.2518, allocations: 4 kB / 434.2 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.2519, allocations: 19.73 kB / 434.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.2521, allocations: 27.78 kB / 434.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.2524, allocations: 55.92 kB / 434.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.2525, allocations: 107.6 kB / 434.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.2527, allocations: 21.3 kB / 434.4 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.2528, allocations: 51.83 kB / 434.5 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.2529, allocations: 47.72 kB / 434.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.995e-05/0.2529, allocations: 4 kB / 434.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.803e-05/0.253, allocations: 12 kB / 434.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.592e-05/0.2531, allocations: 23.91 kB / 434.5 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.643e-05/0.2531, allocations: 43.73 kB / 434.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001748/0.2533, allocations: 91.09 kB / 434.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2533, allocations: 0 / 434.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2533, allocations: 0 / 434.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.2533, allocations: 0 / 434.7 MB, free: 4.102 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.0005936/0.2539, allocations: 339.1 kB / 435 MB, free: 3.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.2539, allocations: 12.03 kB / 435 MB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.061e-05/0.254, allocations: 42.73 kB / 435.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.2541, allocations: 20.84 kB / 435.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002941/0.2544, allocations: 150.9 kB / 435.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.2544, allocations: 4.375 kB / 435.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.701e-05/0.2545, allocations: 11.94 kB / 435.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.2547, allocations: 92.48 kB / 435.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.2547, allocations: 0 / 435.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.2547, allocations: 0 / 435.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.2547, allocations: 4 kB / 435.3 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001206/0.2548, allocations: 43.97 kB / 435.4 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005778/0.2554, allocations: 371 kB / 435.7 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001572/0.2555, allocations: 62.56 kB / 435.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.069e-05/0.2556, allocations: 28.92 kB / 435.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.49e-05/0.2556, allocations: 3.938 kB / 435.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.2557, allocations: 34.56 kB / 435.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.2557, allocations: 3.938 kB / 435.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003109/0.256, allocations: 105.5 kB / 436 MB, free: 2.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.256, allocations: 51.41 kB / 436 MB, free: 2.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.2561, allocations: 144.3 kB / 436.2 MB, free: 2.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.2562, allocations: 25.7 kB / 436.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.044e-05/0.2562, allocations: 104.1 kB / 436.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.401e-05/0.2563, allocations: 27.92 kB / 436.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-05/0.2563, allocations: 17.72 kB / 436.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.2565, allocations: 322.8 kB / 436.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.589e-05/0.2565, allocations: 27.98 kB / 436.7 MB, free: 1.895 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.047e-05/0.2566, allocations: 19.98 kB / 436.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.2567, allocations: 48.78 kB / 436.8 MB, free: 1.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2567, allocations: 0 / 436.8 MB, free: 1.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001754/0.2569, allocations: 97.5 kB / 436.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.2569, allocations: 4 kB / 436.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.2569, allocations: 0 / 436.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.2569, allocations: 4 kB / 436.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.2571, allocations: 39.97 kB / 436.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.2571, allocations: 4.219 kB / 436.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.182e-05/0.2572, allocations: 3.953 kB / 436.9 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.2572, allocations: 8 kB / 436.9 MB, free: 1.66 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.0001183/0.2573, allocations: 117.8 kB / 437 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.294e-05/0.2574, allocations: 11.89 kB / 437 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.253e-05/0.2574, allocations: 12.39 kB / 437 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.2574, allocations: 8 kB / 437.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.2574, allocations: 0 / 437.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.2574, allocations: 3.984 kB / 437.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002108/0.2576, allocations: 165 kB / 437.2 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2576, allocations: 3.938 kB / 437.2 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001463/0.2578, allocations: 23.98 kB / 437.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2578, allocations: 0 / 437.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.2578, allocations: 8 kB / 437.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.2578, allocations: 3.984 kB / 437.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2578, allocations: 0 / 437.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002891/0.2581, allocations: 207.3 kB / 437.5 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.778e-05/0.2581, allocations: 19.84 kB / 437.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.2581, allocations: 4 kB / 437.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.967e-05/0.2582, allocations: 0 / 437.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.161e-05/0.2582, allocations: 4 kB / 437.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.2582, allocations: 3.984 kB / 437.5 MB, free: 1.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.502e-05/0.2583, allocations: 110.5 kB / 437.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2583, allocations: 4.062 kB / 437.6 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002265/0.2586, allocations: 19.95 kB / 437.6 MB, free: 0.8789 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.0005614/0.2591, allocations: 0.7241 MB / 438.3 MB, free: 132 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000179/0.2593, allocations: 51.97 kB / 438.4 MB, free: 80 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2593, allocations: 0 / 438.4 MB, free: 80 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.031e-05/0.2594, allocations: 23.98 kB / 438.4 MB, free: 56 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.2597, allocations: 19.92 kB / 438.4 MB, free: 36 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001918/0.2616, allocations: 1.586 MB / 440 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.262, allocations: 0.708 MB / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.326e-05/0.262, allocations: 8.25 kB / 440.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.094e-05/0.2621, allocations: 31.42 kB / 440.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2621, allocations: 0 / 440.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02842/0.2905, allocations: 2.367 MB / 443.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.961/8.251, allocations: 3.938 kB / 443.1 MB, free: 11.31 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 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.645668574143201] Failed to read output from testmodel.py, exit status != 0: ['time', 'firstOrder1.y', 'firstOrder2.y'] 8.323181976098567 8.352056574 8.093351439 Calling exit ...