Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 91.67 kB / 20.68 MB, free: 3.871 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 166 kB / 23.95 MB, free: 0.6016 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9107/0.9107, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 3.938 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.014e-05/1.161e-05, allocations: 6.219 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.001818/0.001829, allocations: 1.948 MB / 326.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008119/0.002641, allocations: 0.7245 MB / 327.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.744e-05/0.002719, allocations: 3.938 kB / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.253e-05/0.002761, allocations: 23.67 kB / 327.3 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001077/0.002869, allocations: 47.53 kB / 327.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003005/0.003169, allocations: 147.6 kB / 327.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002517/0.003421, allocations: 359 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.003527, allocations: 40.98 kB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002259/0.003753, allocations: 211.5 kB / 328 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.00387, allocations: 135.7 kB / 328.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.359e-05/0.003904, allocations: 28 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.876e-05/0.003952, allocations: 36 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.215e-05/0.003994, allocations: 71.72 kB / 328.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.977e-05/0.004064, allocations: 99.78 kB / 328.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002407/0.004305, allocations: 339 kB / 328.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.352e-06/0.004306, allocations: 0 / 328.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.004307, allocations: 7.938 kB / 328.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.004311, allocations: 0 / 328.7 MB, free: 11.72 MB / 298.7 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.0008223/0.005134, allocations: 0.6709 MB / 329.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.005164, allocations: 8.031 kB / 329.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.136e-05/0.005206, allocations: 54.72 kB / 329.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.005375, allocations: 56.72 kB / 329.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002248/0.0056, allocations: 210.2 kB / 329.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.005624, allocations: 24.36 kB / 329.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/0.005665, allocations: 24.38 kB / 329.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005979/0.006263, allocations: 363.3 kB / 330.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.006272, allocations: 192 / 330.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.224e-05/0.006294, allocations: 11.92 kB / 330.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.437e-06/0.006303, allocations: 8 kB / 330.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/0.006715, allocations: 247.8 kB / 330.4 MB, free: 9.973 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006502/0.007365, allocations: 0.601 MB / 331 MB, free: 9.324 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004671/0.007832, allocations: 340.9 kB / 331.3 MB, free: 8.973 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002734/0.008105, allocations: 185.6 kB / 331.5 MB, free: 8.785 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.008123, allocations: 4 kB / 331.5 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004652/0.008588, allocations: 391.1 kB / 331.9 MB, free: 8.387 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.393e-06/0.008589, allocations: 3.938 kB / 331.9 MB, free: 8.383 MB / 298.7 MB Notification: Performance of matching and sorting (n=41): time 0.001032/0.009621, allocations: 0.7503 MB / 332.7 MB, free: 7.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.009663, allocations: 71.39 kB / 332.7 MB, free: 7.543 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.009772, allocations: 191.9 kB / 332.9 MB, free: 7.348 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.0098, allocations: 41.7 kB / 333 MB, free: 7.301 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.454e-05/0.009865, allocations: 129 kB / 333.1 MB, free: 7.172 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.053e-05/0.009925, allocations: 115.1 kB / 333.2 MB, free: 7.059 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.01001, allocations: 90.17 kB / 333.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.564e-05/0.01009, allocations: 346.8 kB / 333.6 MB, free: 6.617 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002625/0.01036, allocations: 242.2 kB / 333.9 MB, free: 6.363 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002805/0.01064, allocations: 322.6 kB / 334.2 MB, free: 5.996 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004639/0.0111, allocations: 447.5 kB / 334.6 MB, free: 5.516 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.0111, allocations: 0 / 334.6 MB, free: 5.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0006412/0.01174, allocations: 0.6604 MB / 335.3 MB, free: 4.812 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.058e-05/0.01179, allocations: 89.09 kB / 335.4 MB, free: 4.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.01179, allocations: 7.875 kB / 335.4 MB, free: 4.699 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.0118, allocations: 4 kB / 335.4 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.01197, allocations: 75.89 kB / 335.4 MB, free: 4.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.01199, allocations: 12.2 kB / 335.5 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.01214, allocations: 63.73 kB / 335.5 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.01216, allocations: 16 kB / 335.5 MB, free: 4.531 MB / 298.7 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.0001137/0.01228, allocations: 177.6 kB / 335.7 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.002e-05/0.01231, allocations: 23.86 kB / 335.7 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.638e-05/0.01235, allocations: 34.98 kB / 335.8 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.01236, allocations: 4 kB / 335.8 MB, free: 4.285 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.01236, allocations: 7.984 kB / 335.8 MB, free: 4.277 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.01237, allocations: 4 kB / 335.8 MB, free: 4.273 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.01255, allocations: 276.4 kB / 336.1 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.01255, allocations: 0 / 336.1 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001265/0.01267, allocations: 47.89 kB / 336.1 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.01268, allocations: 0 / 336.1 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.227e-05/0.0127, allocations: 15.97 kB / 336.1 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.0127, allocations: 4 kB / 336.1 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.0127, allocations: 0 / 336.1 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.01409, allocations: 0.8565 MB / 337 MB, free: 3.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.371e-05/0.01411, allocations: 23.8 kB / 337 MB, free: 2.996 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.316e-05/0.01416, allocations: 19.97 kB / 337 MB, free: 2.977 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.01431, allocations: 55.94 kB / 337.1 MB, free: 2.922 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.297e-05/0.0144, allocations: 51.91 kB / 337.1 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.01443, allocations: 27.98 kB / 337.1 MB, free: 2.844 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.278e-05/0.01451, allocations: 141.5 kB / 337.3 MB, free: 2.707 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01451, allocations: 3.938 kB / 337.3 MB, free: 2.703 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001968/0.0147, allocations: 83.94 kB / 337.4 MB, free: 2.621 MB / 298.7 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.001247/0.01595, allocations: 1.403 MB / 338.8 MB, free: 1.188 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006795/0.01663, allocations: 0.6673 MB / 339.4 MB, free: 476 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.01663, allocations: 0 / 339.4 MB, free: 476 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003324/0.01696, allocations: 239.9 kB / 339.7 MB, free: 236 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002085/0.01717, allocations: 31.98 kB / 339.7 MB, free: 204 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003003/0.02018, allocations: 3.596 MB / 343.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.614e-05/0.02025, allocations: 147 kB / 343.4 MB, free: 12.21 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.93e-05/0.02034, allocations: 39.12 kB / 343.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.02044, allocations: 88.47 kB / 343.6 MB, free: 12.09 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.02044, allocations: 4 kB / 343.6 MB, free: 12.09 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.03959, allocations: 7.861 MB / 351.4 MB, free: 4.359 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.024/7.064, allocations: 13.91 kB / 351.5 MB, free: 4.352 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 8.859277048148215] 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'] 7.147206267341971 7.158186609 7.151200625 Calling exit ...