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.002065/0.002065, allocations: 112.2 kB / 18.49 MB, free: 4.539 MB / 14.72 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.002178/0.002178, allocations: 218.9 kB / 21.46 MB, free: 1.586 MB / 14.72 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 1.492/1.492, allocations: 230.6 MB / 254.8 MB, free: 15.21 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+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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 47.92 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09967/0.1011, allocations: 53.32 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003402/0.1045, allocations: 2.05 MB / 429.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.1059, allocations: 0.7519 MB / 429.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.926e-05/0.106, allocations: 3.938 kB / 429.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.337e-05/0.1061, allocations: 23.72 kB / 429.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001512/0.1062, allocations: 47.53 kB / 429.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004013/0.1066, allocations: 151.7 kB / 430 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004069/0.1071, allocations: 355 kB / 430.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.1072, allocations: 48.78 kB / 430.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.1075, allocations: 151.6 kB / 430.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002275/0.1077, allocations: 167.4 kB / 430.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.72e-05/0.1078, allocations: 28 kB / 430.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.257e-05/0.1078, allocations: 32 kB / 430.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.146e-05/0.1079, allocations: 71.8 kB / 430.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.1081, allocations: 143.3 kB / 431 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003481/0.1084, allocations: 294.8 kB / 431.3 MB, free: 492 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1084, allocations: 0 / 431.3 MB, free: 492 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1084, allocations: 4 kB / 431.3 MB, free: 488 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1084, allocations: 3.938 kB / 431.3 MB, free: 484 kB / 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.001614/0.11, allocations: 0.7506 MB / 432.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1101, allocations: 8.031 kB / 432.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.401e-05/0.1101, allocations: 8.188 kB / 432.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.735e-05/0.1102, allocations: 50.73 kB / 432.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000335/0.1105, allocations: 60.7 kB / 432.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003871/0.1109, allocations: 264.9 kB / 432.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.224e-05/0.1109, allocations: 20.36 kB / 432.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.031e-05/0.111, allocations: 32.12 kB / 432.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000864/0.1119, allocations: 358.8 kB / 432.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.1119, allocations: 4 kB / 432.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.1119, allocations: 11.98 kB / 432.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.1119, allocations: 4 kB / 432.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008189/0.1127, allocations: 243.8 kB / 433.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.1139, allocations: 0.711 MB / 433.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009314/0.1148, allocations: 340.9 kB / 434.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005553/0.1153, allocations: 184.3 kB / 434.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.1154, allocations: 0 / 434.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009028/0.1163, allocations: 398.8 kB / 434.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.874e-06/0.1163, allocations: 4 kB / 434.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=41): time 0.00203/0.1183, allocations: 0.7464 MB / 435.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.934e-05/0.1184, allocations: 75.38 kB / 435.5 MB, free: 12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002/0.1186, allocations: 191.8 kB / 435.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.574e-05/0.1186, allocations: 45.69 kB / 435.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.795e-05/0.1187, allocations: 137 kB / 435.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.1188, allocations: 111.2 kB / 436 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.119, allocations: 94.23 kB / 436.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1192, allocations: 338.8 kB / 436.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004703/0.1196, allocations: 157 kB / 436.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004958/0.1201, allocations: 241.2 kB / 436.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009079/0.121, allocations: 443.9 kB / 437.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.121, allocations: 7.938 kB / 437.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.00118/0.1222, allocations: 0.5608 MB / 437.8 MB, free: 9.586 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.182e-05/0.1223, allocations: 93.09 kB / 437.9 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.1223, allocations: 7.938 kB / 437.9 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1223, allocations: 4 kB / 437.9 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000363/0.1227, allocations: 75.81 kB / 438 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.1227, allocations: 4 kB / 438 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003521/0.123, allocations: 75.69 kB / 438.1 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.1231, allocations: 16 kB / 438.1 MB, free: 9.297 MB / 366.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.0002206/0.1233, allocations: 169.6 kB / 438.3 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.661e-05/0.1234, allocations: 31.78 kB / 438.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.878e-05/0.1235, allocations: 38.98 kB / 438.3 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.1235, allocations: 4 kB / 438.3 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1235, allocations: 0 / 438.3 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1235, allocations: 3.984 kB / 438.3 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003865/0.1239, allocations: 353.2 kB / 438.7 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.1239, allocations: 4 kB / 438.7 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002815/0.1241, allocations: 47.89 kB / 438.7 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.1242, allocations: 4 kB / 438.7 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/0.1242, allocations: 11.98 kB / 438.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1242, allocations: 0 / 438.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1242, allocations: 0 / 438.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002052/0.1262, allocations: 0.8527 MB / 439.6 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.09e-05/0.1263, allocations: 108.9 kB / 439.7 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.5e-05/0.1264, allocations: 12 kB / 439.7 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003532/0.1267, allocations: 55.92 kB / 439.8 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.1269, allocations: 55.88 kB / 439.8 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.705e-05/0.1269, allocations: 27.97 kB / 439.9 MB, free: 7.438 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001265/0.127, allocations: 137.5 kB / 440 MB, free: 7.305 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.127, allocations: 0 / 440 MB, free: 7.305 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003477/0.1274, allocations: 79.94 kB / 440.1 MB, free: 7.227 MB / 366.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.002428/0.1298, allocations: 1.414 MB / 441.5 MB, free: 5.785 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.1311, allocations: 0.592 MB / 442.1 MB, free: 5.156 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1311, allocations: 0 / 442.1 MB, free: 5.156 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006275/0.1318, allocations: 227.5 kB / 442.3 MB, free: 4.934 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.1321, allocations: 50.66 kB / 442.3 MB, free: 4.887 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005268/0.1374, allocations: 3.25 MB / 445.6 MB, free: 1.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003998/0.1378, allocations: 0.7567 MB / 446.4 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001428/0.1379, allocations: 38.89 kB / 446.4 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001796/0.1381, allocations: 91.39 kB / 446.5 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of SimCode: time 8.71e-07/0.1381, allocations: 0 / 446.5 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2098/0.3479, allocations: 6.869 MB / 453.3 MB, free: 24.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.496/8.844, allocations: 18.16 kB / 453.4 MB, free: 24.63 MB / 366.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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: 11.312487925053574] 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'] 8.988636739028152 9.012710007 8.89962602 Calling exit ...