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.001272/0.001272, allocations: 120 kB / 18.5 MB, free: 4.539 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.001336/0.001336, allocations: 209.7 kB / 21.46 MB, free: 1.59 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.518/1.518, allocations: 230.5 MB / 254.8 MB, free: 15.09 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.002037/0.002037, allocations: 72.02 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1176, allocations: 53.32 MB / 427 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00344/0.1211, allocations: 1.708 MB / 428.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.1223, allocations: 0.5493 MB / 429.3 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.253e-05/0.1223, allocations: 0 / 429.3 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001241/0.1225, allocations: 23.8 kB / 429.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002088/0.1227, allocations: 23.78 kB / 429.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002285/0.1229, allocations: 51.94 kB / 429.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002013/0.1231, allocations: 103.6 kB / 429.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.1232, allocations: 29.05 kB / 429.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000148/0.1234, allocations: 51.77 kB / 429.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.591e-05/0.1235, allocations: 47.72 kB / 429.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.022e-05/0.1235, allocations: 8 kB / 429.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.737e-05/0.1235, allocations: 12 kB / 429.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.977e-05/0.1236, allocations: 19.92 kB / 429.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.765e-05/0.1237, allocations: 43.72 kB / 429.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001798/0.1238, allocations: 91.52 kB / 429.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1238, allocations: 0 / 429.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1238, allocations: 0 / 429.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1239, allocations: 0 / 429.7 MB, free: 2.027 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.0006736/0.1245, allocations: 418.9 kB / 430.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.1246, allocations: 12.03 kB / 430.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.519e-05/0.1246, allocations: 38.73 kB / 430.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001471/0.1248, allocations: 20.84 kB / 430.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003235/0.1251, allocations: 211.1 kB / 430.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.1251, allocations: 8.375 kB / 430.4 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.401e-05/0.1251, allocations: 7.938 kB / 430.4 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002078/0.1253, allocations: 85.59 kB / 430.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.1253, allocations: 4 kB / 430.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.1254, allocations: 4 kB / 430.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.1254, allocations: 4 kB / 430.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.1255, allocations: 35.97 kB / 430.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006204/0.1261, allocations: 411.9 kB / 431 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001607/0.1263, allocations: 66.59 kB / 431 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.82e-05/0.1263, allocations: 28.89 kB / 431.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.1264, allocations: 0 / 431.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.515e-05/0.1264, allocations: 38.48 kB / 431.1 MB, free: 492 kB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.332e-06/0.1264, allocations: 0 / 431.1 MB, free: 492 kB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003087/0.1267, allocations: 97.56 kB / 431.2 MB, free: 388 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.1268, allocations: 55.41 kB / 431.3 MB, free: 320 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.1269, allocations: 147.7 kB / 431.4 MB, free: 156 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.1269, allocations: 25.7 kB / 431.4 MB, free: 124 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.055e-05/0.127, allocations: 108.1 kB / 431.5 MB, free: 12 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.811e-05/0.1271, allocations: 20.12 kB / 431.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.158e-05/0.1271, allocations: 17.72 kB / 431.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.1272, allocations: 322.8 kB / 431.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.761e-05/0.1273, allocations: 27.92 kB / 431.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.3e-05/0.1274, allocations: 19.98 kB / 431.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.1275, allocations: 56.92 kB / 432 MB, free: 15.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1275, allocations: 0 / 432 MB, free: 15.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001734/0.1277, allocations: 89.38 kB / 432.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.1277, allocations: 7.938 kB / 432.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1277, allocations: 0 / 432.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.1277, allocations: 3.984 kB / 432.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.1279, allocations: 43.97 kB / 432.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.128, allocations: 4 kB / 432.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.417e-05/0.128, allocations: 3.953 kB / 432.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.128, allocations: 4 kB / 432.1 MB, free: 15.38 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 0.000123/0.1281, allocations: 117.8 kB / 432.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.42e-05/0.1282, allocations: 11.89 kB / 432.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.373e-05/0.1282, allocations: 16.3 kB / 432.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1282, allocations: 0 / 432.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1282, allocations: 0 / 432.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1282, allocations: 0 / 432.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002591/0.1285, allocations: 205.5 kB / 432.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1285, allocations: 0 / 432.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001551/0.1286, allocations: 23.98 kB / 432.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1286, allocations: 0 / 432.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.1287, allocations: 8.234 kB / 432.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1287, allocations: 0 / 432.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.1287, allocations: 4 kB / 432.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000342/0.129, allocations: 211.3 kB / 432.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.908e-05/0.1291, allocations: 85 kB / 432.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.1291, allocations: 4.031 kB / 432.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.015e-05/0.1292, allocations: 0 / 432.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.862e-05/0.1292, allocations: 7.984 kB / 432.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-06/0.1292, allocations: 0 / 432.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.59e-05/0.1293, allocations: 110.3 kB / 432.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1293, allocations: 0 / 432.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002313/0.1295, allocations: 19.95 kB / 432.9 MB, free: 14.48 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.0006364/0.1302, allocations: 0.732 MB / 433.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002084/0.1304, allocations: 47.92 kB / 433.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1304, allocations: 3.938 kB / 433.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.763e-05/0.1305, allocations: 24.05 kB / 433.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.1308, allocations: 30.42 kB / 433.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.1328, allocations: 1.574 MB / 435.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.1332, allocations: 0.7002 MB / 436.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.203e-05/0.1333, allocations: 11.98 kB / 436.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.366e-05/0.1333, allocations: 27.44 kB / 436.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1333, allocations: 0 / 436.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0269/0.1602, allocations: 2.351 MB / 438.4 MB, free: 8.926 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.794/7.954, allocations: 2.344 kB / 438.5 MB, free: 8.926 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 & 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.730017928872257] Failed to read output from testmodel.py, exit status != 0: ['time', 'firstOrder1.y', 'firstOrder2.y'] 8.02601684210822 8.214302241 8.088100492 Calling exit ...