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.001551/0.001551, allocations: 120.4 kB / 18.5 MB, free: 4.578 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.001676/0.001676, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.494/1.494, allocations: 230.5 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] 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.001944/0.001944, allocations: 75.83 kB / 373.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1119, allocations: 53.32 MB / 426.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003455/0.1153, allocations: 2.033 MB / 428.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.1167, allocations: 0.748 MB / 429.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.1168, allocations: 3.938 kB / 429.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.216e-05/0.1168, allocations: 23.67 kB / 429.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.117, allocations: 51.58 kB / 429.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003963/0.1174, allocations: 151.7 kB / 429.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004001/0.1178, allocations: 347.1 kB / 430.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.1179, allocations: 48.78 kB / 430.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002695/0.1182, allocations: 147.6 kB / 430.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002631/0.1185, allocations: 167.4 kB / 430.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.735e-05/0.1185, allocations: 36 kB / 430.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.52e-05/0.1186, allocations: 32 kB / 430.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.326e-05/0.1187, allocations: 75.72 kB / 430.7 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001544/0.1188, allocations: 143.3 kB / 430.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003551/0.1192, allocations: 294.8 kB / 431.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1192, allocations: 4 kB / 431.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1192, allocations: 3.938 kB / 431.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1192, allocations: 0 / 431.2 MB, free: 0.543 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.196/0.3152, allocations: 0.7355 MB / 431.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.3153, allocations: 9.25 kB / 431.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.336e-05/0.3153, allocations: 55.5 kB / 432 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003942/0.3157, allocations: 62.48 kB / 432 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/0.3161, allocations: 266.6 kB / 432.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.042e-05/0.3162, allocations: 22.42 kB / 432.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.154e-05/0.3163, allocations: 26.12 kB / 432.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008145/0.3171, allocations: 358.8 kB / 432.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.3171, allocations: 3.938 kB / 432.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.357e-05/0.3171, allocations: 9.406 kB / 432.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.3171, allocations: 4.719 kB / 432.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007907/0.3179, allocations: 246.1 kB / 432.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.319, allocations: 0.7067 MB / 433.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008305/0.3199, allocations: 335 kB / 434 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000475/0.3203, allocations: 187.4 kB / 434.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.3204, allocations: 9.875 kB / 434.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008813/0.3213, allocations: 393.6 kB / 434.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.756e-06/0.3213, allocations: 0 / 434.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.002103/0.3234, allocations: 0.7487 MB / 435.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.551e-05/0.3234, allocations: 69.23 kB / 435.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.3236, allocations: 200.6 kB / 435.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.127e-05/0.3237, allocations: 42.28 kB / 435.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.769e-05/0.3238, allocations: 139.5 kB / 435.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.152e-05/0.3238, allocations: 116.5 kB / 435.9 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/0.324, allocations: 90.41 kB / 435.9 MB, free: 9.895 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.927e-05/0.3241, allocations: 340.6 kB / 436.3 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004152/0.3245, allocations: 158.1 kB / 436.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004462/0.3249, allocations: 237.5 kB / 436.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008252/0.3258, allocations: 438.9 kB / 437.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.3258, allocations: 1.125 kB / 437.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001243/0.327, allocations: 0.5721 MB / 437.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.514e-05/0.3271, allocations: 95.78 kB / 437.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.3271, allocations: 6.703 kB / 437.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.627e-05/0.3271, allocations: 4.562 kB / 437.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003813/0.3275, allocations: 77.45 kB / 437.8 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.3275, allocations: 6.234 kB / 437.8 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003588/0.3279, allocations: 69.8 kB / 437.9 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.691e-05/0.3279, allocations: 23.55 kB / 437.9 MB, free: 8.738 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.0001915/0.3281, allocations: 168.2 kB / 438.1 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.486e-05/0.3282, allocations: 25.44 kB / 438.1 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.695e-05/0.3283, allocations: 35.33 kB / 438.2 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.3283, allocations: 4.969 kB / 438.2 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.3283, allocations: 0 / 438.2 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3283, allocations: 1.969 kB / 438.2 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003345/0.3286, allocations: 357.7 kB / 438.5 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3286, allocations: 4 kB / 438.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.3289, allocations: 45.39 kB / 438.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3289, allocations: 2.281 kB / 438.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.557e-05/0.3289, allocations: 15.53 kB / 438.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.3289, allocations: 2.234 kB / 438.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3289, allocations: 1.219 kB / 438.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002181/0.3311, allocations: 0.8536 MB / 439.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.924e-05/0.3312, allocations: 106.7 kB / 439.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.549e-05/0.3313, allocations: 15.7 kB / 439.6 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003752/0.3317, allocations: 58.03 kB / 439.6 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/0.3318, allocations: 48.98 kB / 439.7 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.195e-05/0.3319, allocations: 33.97 kB / 439.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000148/0.332, allocations: 136 kB / 439.8 MB, free: 7.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.332, allocations: 0 / 439.8 MB, free: 7.754 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004363/0.3325, allocations: 79.58 kB / 439.9 MB, free: 7.742 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.002664/0.3351, allocations: 1.419 MB / 441.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001478/0.3366, allocations: 0.5865 MB / 441.9 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3366, allocations: 1.062 kB / 441.9 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006282/0.3372, allocations: 229.3 kB / 442.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000381/0.3376, allocations: 38.75 kB / 442.2 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005196/0.3428, allocations: 3.251 MB / 445.4 MB, free: 4.496 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002463/0.3431, allocations: 0.7559 MB / 446.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001789/0.3432, allocations: 40.59 kB / 446.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001532/0.3434, allocations: 89.55 kB / 446.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3434, allocations: 1.156 kB / 446.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0351/0.3785, allocations: 6.868 MB / 453.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.511/8.89, allocations: 5.094 kB / 453.2 MB, free: 1.918 MB / 350.1 MB " [Timeout remaining time 651] (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 --stepSize=0.0001 --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: 11.204053932335228] Failed to read output from testmodel.py, exit status != 0: 8.960496384184808 8.975998411 8.853351904 Calling exit ...