Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001392/0.001392, allocations: 109.7 kB / 19.74 MB, free: 2.586 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.001551/0.001551, allocations: 221 kB / 22.92 MB, free: 5.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.26/1.26, allocations: 230.5 MB / 256.4 MB, free: 8.277 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 67.89 kB / 376.1 MB, free: 4.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2314, allocations: 53.32 MB / 429.4 MB, free: 7.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.002913/0.2343, allocations: 2.047 MB / 431.5 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.2354, allocations: 0.748 MB / 432.2 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.303e-05/0.2355, allocations: 3.938 kB / 432.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.029e-05/0.2356, allocations: 23.67 kB / 432.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001327/0.2357, allocations: 55.52 kB / 432.3 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003517/0.236, allocations: 143.7 kB / 432.4 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00036/0.2364, allocations: 351.2 kB / 432.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.2365, allocations: 40.8 kB / 432.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002356/0.2368, allocations: 159.5 kB / 433 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001991/0.237, allocations: 163.4 kB / 433.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.377e-05/0.237, allocations: 35.94 kB / 433.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.017e-05/0.2371, allocations: 36 kB / 433.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.132e-05/0.2372, allocations: 75.73 kB / 433.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.2373, allocations: 139.3 kB / 433.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003088/0.2376, allocations: 291.2 kB / 433.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2376, allocations: 7.875 kB / 433.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2376, allocations: 0 / 433.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.2376, allocations: 0 / 433.7 MB, free: 3.16 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001414/0.239, allocations: 0.7506 MB / 434.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/0.239, allocations: 8.031 kB / 434.4 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.442e-05/0.2391, allocations: 54.73 kB / 434.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003179/0.2394, allocations: 64.7 kB / 434.6 MB, free: 2.207 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003062/0.2397, allocations: 256.9 kB / 434.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.456e-05/0.2398, allocations: 24.36 kB / 434.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.987e-05/0.2398, allocations: 24.38 kB / 434.9 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007888/0.2406, allocations: 362.9 kB / 435.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2406, allocations: 4 kB / 435.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.2407, allocations: 7.984 kB / 435.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.2407, allocations: 4 kB / 435.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007823/0.2414, allocations: 251.7 kB / 435.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009819/0.2424, allocations: 0.7032 MB / 436.2 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008838/0.2433, allocations: 344.9 kB / 436.5 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005333/0.2438, allocations: 177.6 kB / 436.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.2439, allocations: 4 kB / 436.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008061/0.2447, allocations: 402.8 kB / 437.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.784e-06/0.2447, allocations: 0 / 437.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001846/0.2465, allocations: 0.7465 MB / 437.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.2466, allocations: 63.41 kB / 437.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.2467, allocations: 203.8 kB / 438.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.275e-05/0.2468, allocations: 45.62 kB / 438.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.508e-05/0.2469, allocations: 136.9 kB / 438.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.887e-05/0.247, allocations: 115.2 kB / 438.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.2471, allocations: 94.23 kB / 438.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002154/0.2473, allocations: 334.8 kB / 438.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004156/0.2477, allocations: 157 kB / 439 MB, free: 13.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000486/0.2482, allocations: 241.2 kB / 439.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008775/0.2491, allocations: 441.2 kB / 439.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2491, allocations: 0 / 439.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001104/0.2502, allocations: 0.572 MB / 440.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.135e-05/0.2503, allocations: 89.09 kB / 440.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.2503, allocations: 4 kB / 440.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.2503, allocations: 4 kB / 440.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003397/0.2506, allocations: 79.81 kB / 440.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.2506, allocations: 8 kB / 440.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003258/0.251, allocations: 71.69 kB / 440.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.075e-05/0.251, allocations: 23.92 kB / 440.5 MB, free: 11.99 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.0001786/0.2512, allocations: 177.6 kB / 440.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.047e-05/0.2512, allocations: 23.86 kB / 440.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.692e-05/0.2513, allocations: 34.98 kB / 440.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.2513, allocations: 4 kB / 440.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.2513, allocations: 0 / 440.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.2513, allocations: 7.984 kB / 440.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003362/0.2517, allocations: 357.2 kB / 441.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2517, allocations: 0 / 441.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002688/0.2519, allocations: 39.95 kB / 441.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.2519, allocations: 4 kB / 441.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.252, allocations: 19.92 kB / 441.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.252, allocations: 4 kB / 441.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.252, allocations: 0 / 441.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.2539, allocations: 0.8487 MB / 442 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.106e-05/0.254, allocations: 108.9 kB / 442.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.177e-05/0.254, allocations: 12 kB / 442.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003389/0.2544, allocations: 63.92 kB / 442.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.2545, allocations: 47.94 kB / 442.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.845e-05/0.2545, allocations: 27.97 kB / 442.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001059/0.2546, allocations: 137.5 kB / 442.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2546, allocations: 3.938 kB / 442.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003054/0.255, allocations: 80 kB / 442.5 MB, free: 9.914 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.002258/0.2572, allocations: 1.422 MB / 443.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.2584, allocations: 0.5841 MB / 444.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2584, allocations: 0 / 444.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005998/0.259, allocations: 235.9 kB / 444.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.2593, allocations: 31.98 kB / 444.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004758/0.264, allocations: 3.27 MB / 448 MB, free: 4.148 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.2644, allocations: 0.7527 MB / 448.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001209/0.2645, allocations: 34.97 kB / 448.8 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.2646, allocations: 87.39 kB / 448.9 MB, free: 3.25 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2646, allocations: 0 / 448.9 MB, free: 3.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03098/0.2956, allocations: 6.902 MB / 455.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.499/7.795, allocations: 11.19 kB / 455.8 MB, free: 12.43 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.797222649001924]