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.001292/0.001292, allocations: 118.2 kB / 18.45 MB, free: 4.613 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.001359/0.001359, allocations: 211.3 kB / 21.41 MB, free: 1.66 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: 227.7 MB / 251.9 MB, free: 15.87 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.001914/0.001914, allocations: 67.84 kB / 365.2 MB, free: 224 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1037, allocations: 50.54 MB / 415.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003825/0.1075, allocations: 1.895 MB / 417.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002409/0.11, allocations: 1.27 MB / 418.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001814/0.1103, allocations: 0 / 418.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004574/0.1107, allocations: 67.67 kB / 419 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005349/0.1113, allocations: 135.4 kB / 419.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009504/0.1123, allocations: 222 kB / 419.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003073/0.1126, allocations: 171.6 kB / 419.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.1128, allocations: 37.53 kB / 419.5 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.1129, allocations: 87.5 kB / 419.6 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.113, allocations: 79.67 kB / 419.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.048e-05/0.1131, allocations: 8 kB / 419.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001873/0.1133, allocations: 67.95 kB / 419.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.1134, allocations: 55.77 kB / 419.8 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.1135, allocations: 79.41 kB / 419.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004173/0.1139, allocations: 243 kB / 420.2 MB, free: 9.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1139, allocations: 0 / 420.2 MB, free: 9.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1139, allocations: 0 / 420.2 MB, free: 9.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.114, allocations: 4 kB / 420.2 MB, free: 9.211 MB / 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.0008433/0.1148, allocations: 0.5387 MB / 420.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.1149, allocations: 12.03 kB / 420.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.182e-05/0.1149, allocations: 34.73 kB / 420.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.175e-05/0.115, allocations: 32.73 kB / 420.8 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004572/0.1155, allocations: 283.8 kB / 421.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.1155, allocations: 12.38 kB / 421.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.754e-05/0.1155, allocations: 7.938 kB / 421.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003706/0.1159, allocations: 159.5 kB / 421.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1159, allocations: 0 / 421.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.1159, allocations: 8 kB / 421.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.1159, allocations: 0 / 421.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.1161, allocations: 43.91 kB / 421.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006794/0.1168, allocations: 382.3 kB / 421.6 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002762/0.1171, allocations: 123.9 kB / 421.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.321e-05/0.1172, allocations: 42.56 kB / 421.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.189e-05/0.1172, allocations: 4 kB / 421.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.1174, allocations: 83.31 kB / 421.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.684e-06/0.1174, allocations: 0 / 421.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004264/0.1178, allocations: 149.5 kB / 422 MB, free: 7.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.118, allocations: 166.2 kB / 422.2 MB, free: 6.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004058/0.1184, allocations: 342.9 kB / 422.5 MB, free: 6.535 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.1184, allocations: 29.7 kB / 422.6 MB, free: 6.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.1185, allocations: 128.1 kB / 422.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.1186, allocations: 15.97 kB / 422.7 MB, free: 6.355 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.687e-05/0.1187, allocations: 29.72 kB / 422.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.1188, allocations: 334.8 kB / 423.1 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.105e-05/0.1189, allocations: 27.92 kB / 423.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.1191, allocations: 90.83 kB / 423.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001752/0.1192, allocations: 80.22 kB / 423.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1192, allocations: 4 kB / 423.3 MB, free: 5.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002416/0.1195, allocations: 129.4 kB / 423.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1195, allocations: 4 kB / 423.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1195, allocations: 7.938 kB / 423.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.1196, allocations: 0 / 423.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.1197, allocations: 19.98 kB / 423.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.1197, allocations: 3.938 kB / 423.4 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.679e-05/0.1198, allocations: 11.88 kB / 423.4 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.1198, allocations: 8.109 kB / 423.4 MB, free: 5.559 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 0.0001668/0.12, allocations: 154.1 kB / 423.6 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.1201, allocations: 73.44 kB / 423.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.228e-05/0.1202, allocations: 33.7 kB / 423.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1202, allocations: 0 / 423.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.1202, allocations: 4 kB / 423.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.1202, allocations: 3.938 kB / 423.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002739/0.1205, allocations: 233.6 kB / 423.9 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.1205, allocations: 4.109 kB / 423.9 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.827e-05/0.1206, allocations: 19.97 kB / 424 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.1206, allocations: 0 / 424 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.1206, allocations: 4 kB / 424 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.1206, allocations: 4 kB / 424 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1206, allocations: 0 / 424 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003136/0.1209, allocations: 170.5 kB / 424.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.1211, allocations: 112.9 kB / 424.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.115e-05/0.1211, allocations: 4 kB / 424.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.363e-05/0.1212, allocations: 4 kB / 424.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.366e-05/0.1212, allocations: 15.92 kB / 424.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.1212, allocations: 7.938 kB / 424.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002583/0.1215, allocations: 249.9 kB / 424.5 MB, free: 4.375 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1215, allocations: 4 kB / 424.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002572/0.1218, allocations: 31.94 kB / 424.6 MB, free: 4.34 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.002045/0.1238, allocations: 1.026 MB / 425.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002509/0.1241, allocations: 75.91 kB / 425.7 MB, free: 3.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1241, allocations: 0 / 425.7 MB, free: 3.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.249e-05/0.1242, allocations: 31.92 kB / 425.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004337/0.1246, allocations: 71.36 kB / 425.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002774/0.1275, allocations: 2.217 MB / 428 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.1279, allocations: 0.7436 MB / 428.7 MB, free: 172 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.236e-05/0.128, allocations: 25.53 kB / 428.7 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.1281, allocations: 55.42 kB / 428.8 MB, free: 92 kB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1281, allocations: 3.938 kB / 428.8 MB, free: 88 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.029/0.1571, allocations: 5.335 MB / 434.1 MB, free: 10.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.14/8.298, allocations: 8 kB / 434.1 MB, free: 10.91 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.92363726196345] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 8.418893089983612 8.607385728 8.316395471 Calling exit ...