Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.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: 118.6 kB / 18.5 MB, free: 4.566 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.001369/0.001369, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.404/1.404, 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.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 63.91 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1047, allocations: 53.32 MB / 426.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003302/0.108, allocations: 2.036 MB / 428.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001407/0.1094, allocations: 0.7519 MB / 429.5 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.1095, allocations: 3.938 kB / 429.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.431e-05/0.1096, allocations: 23.67 kB / 429.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001519/0.1097, allocations: 55.52 kB / 429.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000405/0.1101, allocations: 147.7 kB / 429.7 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000395/0.1105, allocations: 351.1 kB / 430 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.1107, allocations: 44.78 kB / 430.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002589/0.1109, allocations: 151.6 kB / 430.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.1111, allocations: 163.4 kB / 430.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.071e-05/0.1112, allocations: 32 kB / 430.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.58e-05/0.1112, allocations: 36 kB / 430.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.599e-05/0.1113, allocations: 79.78 kB / 430.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.1115, allocations: 135.2 kB / 430.6 MB, free: 1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003496/0.1118, allocations: 298.9 kB / 430.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1118, allocations: 0 / 430.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1118, allocations: 0 / 430.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1118, allocations: 7.875 kB / 430.9 MB, free: 0.6992 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.00148/0.1133, allocations: 0.7389 MB / 431.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.1133, allocations: 12.03 kB / 431.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.011e-05/0.1134, allocations: 58.66 kB / 431.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003248/0.1137, allocations: 60.72 kB / 431.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003768/0.1141, allocations: 264.9 kB / 432.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.921e-05/0.1141, allocations: 20.38 kB / 432.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.266e-05/0.1142, allocations: 32.36 kB / 432.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007927/0.115, allocations: 358.9 kB / 432.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.115, allocations: 0 / 432.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.115, allocations: 4 kB / 432.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.115, allocations: 4 kB / 432.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007573/0.1158, allocations: 255.7 kB / 432.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.1169, allocations: 0.7072 MB / 433.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008453/0.1177, allocations: 332.9 kB / 433.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005057/0.1182, allocations: 185.5 kB / 433.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.1183, allocations: 4 kB / 434 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008387/0.1191, allocations: 403 kB / 434.3 MB, free: 13.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.494e-06/0.1191, allocations: 0 / 434.3 MB, free: 13.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=41): time 0.00187/0.121, allocations: 0.7465 MB / 435.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.809e-05/0.121, allocations: 67.39 kB / 435.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001909/0.1212, allocations: 203.8 kB / 435.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.354e-05/0.1213, allocations: 37.7 kB / 435.4 MB, free: 12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.1214, allocations: 137 kB / 435.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.994e-05/0.1215, allocations: 115.2 kB / 435.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.1216, allocations: 90.23 kB / 435.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1218, allocations: 346.8 kB / 436.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00041/0.1222, allocations: 161 kB / 436.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004519/0.1226, allocations: 233.2 kB / 436.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008099/0.1234, allocations: 444.9 kB / 436.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1234, allocations: 0 / 436.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001088/0.1245, allocations: 0.5763 MB / 437.5 MB, free: 9.809 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.597e-05/0.1246, allocations: 85.11 kB / 437.5 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1246, allocations: 0 / 437.5 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.713e-05/0.1246, allocations: 7.938 kB / 437.6 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003441/0.125, allocations: 83.81 kB / 437.6 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.125, allocations: 4 kB / 437.6 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003275/0.1253, allocations: 67.75 kB / 437.7 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.719e-05/0.1254, allocations: 19.98 kB / 437.7 MB, free: 9.527 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 46 (signalExtrema3.t_min,$PRE.signalExtrema3.t_min,signalExtrema3.t_max,$PRE.signalExtrema3.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,$whenCondition5,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,sawTooth.count,$PRE.sawTooth.count,sawTooth.T_start,$PRE.sawTooth.T_start,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,signalExtrema3.y_max,$PRE.signalExtrema3.y_max,signalExtrema3.y_min,$PRE.signalExtrema3.y_min,sawTooth1.count,$PRE.sawTooth1.count,sawTooth1.T_start,$PRE.sawTooth1.T_start,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 3 * 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.0001866/0.1255, allocations: 173.6 kB / 437.9 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.152e-05/0.1256, allocations: 31.78 kB / 437.9 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.175e-05/0.1257, allocations: 34.98 kB / 438 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.1257, allocations: 4 kB / 438 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.1257, allocations: 0 / 438 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.1257, allocations: 4 kB / 438 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003644/0.1261, allocations: 353.2 kB / 438.3 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1261, allocations: 0 / 438.3 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002704/0.1263, allocations: 43.95 kB / 438.4 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1263, allocations: 0 / 438.4 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.108e-05/0.1264, allocations: 19.97 kB / 438.4 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.1264, allocations: 4 kB / 438.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1264, allocations: 0 / 438.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001879/0.1283, allocations: 0.8526 MB / 439.2 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.679e-05/0.1283, allocations: 104.9 kB / 439.3 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.811e-05/0.1284, allocations: 20.03 kB / 439.4 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003533/0.1288, allocations: 59.94 kB / 439.4 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.1289, allocations: 51.92 kB / 439.5 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-05/0.1289, allocations: 27.98 kB / 439.5 MB, free: 7.664 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001111/0.129, allocations: 133.5 kB / 439.6 MB, free: 7.535 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.129, allocations: 0 / 439.6 MB, free: 7.535 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003269/0.1294, allocations: 83.98 kB / 439.7 MB, free: 7.453 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (signalExtrema3.x,signalExtrema1.x,signalExtrema2.x) * Number of discrete variables: 28 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,sawTooth1.T_start,sawTooth1.count,signalExtrema3.y_min,signalExtrema3.y_max,signalExtrema3.t_min,signalExtrema3.t_max,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,sawTooth.T_start,sawTooth.count,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: 18 (sawTooth.count,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.y_min,signalExtrema1.t_min,signalExtrema1.u,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.y_min,signalExtrema2.t_min,signalExtrema2.u,pulse.count,sawTooth1.count,signalExtrema3.y_max,signalExtrema3.t_max,signalExtrema3.y_min,signalExtrema3.t_min,signalExtrema3.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.002245/0.1316, allocations: 1.414 MB / 441.1 MB, free: 6.012 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.1328, allocations: 0.5826 MB / 441.7 MB, free: 5.395 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1328, allocations: 0 / 441.7 MB, free: 5.395 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005679/0.1334, allocations: 235.9 kB / 441.9 MB, free: 5.164 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003168/0.1337, allocations: 41.97 kB / 442 MB, free: 5.125 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004918/0.1386, allocations: 3.257 MB / 445.2 MB, free: 1.707 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.139, allocations: 0.7565 MB / 446 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001518/0.1391, allocations: 38.95 kB / 446 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.1393, allocations: 87.41 kB / 446.1 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1393, allocations: 0 / 446.1 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2277/0.367, allocations: 6.847 MB / 453 MB, free: 24.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.568/8.935, allocations: 5.031 kB / 453 MB, free: 24.64 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.238376868888736] Failed to read output from testmodel.py, exit status != 0: 9.006517089903355 9.019864061 8.90542825 Calling exit ...