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.001325/0.001325, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001411/0.001411, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.398/1.398, allocations: 230.2 MB / 254.5 MB, free: 15.39 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 67.89 kB / 373.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1024, allocations: 53.33 MB / 426.7 MB, free: 5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002987/0.1054, allocations: 1.73 MB / 428.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.1065, allocations: 0.6739 MB / 429.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.071e-05/0.1066, allocations: 3.938 kB / 429.1 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.1067, allocations: 15.86 kB / 429.1 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.626e-05/0.1068, allocations: 23.78 kB / 429.1 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002928/0.1071, allocations: 87.77 kB / 429.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002085/0.1073, allocations: 155.5 kB / 429.3 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.1074, allocations: 25.42 kB / 429.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001599/0.1075, allocations: 59.83 kB / 429.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.1076, allocations: 63.75 kB / 429.5 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.836e-05/0.1077, allocations: 15.98 kB / 429.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.859e-05/0.1077, allocations: 27.94 kB / 429.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.81e-05/0.1078, allocations: 35.91 kB / 429.6 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.237e-05/0.1078, allocations: 63.7 kB / 429.6 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002073/0.1081, allocations: 139.4 kB / 429.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.1081, allocations: 4 kB / 429.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1081, allocations: 0 / 429.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.1081, allocations: 0 / 429.8 MB, free: 1.871 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.0007107/0.1088, allocations: 494.3 kB / 430.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.1088, allocations: 12.03 kB / 430.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.373e-05/0.1089, allocations: 34.75 kB / 430.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002104/0.1091, allocations: 36.81 kB / 430.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003019/0.1094, allocations: 220.6 kB / 430.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/0.1094, allocations: 12.36 kB / 430.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.758e-05/0.1095, allocations: 19.92 kB / 430.6 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004097/0.1099, allocations: 161.4 kB / 430.7 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1099, allocations: 0 / 430.7 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.1099, allocations: 0 / 430.7 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.1099, allocations: 8 kB / 430.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00032/0.1102, allocations: 99.91 kB / 430.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006797/0.1109, allocations: 420.5 kB / 431.3 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005425/0.1114, allocations: 182.4 kB / 431.4 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002771/0.1117, allocations: 88.78 kB / 431.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.1117, allocations: 4 kB / 431.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004245/0.1122, allocations: 179.1 kB / 431.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.1122, allocations: 0 / 431.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009252/0.1131, allocations: 339.2 kB / 432 MB, free: 15.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.1131, allocations: 63.33 kB / 432.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.1133, allocations: 145.8 kB / 432.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.1133, allocations: 29.7 kB / 432.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.111e-05/0.1134, allocations: 108.5 kB / 432.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.414e-05/0.1134, allocations: 43.67 kB / 432.4 MB, free: 15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.967e-05/0.1135, allocations: 45.7 kB / 432.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.1136, allocations: 330.8 kB / 432.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.1137, allocations: 47.97 kB / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001615/0.1139, allocations: 112.4 kB / 432.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000276/0.1142, allocations: 176.4 kB / 433.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1142, allocations: 0 / 433.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003686/0.1145, allocations: 197.6 kB / 433.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.1146, allocations: 15.98 kB / 433.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.1146, allocations: 3.938 kB / 433.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.1146, allocations: 7.938 kB / 433.3 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001659/0.1148, allocations: 35.92 kB / 433.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.1148, allocations: 7.938 kB / 433.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.492e-05/0.1149, allocations: 23.88 kB / 433.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.1149, allocations: 15.98 kB / 433.4 MB, free: 13.92 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.0001182/0.115, allocations: 131.5 kB / 433.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.574e-05/0.115, allocations: 15.91 kB / 433.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006838/0.1157, allocations: 278.2 kB / 433.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.1157, allocations: 0 / 433.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1157, allocations: 0 / 433.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1157, allocations: 7.984 kB / 433.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009243/0.1166, allocations: 0.5701 MB / 434.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1167, allocations: 3.984 kB / 434.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.969e-05/0.1168, allocations: 19.98 kB / 434.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.1168, allocations: 0 / 434.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.1168, allocations: 11.98 kB / 434.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1168, allocations: 0 / 434.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1168, allocations: 0 / 434.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009653/0.1177, allocations: 471.1 kB / 434.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.534e-05/0.1178, allocations: 92.95 kB / 435 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.127e-05/0.1179, allocations: 11.98 kB / 435 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.118, allocations: 32.03 kB / 435 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.1181, allocations: 7.984 kB / 435 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.1181, allocations: 11.98 kB / 435.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.22e-05/0.1182, allocations: 106.6 kB / 435.2 MB, free: 12.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1182, allocations: 0 / 435.2 MB, free: 12.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002715/0.1184, allocations: 31.98 kB / 435.2 MB, free: 12.04 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.001229/0.1197, allocations: 0.9798 MB / 436.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004311/0.1201, allocations: 155.9 kB / 436.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1201, allocations: 0 / 436.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000232/0.1203, allocations: 84.56 kB / 436.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002328/0.1206, allocations: 14.31 kB / 436.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002471/0.123, allocations: 1.979 MB / 438.4 MB, free: 8.672 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.1234, allocations: 0.7045 MB / 439.1 MB, free: 7.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.805e-05/0.1234, allocations: 13.08 kB / 439.1 MB, free: 7.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.163e-05/0.1235, allocations: 39.42 kB / 439.2 MB, free: 7.891 MB / 366.1 MB Notification: Performance of SimCode: time 6.22e-07/0.1235, allocations: 4 kB / 439.2 MB, free: 7.887 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02625/0.1498, allocations: 2.767 MB / 441.9 MB, free: 5.195 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.119/8.269, allocations: 14.05 kB / 441.9 MB, free: 5.188 MB / 366.1 MB " [Timeout remaining time 652] (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 --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 sys.exit(0), Time elapsed: 11.887106823269278] Failed to read output from testmodel.py, exit status != 0: 8.338000346906483 8.598207058 8.487475603 Calling exit ...