Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.419/1.419, allocations: 230.6 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 51.92 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1069, allocations: 53.32 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003362/0.1103, allocations: 1.986 MB / 429 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002209/0.1125, allocations: 1.356 MB / 430.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.1126, allocations: 7.938 kB / 430.4 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003014/0.1129, allocations: 71.61 kB / 430.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003486/0.1133, allocations: 139.4 kB / 430.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006983/0.114, allocations: 270.7 kB / 430.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002866/0.1143, allocations: 227.4 kB / 431.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.1144, allocations: 36.3 kB / 431.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.1145, allocations: 99.61 kB / 431.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.1147, allocations: 115.5 kB / 431.3 MB, free: 492 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.834e-05/0.1147, allocations: 15.94 kB / 431.3 MB, free: 476 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.1148, allocations: 71.95 kB / 431.4 MB, free: 404 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.703e-05/0.1149, allocations: 67.75 kB / 431.5 MB, free: 336 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.655e-05/0.115, allocations: 99.34 kB / 431.6 MB, free: 236 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2079/0.3229, allocations: 293.4 kB / 431.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3229, allocations: 0 / 431.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3229, allocations: 4.531 kB / 431.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.3229, allocations: 0 / 431.8 MB, free: 7.988 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.0009194/0.3238, allocations: 0.5982 MB / 432.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.3239, allocations: 10.34 kB / 432.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.729e-05/0.3239, allocations: 4.219 kB / 432.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.647e-05/0.3239, allocations: 46.34 kB / 432.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.408e-05/0.324, allocations: 31.05 kB / 432.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003532/0.3244, allocations: 319 kB / 432.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.3244, allocations: 13.5 kB / 432.9 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.789e-05/0.3244, allocations: 17.8 kB / 432.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000592/0.325, allocations: 323.1 kB / 433.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.325, allocations: 0.7188 kB / 433.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.325, allocations: 4.938 kB / 433.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.325, allocations: 3.5 kB / 433.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.3252, allocations: 71.33 kB / 433.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004887/0.3257, allocations: 428.2 kB / 433.7 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.3261, allocations: 188 kB / 433.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.3262, allocations: 82.05 kB / 434 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.545e-05/0.3263, allocations: 6.453 kB / 434 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001657/0.3264, allocations: 83.39 kB / 434 MB, free: 6.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.355e-06/0.3264, allocations: 1.547 kB / 434 MB, free: 6.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005647/0.327, allocations: 257.3 kB / 434.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.144e-05/0.3271, allocations: 173.2 kB / 434.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000315/0.3274, allocations: 352.1 kB / 434.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.3274, allocations: 33.98 kB / 434.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.01e-05/0.3275, allocations: 131.8 kB / 435 MB, free: 6.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.3275, allocations: 31.64 kB / 435 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.25e-05/0.3276, allocations: 57.66 kB / 435.1 MB, free: 6.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.553e-05/0.3277, allocations: 344.2 kB / 435.4 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.437e-05/0.3278, allocations: 39.05 kB / 435.4 MB, free: 5.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.3279, allocations: 187.7 kB / 435.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002354/0.3282, allocations: 206.8 kB / 435.8 MB, free: 5.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.3282, allocations: 5.062 kB / 435.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004085/0.3286, allocations: 232.9 kB / 436 MB, free: 5.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.3286, allocations: 7.938 kB / 436.1 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.3286, allocations: 8.531 kB / 436.1 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.3286, allocations: 8.719 kB / 436.1 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.3288, allocations: 46.09 kB / 436.1 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/0.3288, allocations: 13.77 kB / 436.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.3289, allocations: 16.42 kB / 436.1 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.329, allocations: 10.88 kB / 436.2 MB, free: 5.496 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.0001517/0.3291, allocations: 179.2 kB / 436.3 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002023/0.3293, allocations: 149.9 kB / 436.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.056e-05/0.3294, allocations: 35.58 kB / 436.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.3294, allocations: 4.547 kB / 436.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3294, allocations: 5.062 kB / 436.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3294, allocations: 1.094 kB / 436.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002336/0.3296, allocations: 269.9 kB / 436.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3296, allocations: 1.438 kB / 436.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.3298, allocations: 25.8 kB / 436.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.3298, allocations: 4.062 kB / 436.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.3298, allocations: 5.844 kB / 436.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.3298, allocations: 2.312 kB / 436.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.279e-06/0.3298, allocations: 12.53 kB / 436.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003634/0.3301, allocations: 242.2 kB / 437.1 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.662e-05/0.3302, allocations: 124.1 kB / 437.2 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.161e-05/0.3303, allocations: 10.59 kB / 437.2 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.384e-05/0.3304, allocations: 6.875 kB / 437.2 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.634e-05/0.3304, allocations: 14.11 kB / 437.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.3305, allocations: 10.05 kB / 437.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000222/0.3307, allocations: 256.7 kB / 437.5 MB, free: 4.824 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3307, allocations: 0 / 437.5 MB, free: 4.824 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003206/0.331, allocations: 56.75 kB / 437.5 MB, free: 4.82 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.00217/0.3332, allocations: 1.192 MB / 438.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003776/0.3335, allocations: 153 kB / 438.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3335, allocations: 4.062 kB / 438.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.428e-05/0.3336, allocations: 26.78 kB / 438.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005361/0.3342, allocations: 126 kB / 439 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.3369, allocations: 2.719 MB / 441.8 MB, free: 2.539 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000207/0.3371, allocations: 0.7833 MB / 442.5 MB, free: 1.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.3372, allocations: 32.67 kB / 442.6 MB, free: 1.824 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.3373, allocations: 79.64 kB / 442.6 MB, free: 1.816 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3373, allocations: 0 / 442.6 MB, free: 1.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02824/0.3655, allocations: 6.518 MB / 449.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.245/8.61, allocations: 9.797 kB / 449.2 MB, free: 0.8789 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.01797374500893] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'sum.y'] 8.787094120052643 8.80143603 8.475710663 Calling exit ...