Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00186/0.00186, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002119/0.002119, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.527/1.527, allocations: 230.6 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 47.92 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1125, allocations: 53.33 MB / 427 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003605/0.1161, allocations: 1.739 MB / 428.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.1177, allocations: 0.6817 MB / 429.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.1178, allocations: 0 / 429.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.118, allocations: 11.81 kB / 429.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.77e-05/0.1181, allocations: 23.78 kB / 429.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004706/0.1185, allocations: 83.77 kB / 429.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000282/0.1188, allocations: 147.6 kB / 429.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.119, allocations: 29.36 kB / 429.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002195/0.1192, allocations: 63.78 kB / 429.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.1194, allocations: 67.73 kB / 429.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.799e-05/0.1194, allocations: 12 kB / 429.9 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.1195, allocations: 31.98 kB / 429.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.278e-05/0.1196, allocations: 35.84 kB / 429.9 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.485e-05/0.1197, allocations: 63.7 kB / 430 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003/0.12, allocations: 135.4 kB / 430.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.12, allocations: 0 / 430.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.12, allocations: 0 / 430.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.12, allocations: 0 / 430.1 MB, free: 1.641 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.001015/0.121, allocations: 0.4904 MB / 430.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.121, allocations: 8.031 kB / 430.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.664e-05/0.1211, allocations: 4.188 kB / 430.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.612e-05/0.1211, allocations: 38.73 kB / 430.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003571/0.1215, allocations: 32.83 kB / 430.7 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004165/0.1219, allocations: 216.7 kB / 430.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.234e-05/0.1219, allocations: 16.12 kB / 430.9 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.974e-05/0.122, allocations: 12 kB / 430.9 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007262/0.1227, allocations: 169.4 kB / 431.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.1227, allocations: 0 / 431.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.31e-05/0.1228, allocations: 4 kB / 431.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.1228, allocations: 7.984 kB / 431.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005266/0.1233, allocations: 99.91 kB / 431.2 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009354/0.1242, allocations: 412.5 kB / 431.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006409/0.1249, allocations: 186.4 kB / 431.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003176/0.1252, allocations: 88.78 kB / 431.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.1252, allocations: 4 kB / 431.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004806/0.1257, allocations: 171.2 kB / 432.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.724e-06/0.1257, allocations: 0 / 432.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.001185/0.1269, allocations: 345.3 kB / 432.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.668e-05/0.127, allocations: 59.34 kB / 432.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.1271, allocations: 156 kB / 432.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.1271, allocations: 29.7 kB / 432.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.614e-05/0.1272, allocations: 100.5 kB / 432.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.85e-05/0.1273, allocations: 47.61 kB / 432.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.108e-05/0.1273, allocations: 49.69 kB / 432.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.1275, allocations: 326.8 kB / 433.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.1276, allocations: 39.97 kB / 433.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.1278, allocations: 124.4 kB / 433.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003198/0.1281, allocations: 176.4 kB / 433.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.1281, allocations: 4 kB / 433.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000399/0.1285, allocations: 197.3 kB / 433.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.1286, allocations: 10.19 kB / 433.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1286, allocations: 3.938 kB / 433.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.431e-05/0.1286, allocations: 7.938 kB / 433.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.1288, allocations: 44.2 kB / 433.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.1288, allocations: 7.984 kB / 433.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.8e-05/0.1289, allocations: 11.89 kB / 433.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.1289, allocations: 12 kB / 433.8 MB, free: 13.69 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.0001424/0.129, allocations: 135.5 kB / 433.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.128e-05/0.1291, allocations: 15.89 kB / 433.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007758/0.1299, allocations: 287.4 kB / 434.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1299, allocations: 0 / 434.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1299, allocations: 0 / 434.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.1299, allocations: 0 / 434.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.1309, allocations: 0.5699 MB / 434.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1309, allocations: 4 kB / 434.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.131, allocations: 19.92 kB / 434.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.131, allocations: 0 / 434.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.1311, allocations: 11.98 kB / 434.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1311, allocations: 4 kB / 434.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.1311, allocations: 3.984 kB / 434.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.1321, allocations: 467.1 kB / 435.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.322e-05/0.1322, allocations: 96.97 kB / 435.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.098e-05/0.1322, allocations: 8 kB / 435.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.1324, allocations: 23.97 kB / 435.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.797e-05/0.1325, allocations: 20.05 kB / 435.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.1325, allocations: 7.984 kB / 435.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.719e-05/0.1326, allocations: 114.6 kB / 435.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1326, allocations: 0 / 435.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002952/0.1329, allocations: 28 kB / 435.6 MB, free: 11.8 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.001297/0.1342, allocations: 0.972 MB / 436.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004774/0.1347, allocations: 159.8 kB / 436.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.1347, allocations: 4 kB / 436.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002655/0.1349, allocations: 86.55 kB / 436.8 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002473/0.1352, allocations: 12.55 kB / 436.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002513/0.1377, allocations: 1.965 MB / 438.7 MB, free: 8.441 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.138, allocations: 0.7084 MB / 439.5 MB, free: 7.707 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.931e-05/0.1381, allocations: 13.08 kB / 439.5 MB, free: 7.695 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.98e-05/0.1382, allocations: 39.42 kB / 439.5 MB, free: 7.656 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1382, allocations: 0 / 439.5 MB, free: 7.656 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03567/0.1738, allocations: 2.815 MB / 442.3 MB, free: 4.945 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.123/8.297, allocations: 10.11 kB / 442.3 MB, free: 4.938 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateSignalExtrema_fmu --startTime=0 --stopTime=1.5 --stepSize=1e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.23741536802845] 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.422769814031199 8.618648507 8.496464988 Calling exit ...