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.001584/0.001584, allocations: 120.1 kB / 18.5 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.001905/0.001905, allocations: 222.3 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.532/1.532, allocations: 230.4 MB / 254.7 MB, free: 15.02 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002129/0.002129, allocations: 59.89 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1236, allocations: 53.37 MB / 427.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003312/0.1269, allocations: 2.045 MB / 429.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.1283, allocations: 0.748 MB / 429.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.1284, allocations: 3.938 kB / 429.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.607e-05/0.1285, allocations: 23.73 kB / 429.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001587/0.1286, allocations: 51.5 kB / 429.9 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004053/0.129, allocations: 147.7 kB / 430.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004172/0.1294, allocations: 359 kB / 430.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.1296, allocations: 48.78 kB / 430.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002914/0.1299, allocations: 151.6 kB / 430.6 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002143/0.1301, allocations: 167.4 kB / 430.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.427e-05/0.1302, allocations: 28 kB / 430.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.768e-05/0.1302, allocations: 39.98 kB / 430.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.62e-05/0.1303, allocations: 71.73 kB / 430.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.1305, allocations: 139.3 kB / 431.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003842/0.1308, allocations: 298.8 kB / 431.3 MB, free: 408 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1308, allocations: 0 / 431.3 MB, free: 408 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1309, allocations: 3.938 kB / 431.3 MB, free: 404 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1309, allocations: 0 / 431.3 MB, free: 404 kB / 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.2501/0.381, allocations: 0.7396 MB / 432.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.513e-05/0.381, allocations: 9.781 kB / 432.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.986e-05/0.381, allocations: 8.719 kB / 432.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.505e-05/0.3811, allocations: 50.25 kB / 432.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004944/0.3816, allocations: 60 kB / 432.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004514/0.3821, allocations: 266.7 kB / 432.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.98e-05/0.3821, allocations: 24.08 kB / 432.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.826e-05/0.3822, allocations: 26.61 kB / 432.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009433/0.3831, allocations: 365.7 kB / 432.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.3831, allocations: 3.75 kB / 432.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.94e-05/0.3832, allocations: 6.953 kB / 432.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.3832, allocations: 4.188 kB / 432.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008237/0.384, allocations: 246.7 kB / 433.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.3851, allocations: 0.706 MB / 433.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008456/0.3859, allocations: 332.6 kB / 434.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005222/0.3865, allocations: 187 kB / 434.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.3865, allocations: 3.875 kB / 434.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008609/0.3873, allocations: 395.2 kB / 434.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.344e-06/0.3873, allocations: 0 / 434.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.002114/0.3895, allocations: 0.7577 MB / 435.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.589e-05/0.3895, allocations: 66.81 kB / 435.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.3897, allocations: 196.2 kB / 435.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.447e-05/0.3898, allocations: 45.08 kB / 435.8 MB, free: 9.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.3899, allocations: 136.5 kB / 435.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.39, allocations: 115.6 kB / 436 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.3901, allocations: 91.27 kB / 436.1 MB, free: 9.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.534e-05/0.3902, allocations: 342.8 kB / 436.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000452/0.3907, allocations: 158.9 kB / 436.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000494/0.3912, allocations: 241.8 kB / 436.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008316/0.392, allocations: 433.6 kB / 437.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.392, allocations: 2.031 kB / 437.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001133/0.3932, allocations: 0.5736 MB / 437.9 MB, free: 8.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.679e-05/0.3932, allocations: 95.25 kB / 437.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.3932, allocations: 3.141 kB / 438 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.3932, allocations: 3.844 kB / 438 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.3936, allocations: 82.55 kB / 438 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.3936, allocations: 8.625 kB / 438 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003375/0.394, allocations: 68.86 kB / 438.1 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-05/0.394, allocations: 21.84 kB / 438.1 MB, free: 8.477 MB / 350.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.0001482/0.3941, allocations: 168.2 kB / 438.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.103e-05/0.3942, allocations: 24.48 kB / 438.3 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.565e-05/0.3943, allocations: 36.42 kB / 438.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.3943, allocations: 3.469 kB / 438.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.998e-06/0.3943, allocations: 0 / 438.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.3943, allocations: 3.219 kB / 438.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003343/0.3946, allocations: 358.8 kB / 438.7 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.3946, allocations: 0 / 438.7 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002921/0.3949, allocations: 47.14 kB / 438.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.3949, allocations: 6.031 kB / 438.8 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.073e-05/0.395, allocations: 15.89 kB / 438.8 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.395, allocations: 1.953 kB / 438.8 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.395, allocations: 1.094 kB / 438.8 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001971/0.397, allocations: 0.846 MB / 439.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.397, allocations: 106.8 kB / 439.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.458e-05/0.3971, allocations: 20.47 kB / 439.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003714/0.3974, allocations: 56.02 kB / 439.8 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.3976, allocations: 51.38 kB / 439.9 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.145e-05/0.3976, allocations: 29.86 kB / 439.9 MB, free: 7.586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.509e-05/0.3977, allocations: 137.7 kB / 440 MB, free: 7.496 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3977, allocations: 0 / 440 MB, free: 7.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003347/0.3981, allocations: 83.83 kB / 440.1 MB, free: 7.48 MB / 350.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.002243/0.4003, allocations: 1.414 MB / 441.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.4016, allocations: 0.5866 MB / 442.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4016, allocations: 448 / 442.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006105/0.4022, allocations: 235 kB / 442.3 MB, free: 6.289 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.4025, allocations: 35.44 kB / 442.4 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004474/0.407, allocations: 3.254 MB / 445.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001789/0.4071, allocations: 0.7608 MB / 446.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001406/0.4073, allocations: 33.16 kB / 446.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.4074, allocations: 89.5 kB / 446.5 MB, free: 3.461 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4074, allocations: 0 / 446.5 MB, free: 3.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02513/0.4326, allocations: 6.894 MB / 453.4 MB, free: 1.594 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.839/9.272, allocations: 6.328 kB / 453.4 MB, free: 1.59 MB / 350.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 -r=Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema_res.mat --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 os._exit(0), Time elapsed: 11.892163937038276] 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', 'signalExtrema3.y_min', 'signalExtrema3.y_max', 'signalExtrema3.t_min', 'signalExtrema3.t_max'] 9.397896729002241 9.419229085 9.284555768 Calling exit ...