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.SubSample.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.001337/0.001337, allocations: 121.2 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.001404/0.001404, allocations: 206.6 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.453/1.453, allocations: 230.5 MB / 254.8 MB, free: 15.11 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.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",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.001977/0.001977, allocations: 79.75 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1032, allocations: 53.32 MB / 427 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003408/0.1066, allocations: 1.901 MB / 428.9 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.1087, allocations: 1.294 MB / 430.2 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.1088, allocations: 3.938 kB / 430.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003217/0.1092, allocations: 71.66 kB / 430.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003408/0.1095, allocations: 131.4 kB / 430.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006041/0.1101, allocations: 222.2 kB / 430.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002389/0.1103, allocations: 179.5 kB / 430.8 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.1104, allocations: 25.53 kB / 430.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.1106, allocations: 79.64 kB / 430.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.1107, allocations: 91.61 kB / 431 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.359e-05/0.1107, allocations: 11.98 kB / 431 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.1109, allocations: 67.95 kB / 431.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.288e-05/0.1109, allocations: 55.77 kB / 431.1 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.149e-05/0.111, allocations: 75.42 kB / 431.2 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003365/0.1114, allocations: 239 kB / 431.4 MB, free: 372 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.1114, allocations: 4 kB / 431.4 MB, free: 368 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1114, allocations: 0 / 431.4 MB, free: 368 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1114, allocations: 3.984 kB / 431.4 MB, free: 364 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.1996/0.311, allocations: 0.5386 MB / 432 MB, free: 11.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.3111, allocations: 10.12 kB / 432 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.478e-05/0.3111, allocations: 37.72 kB / 432 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.959e-05/0.3112, allocations: 24.52 kB / 432 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004689/0.3116, allocations: 296.7 kB / 432.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.3117, allocations: 5.031 kB / 432.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.3117, allocations: 9.25 kB / 432.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003448/0.312, allocations: 152.4 kB / 432.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.312, allocations: 8.391 kB / 432.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.3121, allocations: 2.812 kB / 432.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.3121, allocations: 1.469 kB / 432.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.3122, allocations: 36.89 kB / 432.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004635/0.3126, allocations: 383.2 kB / 432.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002278/0.3129, allocations: 116.9 kB / 433 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.828e-05/0.313, allocations: 49.16 kB / 433.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.313, allocations: 3.156 kB / 433.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.3131, allocations: 78.17 kB / 433.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.3131, allocations: 0.6875 kB / 433.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003689/0.3135, allocations: 153.9 kB / 433.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.3136, allocations: 162.6 kB / 433.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003206/0.3139, allocations: 340.7 kB / 433.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.3139, allocations: 26.86 kB / 433.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.74e-05/0.314, allocations: 132.5 kB / 433.9 MB, free: 10 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/0.314, allocations: 18.73 kB / 434 MB, free: 9.992 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.577e-05/0.314, allocations: 28.53 kB / 434 MB, free: 9.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.943e-05/0.3141, allocations: 340.9 kB / 434.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.995e-05/0.3142, allocations: 27.2 kB / 434.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.076e-05/0.3143, allocations: 80.7 kB / 434.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001335/0.3144, allocations: 86.34 kB / 434.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3144, allocations: 2.406 kB / 434.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002065/0.3146, allocations: 132 kB / 434.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.3146, allocations: 5.188 kB / 434.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.3146, allocations: 1.219 kB / 434.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.3146, allocations: 4.625 kB / 434.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.3148, allocations: 24.3 kB / 434.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.3148, allocations: 0 / 434.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.257e-05/0.3148, allocations: 7.062 kB / 434.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.427e-06/0.3148, allocations: 13.06 kB / 434.7 MB, free: 9.516 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 9.797e-05/0.3149, allocations: 150.8 kB / 434.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.256e-05/0.315, allocations: 73.92 kB / 434.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.694e-05/0.3151, allocations: 26.25 kB / 434.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.3151, allocations: 2.344 kB / 434.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3151, allocations: 0 / 434.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3151, allocations: 4.031 kB / 435 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.3152, allocations: 247.6 kB / 435.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3152, allocations: 6.5 kB / 435.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.908e-05/0.3153, allocations: 12.25 kB / 435.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3153, allocations: 1.781 kB / 435.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.3153, allocations: 10.28 kB / 435.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3153, allocations: 3.469 kB / 435.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3153, allocations: 4.719 kB / 435.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002418/0.3155, allocations: 164.5 kB / 435.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.766e-05/0.3156, allocations: 112.7 kB / 435.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.202e-05/0.3156, allocations: 9.141 kB / 435.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.543e-05/0.3157, allocations: 3.156 kB / 435.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.3157, allocations: 11.66 kB / 435.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.3158, allocations: 5.125 kB / 435.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001957/0.316, allocations: 246.4 kB / 435.8 MB, free: 8.863 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.316, allocations: 0 / 435.8 MB, free: 8.863 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002629/0.3162, allocations: 32.83 kB / 435.8 MB, free: 8.863 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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 (9): * Single equations (assignments): 7 * 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.00178/0.318, allocations: 1.028 MB / 436.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002265/0.3182, allocations: 71.41 kB / 436.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3182, allocations: 4.906 kB / 436.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.85e-05/0.3183, allocations: 26.94 kB / 436.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.3187, allocations: 72.97 kB / 437 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/0.3209, allocations: 2.224 MB / 439.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001794/0.3211, allocations: 0.7451 MB / 440 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.483e-05/0.3212, allocations: 30.12 kB / 440 MB, free: 6.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.099e-05/0.3213, allocations: 55.62 kB / 440.1 MB, free: 5.98 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3213, allocations: 4 kB / 440.1 MB, free: 5.977 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03042/0.3517, allocations: 5.351 MB / 445.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.188/8.54, allocations: 7.781 kB / 445.4 MB, free: 5.133 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_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_SubSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.051899596117437] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 8.66233244491741 8.674601753 8.560341427000001 Calling exit ...