Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 116.6 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 189 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 225.6 MB / 249.8 MB, free: 3.477 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 52.06 kB / 366.3 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09585/0.09734, allocations: 52.14 MB / 418.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003445/0.1008, allocations: 1.973 MB / 420.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.1028, allocations: 1.215 MB / 421.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.1029, allocations: 3.938 kB / 421.7 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003151/0.1033, allocations: 75.61 kB / 421.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000281/0.1035, allocations: 103.6 kB / 421.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008226/0.1044, allocations: 285.7 kB / 422.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003209/0.1047, allocations: 223.4 kB / 422.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.1048, allocations: 37.66 kB / 422.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.1049, allocations: 99.61 kB / 422.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001556/0.1051, allocations: 103.5 kB / 422.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.1051, allocations: 12 kB / 422.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001616/0.1053, allocations: 75.94 kB / 422.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.87e-05/0.1054, allocations: 63.77 kB / 422.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.1055, allocations: 99.33 kB / 422.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.1059, allocations: 294.7 kB / 423.1 MB, free: 7.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1059, allocations: 0 / 423.1 MB, free: 7.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1059, allocations: 4 kB / 423.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1059, allocations: 0 / 423.1 MB, free: 7.926 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009392/0.1069, allocations: 0.5853 MB / 423.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.1069, allocations: 8.031 kB / 423.7 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.733e-05/0.1069, allocations: 4.188 kB / 423.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.617e-05/0.107, allocations: 54.61 kB / 423.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.083e-05/0.107, allocations: 32.75 kB / 423.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003997/0.1074, allocations: 319.6 kB / 424.1 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.1075, allocations: 16.12 kB / 424.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.344e-05/0.1075, allocations: 12 kB / 424.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005973/0.1081, allocations: 315.9 kB / 424.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1081, allocations: 0 / 424.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.1081, allocations: 8 kB / 424.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.1081, allocations: 4 kB / 424.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001758/0.1083, allocations: 75.89 kB / 424.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005926/0.1089, allocations: 414.3 kB / 424.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003859/0.1093, allocations: 187.9 kB / 425.1 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.1094, allocations: 82.55 kB / 425.2 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/0.1095, allocations: 4 kB / 425.2 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001841/0.1096, allocations: 87.31 kB / 425.3 MB, free: 5.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 3.797e-06/0.1096, allocations: 3.984 kB / 425.3 MB, free: 5.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005746/0.1102, allocations: 249.6 kB / 425.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.1104, allocations: 178.1 kB / 425.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003861/0.1107, allocations: 346.9 kB / 426 MB, free: 4.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/0.1108, allocations: 33.7 kB / 426.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.1109, allocations: 128.6 kB / 426.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.521e-05/0.1109, allocations: 35.84 kB / 426.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.028e-05/0.111, allocations: 53.92 kB / 426.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.1112, allocations: 338.8 kB / 426.6 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.1113, allocations: 40.45 kB / 426.7 MB, free: 4.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/0.1115, allocations: 187.6 kB / 426.8 MB, free: 3.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000294/0.1118, allocations: 211.2 kB / 427.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1118, allocations: 4.312 kB / 427.1 MB, free: 3.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004084/0.1122, allocations: 241.1 kB / 427.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.1122, allocations: 10.88 kB / 427.3 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.1122, allocations: 4 kB / 427.3 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.1122, allocations: 15.88 kB / 427.3 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.1124, allocations: 40.23 kB / 427.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.1124, allocations: 7.984 kB / 427.4 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.1125, allocations: 23.89 kB / 427.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.1126, allocations: 16 kB / 427.4 MB, free: 3.191 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001884/0.1127, allocations: 176.6 kB / 427.6 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000218/0.113, allocations: 133.5 kB / 427.7 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.219e-05/0.113, allocations: 37.73 kB / 427.7 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.351e-06/0.113, allocations: 7.875 kB / 427.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.113, allocations: 4 kB / 427.8 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.113, allocations: 0 / 427.8 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002683/0.1133, allocations: 265.5 kB / 428 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1133, allocations: 0 / 428 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.1134, allocations: 27.98 kB / 428 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1134, allocations: 0 / 428 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/0.1135, allocations: 11.98 kB / 428.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.1135, allocations: 4.328 kB / 428.1 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.1135, allocations: 4 kB / 428.1 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004327/0.1139, allocations: 250.4 kB / 428.3 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.1141, allocations: 128.8 kB / 428.4 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.143e-05/0.1141, allocations: 8 kB / 428.4 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.62e-05/0.1142, allocations: 7.984 kB / 428.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.701e-05/0.1143, allocations: 11.94 kB / 428.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.1143, allocations: 11.98 kB / 428.5 MB, free: 2.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002867/0.1146, allocations: 249.9 kB / 428.7 MB, free: 1.777 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1146, allocations: 0 / 428.7 MB, free: 1.777 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003406/0.1149, allocations: 47.92 kB / 428.8 MB, free: 1.73 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.002477/0.1174, allocations: 1.184 MB / 430 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003739/0.1178, allocations: 156.5 kB / 430.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1178, allocations: 192 / 430.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.052e-05/0.1178, allocations: 35.97 kB / 430.1 MB, free: 496 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005454/0.1184, allocations: 132.5 kB / 430.3 MB, free: 364 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003322/0.1217, allocations: 2.703 MB / 433 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.1221, allocations: 0.7675 MB / 433.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.1222, allocations: 34.5 kB / 433.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.1224, allocations: 79.41 kB / 433.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of SimCode: time 5.92e-07/0.1224, allocations: 0 / 433.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02458/0.1469, allocations: 6.42 MB / 440.3 MB, free: 6.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/8.349, allocations: 4.875 kB / 440.3 MB, free: 6.25 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.895302916993387] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'sum.y'] 8.529656089027412 8.708919579 8.600866164 Calling exit ...