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.001895/0.001895, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001521/0.001521, allocations: 216.5 kB / 24.53 MB, free: 4.012 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.604/1.604, allocations: 230.5 MB / 258.2 MB, free: 8.004 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.001879/0.001879, allocations: 59.91 kB / 378.6 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4501/0.4519, allocations: 53.42 MB / 432 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.004689/0.4566, allocations: 1.743 MB / 433.7 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.4584, allocations: 0.6739 MB / 434.4 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.4586, allocations: 4 kB / 434.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000204/0.4588, allocations: 19.8 kB / 434.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.249e-05/0.4588, allocations: 23.73 kB / 434.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004633/0.4593, allocations: 83.77 kB / 434.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002953/0.4596, allocations: 151.5 kB / 434.7 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.4597, allocations: 29.61 kB / 434.7 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.4599, allocations: 59.84 kB / 434.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.4601, allocations: 67.67 kB / 434.8 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.98e-05/0.4601, allocations: 12 kB / 434.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.292e-05/0.4602, allocations: 31.98 kB / 434.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.514e-05/0.4602, allocations: 27.91 kB / 434.9 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.611e-05/0.4603, allocations: 67.7 kB / 434.9 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002737/0.4606, allocations: 142.8 kB / 435.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.4606, allocations: 0 / 435.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4606, allocations: 0 / 435.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.4606, allocations: 0 / 435.1 MB, free: 3.551 MB / 334.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.000808/0.4614, allocations: 414.2 kB / 435.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.4615, allocations: 8.031 kB / 435.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.052e-05/0.4615, allocations: 12.17 kB / 435.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.272e-05/0.4615, allocations: 34.75 kB / 435.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000243/0.4618, allocations: 36.81 kB / 435.6 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002925/0.4621, allocations: 162.2 kB / 435.7 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.4621, allocations: 12.12 kB / 435.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.101e-05/0.4622, allocations: 12 kB / 435.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004811/0.4626, allocations: 169.5 kB / 435.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.4626, allocations: 0 / 435.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.297e-05/0.4627, allocations: 4 kB / 435.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.4627, allocations: 4 kB / 435.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003643/0.463, allocations: 107.8 kB / 436 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007769/0.4638, allocations: 387.6 kB / 436.4 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006176/0.4644, allocations: 186.4 kB / 436.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000294/0.4647, allocations: 92.41 kB / 436.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.4648, allocations: 7.938 kB / 436.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005166/0.4653, allocations: 175.1 kB / 436.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.823e-06/0.4653, allocations: 0 / 436.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001047/0.4663, allocations: 344.9 kB / 437.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.788e-05/0.4664, allocations: 59.34 kB / 437.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.4665, allocations: 149.8 kB / 437.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.4666, allocations: 33.7 kB / 437.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.711e-05/0.4667, allocations: 112.5 kB / 437.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.055e-05/0.4667, allocations: 35.69 kB / 437.6 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.659e-05/0.4668, allocations: 49.69 kB / 437.6 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.467, allocations: 326.8 kB / 438 MB, free: 500 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.4671, allocations: 43.97 kB / 438 MB, free: 456 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.4673, allocations: 125.1 kB / 438.1 MB, free: 300 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/0.4676, allocations: 172.4 kB / 438.3 MB, free: 96 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4676, allocations: 0 / 438.3 MB, free: 96 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003956/0.468, allocations: 205.3 kB / 438.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.468, allocations: 10.66 kB / 438.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.468, allocations: 3.938 kB / 438.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.716e-05/0.468, allocations: 8 kB / 438.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.4682, allocations: 39.92 kB / 438.6 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.4682, allocations: 8.266 kB / 438.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.271e-05/0.4683, allocations: 19.83 kB / 438.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.972e-05/0.4683, allocations: 12 kB / 438.6 MB, free: 15.79 MB / 350.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.0001641/0.4685, allocations: 135.6 kB / 438.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.006e-05/0.4685, allocations: 11.91 kB / 438.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007712/0.4693, allocations: 286.1 kB / 439 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.4693, allocations: 0 / 439 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.4693, allocations: 0 / 439 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4693, allocations: 0 / 439 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.4703, allocations: 0.5441 MB / 439.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.4703, allocations: 0 / 439.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.4704, allocations: 15.98 kB / 439.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.4704, allocations: 0 / 439.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.4705, allocations: 11.98 kB / 439.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4705, allocations: 0 / 439.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4705, allocations: 0 / 439.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.4715, allocations: 475.1 kB / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.378e-05/0.4715, allocations: 15.92 kB / 440.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.4716, allocations: 8 kB / 440.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.4718, allocations: 27.91 kB / 440.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.691e-05/0.4718, allocations: 19.91 kB / 440.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.4718, allocations: 7.938 kB / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.48e-05/0.4719, allocations: 114.3 kB / 440.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4719, allocations: 0 / 440.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002784/0.4722, allocations: 31.94 kB / 440.3 MB, free: 14.03 MB / 350.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.001294/0.4735, allocations: 0.9732 MB / 441.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004609/0.474, allocations: 163.8 kB / 441.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.474, allocations: 0 / 441.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002619/0.4742, allocations: 87.92 kB / 441.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.4745, allocations: 4 kB / 441.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.4771, allocations: 1.959 MB / 443.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.4774, allocations: 0.7162 MB / 444.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.179e-05/0.4774, allocations: 9.094 kB / 444.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.025e-05/0.4775, allocations: 43.41 kB / 444.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4775, allocations: 0 / 444.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02615/0.5037, allocations: 3.007 MB / 447.2 MB, free: 6.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.11, allocations: 8.047 kB / 447.2 MB, free: 6.988 MB / 350.1 MB " [Timeout remaining time 648] (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: 15.050881134986412] 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'] 12.269622510008048 12.297930928 11.831955868 Calling exit ...