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.00175/0.00175, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.002146/0.002146, allocations: 213.2 kB / 24.52 MB, free: 3.91 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.509/1.509, allocations: 230.5 MB / 258.2 MB, free: 7.781 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.002109/0.002109, allocations: 55.91 kB / 378.5 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.361/0.3631, allocations: 53.4 MB / 431.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003761/0.3668, allocations: 1.696 MB / 433.6 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.3683, allocations: 0.6311 MB / 434.2 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.3684, allocations: 3.938 kB / 434.2 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00016/0.3685, allocations: 15.86 kB / 434.2 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.135e-05/0.3686, allocations: 19.73 kB / 434.3 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003486/0.3689, allocations: 87.77 kB / 434.3 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002369/0.3692, allocations: 147.6 kB / 434.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.3693, allocations: 33.42 kB / 434.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001899/0.3695, allocations: 71.75 kB / 434.6 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/0.3696, allocations: 63.75 kB / 434.7 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.049e-05/0.3697, allocations: 12 kB / 434.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.372e-05/0.3697, allocations: 20 kB / 434.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.68e-05/0.3698, allocations: 35.89 kB / 434.7 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.227e-05/0.3699, allocations: 55.72 kB / 434.8 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.3701, allocations: 133.8 kB / 434.9 MB, free: 3.426 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3701, allocations: 0 / 434.9 MB, free: 3.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3701, allocations: 3.938 kB / 434.9 MB, free: 3.422 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.3701, allocations: 0 / 434.9 MB, free: 3.422 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.0008568/0.371, allocations: 425.2 kB / 435.3 MB, free: 2.965 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.371, allocations: 8.031 kB / 435.3 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.665e-05/0.3711, allocations: 8.125 kB / 435.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.608e-05/0.3711, allocations: 34.75 kB / 435.4 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002561/0.3714, allocations: 36.81 kB / 435.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.3717, allocations: 162.2 kB / 435.6 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/0.3717, allocations: 12.12 kB / 435.6 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.181e-05/0.3718, allocations: 19.98 kB / 435.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.3723, allocations: 161.5 kB / 435.8 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.3723, allocations: 0 / 435.8 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.062e-05/0.3723, allocations: 0 / 435.8 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.3723, allocations: 4 kB / 435.8 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003475/0.3726, allocations: 103.8 kB / 435.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007378/0.3734, allocations: 359.7 kB / 436.2 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005887/0.374, allocations: 186.4 kB / 436.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/0.3742, allocations: 88.7 kB / 436.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.3743, allocations: 4 kB / 436.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004906/0.3748, allocations: 179.2 kB / 436.7 MB, free: 1.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.3748, allocations: 0 / 436.7 MB, free: 1.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001113/0.3759, allocations: 344.5 kB / 437 MB, free: 1.184 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.77e-05/0.376, allocations: 67.27 kB / 437.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.3761, allocations: 145.8 kB / 437.2 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/0.3761, allocations: 29.7 kB / 437.2 MB, free: 0.918 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.3762, allocations: 108.5 kB / 437.3 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.266e-05/0.3763, allocations: 43.67 kB / 437.4 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.844e-05/0.3764, allocations: 45.7 kB / 437.4 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.3766, allocations: 334.8 kB / 437.8 MB, free: 388 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.3767, allocations: 39.98 kB / 437.8 MB, free: 348 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/0.3769, allocations: 117.1 kB / 437.9 MB, free: 200 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000342/0.3773, allocations: 184.4 kB / 438.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3773, allocations: 0 / 438.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003896/0.3777, allocations: 197.6 kB / 438.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.3777, allocations: 12 kB / 438.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.3777, allocations: 7.922 kB / 438.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.103e-05/0.3778, allocations: 4 kB / 438.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/0.378, allocations: 39.92 kB / 438.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.378, allocations: 4 kB / 438.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.713e-05/0.3781, allocations: 15.88 kB / 438.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.6e-05/0.3781, allocations: 12 kB / 438.4 MB, free: 15.69 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.0001777/0.3783, allocations: 131.5 kB / 438.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.387e-05/0.3783, allocations: 15.84 kB / 438.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007922/0.3791, allocations: 286.1 kB / 438.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.3791, allocations: 3.984 kB / 438.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.3791, allocations: 4 kB / 438.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.3791, allocations: 0 / 438.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.3802, allocations: 0.5363 MB / 439.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3802, allocations: 4 kB / 439.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.3803, allocations: 15.98 kB / 439.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.3803, allocations: 0 / 439.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.398e-05/0.3803, allocations: 8 kB / 439.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.3803, allocations: 4 kB / 439.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3804, allocations: 0 / 439.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.3814, allocations: 482.4 kB / 439.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.403e-05/0.3814, allocations: 11.94 kB / 439.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.306e-05/0.3815, allocations: 8 kB / 439.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.3817, allocations: 35.95 kB / 439.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.365e-05/0.3817, allocations: 7.984 kB / 439.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.3817, allocations: 11.98 kB / 439.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.903e-05/0.3818, allocations: 110.9 kB / 440 MB, free: 13.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3818, allocations: 0 / 440 MB, free: 13.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.3821, allocations: 31.94 kB / 440.1 MB, free: 13.93 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.001217/0.3833, allocations: 0.9855 MB / 441 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005009/0.3838, allocations: 151.7 kB / 441.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3838, allocations: 0 / 441.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002662/0.3841, allocations: 96.48 kB / 441.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.3844, allocations: 8 kB / 441.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00291/0.3873, allocations: 1.963 MB / 443.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.71e-05/0.3874, allocations: 93.62 kB / 443.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.727e-05/0.3875, allocations: 17.06 kB / 443.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.521e-05/0.3875, allocations: 39.42 kB / 443.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3875, allocations: 0 / 443.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02667/0.4142, allocations: 3.047 MB / 446.5 MB, free: 7.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.38, allocations: 5.328 kB / 446.5 MB, free: 7.461 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: 14.132830368936993] 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'] 11.543081616051495 11.557150537 11.183935525 Calling exit ...