Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.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.001723/0.001723, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.00213/0.00213, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.538/1.538, allocations: 230.5 MB / 254.8 MB, free: 15.11 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.DemonstrateSignalExtrema,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateSignalExtrema",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.001994/0.001994, allocations: 71.83 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1161, allocations: 53.32 MB / 427 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003245/0.1193, allocations: 1.737 MB / 428.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.1209, allocations: 0.6778 MB / 429.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.121, allocations: 0 / 429.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.1211, allocations: 23.8 kB / 429.4 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.816e-05/0.1212, allocations: 15.81 kB / 429.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003561/0.1215, allocations: 79.77 kB / 429.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00023/0.1217, allocations: 155.6 kB / 429.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.1219, allocations: 21.44 kB / 429.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001818/0.1221, allocations: 71.75 kB / 429.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.1222, allocations: 59.75 kB / 429.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.885e-05/0.1222, allocations: 12 kB / 429.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.678e-05/0.1223, allocations: 35.98 kB / 429.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.596e-05/0.1223, allocations: 31.84 kB / 429.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.956e-05/0.1224, allocations: 63.72 kB / 430 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.1227, allocations: 135.4 kB / 430.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1227, allocations: 0 / 430.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1227, allocations: 0 / 430.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.1227, allocations: 0 / 430.1 MB, free: 1.672 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0007998/0.1235, allocations: 498.3 kB / 430.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.1235, allocations: 8.031 kB / 430.6 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.215e-05/0.1236, allocations: 50.67 kB / 430.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002426/0.1238, allocations: 28.83 kB / 430.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003105/0.1241, allocations: 219.3 kB / 430.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.1242, allocations: 8.375 kB / 430.9 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.093e-05/0.1242, allocations: 11.94 kB / 430.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004934/0.1247, allocations: 169.4 kB / 431.1 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.1247, allocations: 0 / 431.1 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.251e-05/0.1248, allocations: 7.984 kB / 431.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1248, allocations: 0 / 431.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003612/0.1251, allocations: 99.84 kB / 431.2 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008201/0.1259, allocations: 420.6 kB / 431.6 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006353/0.1266, allocations: 190.4 kB / 431.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.1269, allocations: 84.78 kB / 431.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.1269, allocations: 0 / 431.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000499/0.1274, allocations: 180.9 kB / 432 MB, free: 15.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.1274, allocations: 0 / 432 MB, free: 15.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.001099/0.1285, allocations: 349.3 kB / 432.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.544e-05/0.1286, allocations: 63.33 kB / 432.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.1287, allocations: 145.8 kB / 432.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.1287, allocations: 33.7 kB / 432.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.161e-05/0.1288, allocations: 108.5 kB / 432.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.023e-05/0.1289, allocations: 43.62 kB / 432.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.455e-05/0.129, allocations: 45.7 kB / 432.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1291, allocations: 322.8 kB / 433.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.1292, allocations: 47.97 kB / 433.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.1294, allocations: 112.5 kB / 433.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003097/0.1297, allocations: 172.4 kB / 433.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1297, allocations: 0 / 433.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000397/0.1301, allocations: 209.3 kB / 433.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1301, allocations: 4 kB / 433.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.1302, allocations: 4 kB / 433.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.178e-05/0.1302, allocations: 11.88 kB / 433.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/0.1304, allocations: 35.91 kB / 433.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.1304, allocations: 4 kB / 433.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.1305, allocations: 20.17 kB / 433.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.1305, allocations: 12 kB / 433.7 MB, free: 13.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,$whenCondition2,$whenCondition1,signalExtrema2.y_max,$PRE.signalExtrema2.y_max,signalExtrema2.y_min,$PRE.signalExtrema2.y_min,signalExtrema1.y_max,$PRE.signalExtrema1.y_max,signalExtrema1.y_min,$PRE.signalExtrema1.y_min) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001376/0.1306, allocations: 135.5 kB / 433.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.059e-05/0.1307, allocations: 15.91 kB / 433.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007515/0.1314, allocations: 283.3 kB / 434.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.1314, allocations: 8 kB / 434.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1314, allocations: 0 / 434.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1314, allocations: 0 / 434.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.1325, allocations: 0.5706 MB / 434.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1325, allocations: 4 kB / 434.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.1326, allocations: 11.98 kB / 434.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.1326, allocations: 7.938 kB / 434.8 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.37e-05/0.1326, allocations: 4 kB / 434.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.1327, allocations: 0 / 434.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1327, allocations: 4 kB / 434.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.1337, allocations: 473.5 kB / 435.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.519e-05/0.1338, allocations: 92.98 kB / 435.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.018e-05/0.1338, allocations: 8 kB / 435.3 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/0.134, allocations: 31.95 kB / 435.4 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.1341, allocations: 7.984 kB / 435.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.1341, allocations: 8 kB / 435.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.382e-05/0.1342, allocations: 111.4 kB / 435.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1342, allocations: 64 / 435.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002985/0.1345, allocations: 32 kB / 435.5 MB, free: 11.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (sine.phi) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_min,signalExtrema1.t_max,signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_min,signalExtrema2.t_max) * Number of discrete states: 8 (signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.t_min,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.t_min) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001304/0.1358, allocations: 0.9806 MB / 436.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005199/0.1363, allocations: 164.3 kB / 436.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1363, allocations: 4.062 kB / 436.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002701/0.1366, allocations: 87.86 kB / 436.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002578/0.1369, allocations: 4 kB / 436.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002824/0.1397, allocations: 1.965 MB / 438.7 MB, free: 8.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.1401, allocations: 0.7123 MB / 439.4 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.965e-05/0.1401, allocations: 17.02 kB / 439.5 MB, free: 7.727 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.063e-05/0.1402, allocations: 39.42 kB / 439.5 MB, free: 7.688 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1402, allocations: 0 / 439.5 MB, free: 7.688 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02847/0.1687, allocations: 2.781 MB / 442.3 MB, free: 5.012 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.185/8.354, allocations: 0 / 442.3 MB, free: 5.012 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.420248021837324] Failed to read output from testmodel.py, exit status != 0: ['time', 'signalExtrema1.y_min', 'signalExtrema1.y_max', 'signalExtrema1.t_min', 'signalExtrema1.t_max', 'signalExtrema2.y_min', 'signalExtrema2.y_max', 'signalExtrema2.t_min', 'signalExtrema2.t_max'] 8.422827584203333 8.641025739 8.516046574 Calling exit ...