Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.001276/0.001276, allocations: 121.6 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.001388/0.001388, allocations: 205 kB / 21.45 MB, free: 1.629 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.442/1.442, allocations: 230.5 MB / 254.8 MB, free: 15.1 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.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",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.001932/0.001932, allocations: 71.83 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0994/0.1013, allocations: 53.33 MB / 427 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003521/0.1049, allocations: 1.916 MB / 428.9 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.1071, allocations: 1.321 MB / 430.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.1072, allocations: 7.938 kB / 430.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002982/0.1075, allocations: 63.67 kB / 430.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003693/0.1078, allocations: 139.4 kB / 430.5 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006111/0.1084, allocations: 230.4 kB / 430.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002503/0.1087, allocations: 183.5 kB / 430.9 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.1088, allocations: 25.55 kB / 430.9 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.1089, allocations: 83.62 kB / 431 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.1091, allocations: 91.59 kB / 431.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.342e-05/0.1091, allocations: 12 kB / 431.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.1092, allocations: 67.95 kB / 431.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.097e-05/0.1093, allocations: 59.77 kB / 431.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.459e-05/0.1094, allocations: 83.41 kB / 431.3 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003621/0.1098, allocations: 246.9 kB / 431.5 MB, free: 272 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.378e-06/0.1098, allocations: 8 kB / 431.5 MB, free: 264 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1098, allocations: 0 / 431.5 MB, free: 264 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.1098, allocations: 0 / 431.5 MB, free: 264 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.1908/0.3006, allocations: 0.5402 MB / 432.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.3006, allocations: 10.56 kB / 432.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.165e-05/0.3007, allocations: 43.5 kB / 432.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.972e-05/0.3008, allocations: 31.03 kB / 432.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004293/0.3012, allocations: 297.2 kB / 432.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.3012, allocations: 6.578 kB / 432.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.3012, allocations: 9.484 kB / 432.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004137/0.3016, allocations: 170.1 kB / 432.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.3017, allocations: 4.812 kB / 432.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.3017, allocations: 6.078 kB / 432.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.3017, allocations: 4 kB / 432.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001398/0.3018, allocations: 40.53 kB / 432.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005815/0.3024, allocations: 472.8 kB / 433.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002795/0.3027, allocations: 140 kB / 433.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.3028, allocations: 56.75 kB / 433.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.25e-05/0.3028, allocations: 4.953 kB / 433.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002022/0.303, allocations: 105.1 kB / 433.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.743e-06/0.303, allocations: 0.8125 kB / 433.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004292/0.3035, allocations: 166.1 kB / 433.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.464e-05/0.3035, allocations: 192.7 kB / 433.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003336/0.3039, allocations: 335.4 kB / 434.1 MB, free: 9.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.3039, allocations: 31.67 kB / 434.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.667e-05/0.304, allocations: 132.7 kB / 434.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.304, allocations: 23.77 kB / 434.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.333e-05/0.304, allocations: 30.55 kB / 434.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.079e-05/0.3041, allocations: 339.4 kB / 434.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.587e-05/0.3042, allocations: 24.36 kB / 434.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.712e-05/0.3043, allocations: 104.1 kB / 434.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.3044, allocations: 97.58 kB / 434.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.3044, allocations: 6.125 kB / 434.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002269/0.3046, allocations: 141.3 kB / 435 MB, free: 9.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.3047, allocations: 9.062 kB / 435 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3047, allocations: 2.469 kB / 435 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.3047, allocations: 3.312 kB / 435 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.3048, allocations: 19.23 kB / 435.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3048, allocations: 4.781 kB / 435.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.711e-05/0.3049, allocations: 12.66 kB / 435.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.3049, allocations: 11.05 kB / 435.1 MB, free: 9.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001128/0.305, allocations: 162.5 kB / 435.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.315e-05/0.3051, allocations: 72.59 kB / 435.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.721e-05/0.3051, allocations: 28.8 kB / 435.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.3051, allocations: 2.625 kB / 435.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3051, allocations: 1.156 kB / 435.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.3051, allocations: 1.703 kB / 435.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001738/0.3053, allocations: 252.1 kB / 435.6 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.3053, allocations: 1.094 kB / 435.6 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.245e-05/0.3054, allocations: 17.89 kB / 435.6 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3054, allocations: 6.062 kB / 435.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.3054, allocations: 2.906 kB / 435.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.3054, allocations: 2.188 kB / 435.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3054, allocations: 1.031 kB / 435.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002598/0.3057, allocations: 189.9 kB / 435.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.157e-05/0.3058, allocations: 123.9 kB / 435.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.234e-05/0.3058, allocations: 6.234 kB / 435.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.815e-05/0.3059, allocations: 2.781 kB / 435.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.3059, allocations: 14.52 kB / 435.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.3059, allocations: 5.375 kB / 436 MB, free: 8.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001972/0.3061, allocations: 250.1 kB / 436.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3061, allocations: 0 / 436.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002739/0.3064, allocations: 38.72 kB / 436.2 MB, free: 8.586 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001788/0.3082, allocations: 1.047 MB / 437.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002385/0.3084, allocations: 77.5 kB / 437.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3084, allocations: 0 / 437.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.965e-05/0.3085, allocations: 39.36 kB / 437.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/0.3089, allocations: 79.55 kB / 437.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.3112, allocations: 2.291 MB / 439.8 MB, free: 6.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001887/0.3113, allocations: 0.7445 MB / 440.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001/0.3114, allocations: 33.3 kB / 440.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.497e-05/0.3115, allocations: 63.52 kB / 440.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3115, allocations: 0 / 440.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02899/0.3405, allocations: 5.523 MB / 446.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.206/8.547, allocations: 9.016 kB / 446.1 MB, free: 4.75 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98963e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.053438300732523] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'hold1.y'] 8.6698316950351 8.68357493 8.570571972 Calling exit ...