Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.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.001758/0.001758, 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.002239/0.002239, 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.477/1.477, 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.RealSignals.UpSample2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",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.002235/0.002235, allocations: 79.81 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1052, allocations: 53.32 MB / 427 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.003158/0.1083, allocations: 1.778 MB / 428.8 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.1096, allocations: 0.6895 MB / 429.5 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.096e-05/0.1097, allocations: 7.875 kB / 429.5 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.1098, allocations: 23.73 kB / 429.5 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001998/0.11, allocations: 47.7 kB / 429.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004104/0.1104, allocations: 126.5 kB / 429.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002136/0.1106, allocations: 163.6 kB / 429.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.1107, allocations: 25.48 kB / 429.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001633/0.1109, allocations: 75.75 kB / 429.9 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002241/0.1111, allocations: 111.6 kB / 430 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.375e-05/0.1111, allocations: 16 kB / 430.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.854e-05/0.1112, allocations: 16 kB / 430.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.014e-05/0.1113, allocations: 63.81 kB / 430.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.74e-05/0.1114, allocations: 91.45 kB / 430.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002983/0.1117, allocations: 223 kB / 430.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1117, allocations: 0 / 430.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1117, allocations: 0 / 430.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.1117, allocations: 0 / 430.4 MB, free: 1.344 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008835/0.1126, allocations: 0.5101 MB / 431 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.1126, allocations: 8.031 kB / 431 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.305e-05/0.1127, allocations: 58.73 kB / 431 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001634/0.1129, allocations: 36.73 kB / 431.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.1132, allocations: 252.4 kB / 431.3 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.1132, allocations: 20.31 kB / 431.3 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.982e-05/0.1133, allocations: 16.38 kB / 431.3 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.1144, allocations: 0.634 MB / 432 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.1144, allocations: 0 / 432 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.1144, allocations: 4 kB / 432 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.408e-05/0.1144, allocations: 19.98 kB / 432 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004165/0.1149, allocations: 191.8 kB / 432.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004853/0.1153, allocations: 362.3 kB / 432.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004426/0.1158, allocations: 223.7 kB / 432.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002744/0.1161, allocations: 146.5 kB / 432.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.343e-05/0.1161, allocations: 4 kB / 432.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.1161, allocations: 42.66 kB / 432.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 1.483e-06/0.1161, allocations: 0 / 432.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.0008869/0.117, allocations: 425.8 kB / 433.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/0.1171, allocations: 134.8 kB / 433.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.1173, allocations: 170.3 kB / 433.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/0.1173, allocations: 33.7 kB / 433.7 MB, free: 13.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.34e-05/0.1174, allocations: 101.1 kB / 433.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.704e-05/0.1175, allocations: 55.61 kB / 433.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.1176, allocations: 78.25 kB / 433.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1177, allocations: 334.8 kB / 434.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001461/0.1179, allocations: 76.81 kB / 434.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003334/0.1182, allocations: 326.7 kB / 434.6 MB, free: 12.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005001/0.1187, allocations: 416.9 kB / 435.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.1187, allocations: 4 kB / 435.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006271/0.1194, allocations: 405.7 kB / 435.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.1194, allocations: 8 kB / 435.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.1194, allocations: 12 kB / 435.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.1194, allocations: 15.98 kB / 435.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002418/0.1197, allocations: 83.83 kB / 435.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.1197, allocations: 15.94 kB / 435.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.1198, allocations: 31.84 kB / 435.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.745e-05/0.1199, allocations: 31.98 kB / 435.6 MB, free: 11.61 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 13 ($CLKPRE.superSampleIpo.ticks,superSampleIpo.ticks,superSampleIpo.usedFactor,$CLKPRE.FIR1.first,FIR1.first,$CLKPRE.FIR2.first,FIR2.first,$CLKPRE.upSample.b_super,upSample.b_super,$CLKPRE.superSampleIpo.first,superSampleIpo.first,$CLKPRE.upSample.b,upSample.b) * Number of discrete states: 0 () * Number of clocked states: 13 (superSampleIpo.ticks,FIR1.first,FIR1.u_buffer[2],FIR1.u_buffer[1],FIR2.first,FIR2.u_buffer[4],FIR2.u_buffer[3],FIR2.u_buffer[2],FIR2.u_buffer[1],upSample.b_super,superSampleIpo.first,superSampleIpo.uu,upSample.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0001906/0.1201, allocations: 181.6 kB / 435.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005311/0.1206, allocations: 294.7 kB / 436.1 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.415e-05/0.1207, allocations: 38.66 kB / 436.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.1207, allocations: 4 kB / 436.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.1207, allocations: 3.984 kB / 436.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1207, allocations: 0 / 436.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000277/0.121, allocations: 249.3 kB / 436.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.121, allocations: 0 / 436.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000258/0.1212, allocations: 63.91 kB / 436.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.1212, allocations: 8 kB / 436.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.1213, allocations: 11.98 kB / 436.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1213, allocations: 3.938 kB / 436.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.1213, allocations: 0 / 436.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006507/0.1219, allocations: 435.9 kB / 436.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.1221, allocations: 128.9 kB / 437 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.974e-05/0.1221, allocations: 19.98 kB / 437.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.1222, allocations: 19.98 kB / 437.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.999e-05/0.1223, allocations: 0 / 437.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.1223, allocations: 8 kB / 437.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001188/0.1224, allocations: 136.3 kB / 437.2 MB, free: 9.938 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1224, allocations: 0 / 437.2 MB, free: 9.938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004041/0.1228, allocations: 52 kB / 437.3 MB, free: 9.887 MB / 366.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 (upSample.b_super,FIR2.first,FIR1.first,superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 13 (upSample.b_super,FIR2.u_buffer[1],FIR2.u_buffer[2],FIR2.u_buffer[3],FIR2.u_buffer[4],FIR2.first,FIR1.u_buffer[1],FIR1.u_buffer[2],FIR1.first,superSampleIpo.ticks,upSample.b,superSampleIpo.uu,superSampleIpo.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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 Backend phase and start with SimCode phase: time 0.001345/0.1242, allocations: 1.194 MB / 438.5 MB, free: 8.656 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000524/0.1247, allocations: 289.9 kB / 438.7 MB, free: 8.375 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1247, allocations: 0 / 438.7 MB, free: 8.375 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.878e-05/0.1247, allocations: 4 kB / 438.8 MB, free: 8.371 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006727/0.1254, allocations: 206.1 kB / 439 MB, free: 8.172 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00378/0.1292, allocations: 2.961 MB / 441.9 MB, free: 4.883 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.1296, allocations: 0.7917 MB / 442.7 MB, free: 4.062 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.105e-05/0.1297, allocations: 26.28 kB / 442.7 MB, free: 4.039 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.1298, allocations: 71.41 kB / 442.8 MB, free: 3.969 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1298, allocations: 0 / 442.8 MB, free: 3.969 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2137/0.3435, allocations: 5.173 MB / 448 MB, free: 24.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.196/8.539, allocations: 1.031 kB / 448 MB, free: 24.45 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.csv --start-time 0 --stop-time 0.06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.1957e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.008789217099547] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'upSample.y', 'superSampleIpo.y', 'FIR1.y', 'FIR2.y'] 8.610708317253739 8.62575332 8.510754109 Calling exit ...