Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.0016/0.0016, allocations: 116.9 kB / 18.49 MB, free: 4.535 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.00198/0.00198, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 230.5 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 59.91 kB / 373.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1261, allocations: 53.38 MB / 427.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003109/0.1293, allocations: 1.739 MB / 428.8 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.1305, allocations: 0.67 MB / 429.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.412e-05/0.1306, allocations: 3.938 kB / 429.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.1307, allocations: 15.86 kB / 429.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.264e-05/0.1308, allocations: 27.72 kB / 429.5 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000324/0.1311, allocations: 83.83 kB / 429.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000225/0.1313, allocations: 155.5 kB / 429.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.1315, allocations: 21.44 kB / 429.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.1316, allocations: 63.83 kB / 429.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.1317, allocations: 67.73 kB / 429.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.701e-05/0.1318, allocations: 15.94 kB / 429.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.542e-05/0.1318, allocations: 23.94 kB / 429.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.104e-05/0.1319, allocations: 35.91 kB / 430 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.669e-05/0.1319, allocations: 71.7 kB / 430 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002162/0.1322, allocations: 131.4 kB / 430.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1322, allocations: 4 kB / 430.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1322, allocations: 0 / 430.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.1322, allocations: 0 / 430.2 MB, free: 1.469 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.0007906/0.133, allocations: 490.3 kB / 430.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.133, allocations: 8.031 kB / 430.7 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.515e-05/0.133, allocations: 8.188 kB / 430.7 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.437e-05/0.1331, allocations: 42.75 kB / 430.7 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002261/0.1333, allocations: 32.81 kB / 430.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003055/0.1336, allocations: 220.6 kB / 431 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.858e-05/0.1336, allocations: 12.12 kB / 431 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.804e-05/0.1337, allocations: 8 kB / 431 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004538/0.1341, allocations: 169.4 kB / 431.1 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.1341, allocations: 0 / 431.1 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.1342, allocations: 4 kB / 431.1 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.1342, allocations: 0 / 431.1 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003448/0.1345, allocations: 95.91 kB / 431.2 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007162/0.1352, allocations: 424.5 kB / 431.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005903/0.1358, allocations: 186.4 kB / 431.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000286/0.1361, allocations: 88.78 kB / 431.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.1361, allocations: 3.938 kB / 431.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004349/0.1365, allocations: 175.2 kB / 432.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.1365, allocations: 0 / 432.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.001051/0.1376, allocations: 347.2 kB / 432.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/0.1377, allocations: 63.34 kB / 432.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.1378, allocations: 149.1 kB / 432.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.1378, allocations: 37.64 kB / 432.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.343e-05/0.1379, allocations: 108.5 kB / 432.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.619e-05/0.138, allocations: 43.67 kB / 432.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.995e-05/0.138, allocations: 45.69 kB / 432.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1382, allocations: 326.8 kB / 433.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.1383, allocations: 47.97 kB / 433.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.1385, allocations: 108.6 kB / 433.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002874/0.1388, allocations: 172.4 kB / 433.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.1388, allocations: 0 / 433.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003818/0.1391, allocations: 217.2 kB / 433.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1392, allocations: 6.5 kB / 433.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.1392, allocations: 7.938 kB / 433.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.1392, allocations: 4 kB / 433.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.1394, allocations: 31.92 kB / 433.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.1394, allocations: 4 kB / 433.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.337e-05/0.1395, allocations: 24.16 kB / 433.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.1395, allocations: 12 kB / 433.8 MB, free: 13.52 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.0001339/0.1396, allocations: 131.5 kB / 433.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.37e-05/0.1396, allocations: 19.89 kB / 434 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007414/0.1404, allocations: 278.2 kB / 434.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.1404, allocations: 0 / 434.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1404, allocations: 4 kB / 434.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1404, allocations: 0 / 434.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009951/0.1414, allocations: 0.5735 MB / 434.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1414, allocations: 4 kB / 434.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.904e-05/0.1415, allocations: 11.98 kB / 434.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.1415, allocations: 4 kB / 434.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.1415, allocations: 3.984 kB / 434.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1415, allocations: 0 / 434.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1415, allocations: 4 kB / 434.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.1426, allocations: 476.6 kB / 435.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.941e-05/0.1426, allocations: 96.97 kB / 435.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.1427, allocations: 8 kB / 435.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001902/0.1429, allocations: 27.97 kB / 435.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.133e-05/0.1429, allocations: 7.984 kB / 435.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.1429, allocations: 7.984 kB / 435.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.653e-05/0.143, allocations: 107.2 kB / 435.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.143, allocations: 4.062 kB / 435.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002728/0.1433, allocations: 32 kB / 435.6 MB, free: 11.64 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.001275/0.1446, allocations: 0.9781 MB / 436.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004607/0.145, allocations: 165.7 kB / 436.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.145, allocations: 0 / 436.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002581/0.1453, allocations: 83.81 kB / 436.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002475/0.1455, allocations: 12.31 kB / 436.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.1481, allocations: 1.971 MB / 438.8 MB, free: 8.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.1484, allocations: 0.7084 MB / 439.5 MB, free: 7.535 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.617e-05/0.1485, allocations: 13.08 kB / 439.5 MB, free: 7.523 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.687e-05/0.1485, allocations: 35.42 kB / 439.6 MB, free: 7.488 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1485, allocations: 0 / 439.6 MB, free: 7.488 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02088/0.1694, allocations: 2.815 MB / 442.4 MB, free: 4.762 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.402/8.571, allocations: 16.64 kB / 442.4 MB, free: 4.75 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema_fmu --startTime=0 --stopTime=1.5 --stepSize=1e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.602910646004602] 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.695256820996292 8.948321807 8.813558891 Calling exit ...