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.BackSample.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.001368/0.001368, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.00135/0.00135, allocations: 206.6 kB / 21.45 MB, free: 1.652 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.428/1.428, 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.BackSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",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.002977/0.002977, allocations: 71.83 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1505, allocations: 53.33 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.005322/0.1559, allocations: 1.932 MB / 428.9 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003706/0.1596, allocations: 1.325 MB / 430.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001959/0.1598, allocations: 7.938 kB / 430.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000492/0.1603, allocations: 71.59 kB / 430.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006014/0.1609, allocations: 135.4 kB / 430.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.1621, allocations: 229.8 kB / 430.7 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004612/0.1625, allocations: 195.4 kB / 430.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.1627, allocations: 29.66 kB / 430.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.1629, allocations: 75.7 kB / 431 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/0.1631, allocations: 91.55 kB / 431.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.978e-05/0.1631, allocations: 8 kB / 431.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000239/0.1634, allocations: 75.94 kB / 431.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.1635, allocations: 51.78 kB / 431.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.1637, allocations: 91.39 kB / 431.3 MB, free: 484 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005928/0.1642, allocations: 246.9 kB / 431.5 MB, free: 236 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1643, allocations: 0 / 431.5 MB, free: 236 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1643, allocations: 0 / 431.5 MB, free: 236 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.1643, allocations: 3.984 kB / 431.5 MB, free: 232 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.2216/0.3859, allocations: 0.552 MB / 432.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/0.386, allocations: 9.344 kB / 432.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.156e-05/0.386, allocations: 41.22 kB / 432.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.116e-05/0.3861, allocations: 24.02 kB / 432.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005108/0.3866, allocations: 309 kB / 432.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.3866, allocations: 4.625 kB / 432.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.3866, allocations: 9.297 kB / 432.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004469/0.3871, allocations: 180.8 kB / 432.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.3871, allocations: 7.625 kB / 432.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.3871, allocations: 1.812 kB / 432.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.3871, allocations: 3.438 kB / 432.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001317/0.3872, allocations: 40.34 kB / 432.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005209/0.3878, allocations: 400.9 kB / 433.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.388, allocations: 139.3 kB / 433.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.3881, allocations: 54.55 kB / 433.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.822e-05/0.3882, allocations: 7.391 kB / 433.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001755/0.3883, allocations: 81.41 kB / 433.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.3883, allocations: 0 / 433.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004395/0.3888, allocations: 167.8 kB / 433.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.3889, allocations: 196.3 kB / 433.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000378/0.3892, allocations: 344.9 kB / 434.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.3893, allocations: 28.98 kB / 434.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.041e-05/0.3893, allocations: 131.8 kB / 434.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.3894, allocations: 22.27 kB / 434.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-05/0.3894, allocations: 37.02 kB / 434.3 MB, free: 9.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.86e-05/0.3895, allocations: 342.3 kB / 434.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.333e-05/0.3895, allocations: 27.41 kB / 434.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.463e-05/0.3896, allocations: 110.9 kB / 434.8 MB, free: 9.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.3898, allocations: 98.91 kB / 434.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3898, allocations: 0 / 434.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002213/0.39, allocations: 144.3 kB / 435 MB, free: 9.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.39, allocations: 9.156 kB / 435 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.39, allocations: 1.719 kB / 435 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.39, allocations: 4.906 kB / 435 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.3901, allocations: 20.81 kB / 435 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.3901, allocations: 6.25 kB / 435 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.984e-05/0.3902, allocations: 11.09 kB / 435 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.3902, allocations: 8.312 kB / 435.1 MB, free: 9.336 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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,backSample1.y,backSample1.u,shiftSample1.y,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.0001045/0.3903, allocations: 156.9 kB / 435.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.524e-05/0.3904, allocations: 81.64 kB / 435.3 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.334e-05/0.3905, allocations: 35.38 kB / 435.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.3905, allocations: 3.219 kB / 435.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.3905, allocations: 1.062 kB / 435.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3905, allocations: 0.9688 kB / 435.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001887/0.3907, allocations: 248 kB / 435.6 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.3907, allocations: 0.875 kB / 435.6 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.449e-05/0.3908, allocations: 19.23 kB / 435.6 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3908, allocations: 1.125 kB / 435.6 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.3908, allocations: 11.14 kB / 435.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.3908, allocations: 2.375 kB / 435.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3908, allocations: 1.281 kB / 435.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002525/0.391, allocations: 186.4 kB / 435.8 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.668e-05/0.3911, allocations: 126.1 kB / 435.9 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.3912, allocations: 4.812 kB / 435.9 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.98e-05/0.3912, allocations: 6.188 kB / 435.9 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.406e-05/0.3913, allocations: 12.73 kB / 435.9 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.3913, allocations: 5.656 kB / 435.9 MB, free: 8.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002123/0.3915, allocations: 252.4 kB / 436.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3915, allocations: 0 / 436.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002841/0.3918, allocations: 33.55 kB / 436.2 MB, free: 8.672 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,backSample1.y,shiftSample1.y,backSample1.u,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.001804/0.3936, allocations: 1.044 MB / 437.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002378/0.3938, allocations: 91.72 kB / 437.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3938, allocations: 1.188 kB / 437.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.719e-05/0.3939, allocations: 25.84 kB / 437.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004326/0.3943, allocations: 76.83 kB / 437.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.3965, allocations: 2.327 MB / 439.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001845/0.3967, allocations: 0.7466 MB / 440.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.984e-05/0.3968, allocations: 33.28 kB / 440.6 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.3969, allocations: 68.31 kB / 440.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3969, allocations: 0 / 440.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03267/0.4296, allocations: 5.706 MB / 446.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.304/8.734, allocations: 7.375 kB / 446.3 MB, free: 4.77 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79104e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.206571063026786] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 8.858346841298044 8.871612244 8.703685412 Calling exit ...