Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001332/0.001332, allocations: 122.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.001415/0.001415, 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.414/1.414, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.001918/0.001918, allocations: 75.84 kB / 373.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1097, allocations: 53.32 MB / 427 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.00352/0.1133, allocations: 1.915 MB / 428.9 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002124/0.1154, allocations: 1.2 MB / 430.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.1155, allocations: 7.938 kB / 430.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000641/0.1162, allocations: 151.5 kB / 430.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004324/0.1166, allocations: 155.4 kB / 430.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005208/0.1171, allocations: 166.6 kB / 430.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002929/0.1174, allocations: 187.5 kB / 430.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.1175, allocations: 21.48 kB / 430.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.1177, allocations: 83.62 kB / 430.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.1178, allocations: 75.67 kB / 430.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.535e-05/0.1178, allocations: 12 kB / 431 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001661/0.118, allocations: 63.91 kB / 431 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.807e-05/0.1181, allocations: 47.83 kB / 431.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.072e-05/0.1181, allocations: 67.48 kB / 431.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003437/0.1185, allocations: 215 kB / 431.3 MB, free: 464 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.1185, allocations: 4 kB / 431.3 MB, free: 460 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1185, allocations: 0 / 431.3 MB, free: 460 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.1185, allocations: 0 / 431.3 MB, free: 460 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.2487/0.3672, allocations: 0.5144 MB / 431.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.3673, allocations: 9.062 kB / 431.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.872e-05/0.3673, allocations: 39.84 kB / 431.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.223e-05/0.3674, allocations: 22.05 kB / 431.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004828/0.3679, allocations: 275.2 kB / 432.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.3679, allocations: 5.672 kB / 432.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.664e-05/0.3679, allocations: 9.844 kB / 432.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004399/0.3684, allocations: 146.3 kB / 432.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.3684, allocations: 3.938 kB / 432.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.3684, allocations: 6.281 kB / 432.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.3684, allocations: 1.281 kB / 432.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001491/0.3686, allocations: 35.67 kB / 432.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005698/0.3691, allocations: 358.2 kB / 432.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002945/0.3694, allocations: 111.4 kB / 432.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.3695, allocations: 46.58 kB / 432.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.232e-05/0.3696, allocations: 4.094 kB / 432.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002312/0.3698, allocations: 73.2 kB / 433 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 2.264e-06/0.3698, allocations: 0 / 433 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005524/0.3704, allocations: 143.7 kB / 433.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.228e-05/0.3704, allocations: 134 kB / 433.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004302/0.3709, allocations: 276.8 kB / 433.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.3709, allocations: 30.86 kB / 433.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.378e-05/0.371, allocations: 119.6 kB / 433.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.636e-05/0.371, allocations: 18.02 kB / 433.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.496e-05/0.3711, allocations: 32.88 kB / 433.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.996e-05/0.3712, allocations: 335.3 kB / 434 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.828e-05/0.3713, allocations: 18.36 kB / 434.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.3714, allocations: 73.31 kB / 434.1 MB, free: 9.727 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002109/0.3716, allocations: 75.03 kB / 434.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3716, allocations: 1.531 kB / 434.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003493/0.372, allocations: 119.2 kB / 434.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.372, allocations: 6.438 kB / 434.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.372, allocations: 1.75 kB / 434.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.372, allocations: 1.594 kB / 434.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.3721, allocations: 15.73 kB / 434.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.3722, allocations: 1.594 kB / 434.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.3723, allocations: 10.92 kB / 434.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.3723, allocations: 5.547 kB / 434.4 MB, free: 9.648 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,sample1.u,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 0.0001599/0.3725, allocations: 149.6 kB / 434.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.3726, allocations: 67.94 kB / 434.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.782e-05/0.3726, allocations: 24.5 kB / 434.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.3726, allocations: 0.7656 kB / 434.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.3726, allocations: 0.6562 kB / 434.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3727, allocations: 1.031 kB / 434.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000231/0.3729, allocations: 230.7 kB / 434.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3729, allocations: 5.109 kB / 434.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.486e-05/0.3729, allocations: 11.28 kB / 434.9 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3729, allocations: 1.094 kB / 434.9 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.3729, allocations: 10.22 kB / 434.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.3729, allocations: 1.094 kB / 434.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3729, allocations: 3.719 kB / 434.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/0.3733, allocations: 152.6 kB / 435 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.959e-05/0.3734, allocations: 112 kB / 435.1 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.3734, allocations: 6.156 kB / 435.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.863e-05/0.3735, allocations: 5.359 kB / 435.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.3735, allocations: 6.719 kB / 435.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.07e-05/0.3735, allocations: 5.797 kB / 435.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002591/0.3738, allocations: 200.9 kB / 435.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3738, allocations: 0 / 435.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000379/0.3742, allocations: 33.5 kB / 435.4 MB, free: 8.992 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,sample1.u,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.002463/0.3766, allocations: 1.01 MB / 436.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003254/0.377, allocations: 63.06 kB / 436.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.377, allocations: 256 / 436.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.3771, allocations: 30.67 kB / 436.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006063/0.3777, allocations: 58.86 kB / 436.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002809/0.3805, allocations: 1.952 MB / 438.5 MB, free: 7.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001871/0.3807, allocations: 0.7296 MB / 439.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.3808, allocations: 27.5 kB / 439.2 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.3809, allocations: 51.62 kB / 439.3 MB, free: 6.277 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3809, allocations: 5.344 kB / 439.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03403/0.4149, allocations: 4.671 MB / 444 MB, free: 5.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.155/8.57, allocations: 7.234 kB / 444 MB, free: 5.477 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.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_BooleanSignals_SubSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.020259927026927] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 8.696450394112617 8.718355421 8.595442911 Calling exit ...