Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001536/0.001536, allocations: 204.7 kB / 8.542 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 225.5 MB / 234.4 MB, free: 15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009821/0.0009821, allocations: 99.39 kB / 286.4 MB, free: 12.61 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1218/0.1229, allocations: 56.88 MB / 343.2 MB, free: 3.719 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.3753, allocations: 51.46 MB / 394.7 MB, free: 33.14 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1003/0.4757, allocations: 82.1 MB / 476.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003088/0.476, allocations: 85.03 kB / 476.9 MB, free: 14.83 MB / 362.7 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.02911/0.5052, allocations: 9.947 MB / 486.8 MB, free: 4.848 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.5052, allocations: 8 kB / 486.8 MB, free: 4.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.358e-05/0.5053, allocations: 31.62 kB / 486.9 MB, free: 4.809 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006064/0.5059, allocations: 319 kB / 487.2 MB, free: 4.457 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.241e-05/0.506, allocations: 4 kB / 487.2 MB, free: 4.453 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.735e-05/0.506, allocations: 8 kB / 487.2 MB, free: 4.445 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001967/0.5062, allocations: 87.91 kB / 487.3 MB, free: 4.359 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004832/0.5067, allocations: 285.7 kB / 487.6 MB, free: 4.055 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.5067, allocations: 0 / 487.6 MB, free: 4.055 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.5067, allocations: 3.906 kB / 487.6 MB, free: 4.051 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.5068, allocations: 7.984 kB / 487.6 MB, free: 4.043 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006006/0.5074, allocations: 402.8 kB / 488 MB, free: 3.605 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002857/0.5077, allocations: 180.9 kB / 488.1 MB, free: 3.402 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001295/0.5078, allocations: 82.69 kB / 488.2 MB, free: 3.312 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.751e-05/0.5078, allocations: 7.984 kB / 488.2 MB, free: 3.305 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001099/0.508, allocations: 71.31 kB / 488.3 MB, free: 3.223 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.275e-06/0.508, allocations: 1.781 kB / 488.3 MB, free: 3.223 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003852/0.5084, allocations: 177.5 kB / 488.5 MB, free: 3.043 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.5085, allocations: 174.1 kB / 488.6 MB, free: 2.836 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003565/0.5088, allocations: 307.3 kB / 488.9 MB, free: 2.531 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.5089, allocations: 25.7 kB / 489 MB, free: 2.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.066e-05/0.5089, allocations: 108.5 kB / 489.1 MB, free: 2.387 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.454e-05/0.509, allocations: 31.7 kB / 489.1 MB, free: 2.355 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-06/0.509, allocations: 0 / 489.1 MB, free: 2.355 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.5091, allocations: 342.8 kB / 489.4 MB, free: 2.012 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.483e-05/0.5092, allocations: 32.47 kB / 489.5 MB, free: 1.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.5094, allocations: 184.2 kB / 489.7 MB, free: 1.734 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.5095, allocations: 60.94 kB / 489.7 MB, free: 1.676 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.5095, allocations: 4 kB / 489.7 MB, free: 1.672 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003153/0.5098, allocations: 201 kB / 489.9 MB, free: 1.469 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.5098, allocations: 4 kB / 489.9 MB, free: 1.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.5099, allocations: 7.938 kB / 489.9 MB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.5099, allocations: 11.98 kB / 489.9 MB, free: 1.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.5101, allocations: 39.92 kB / 490 MB, free: 1.406 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.5101, allocations: 4.531 kB / 490 MB, free: 1.402 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.5102, allocations: 19.84 kB / 490 MB, free: 1.383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.019e-05/0.5103, allocations: 15.98 kB / 490 MB, free: 1.367 MB / 362.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.5104, allocations: 123 kB / 490.1 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.5106, allocations: 126.1 kB / 490.3 MB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002258/0.5108, allocations: 121.3 kB / 490.4 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.5108, allocations: 4 kB / 490.4 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.5108, allocations: 4.656 kB / 490.4 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.5108, allocations: 7.984 kB / 490.4 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002127/0.5111, allocations: 242 kB / 490.6 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.5111, allocations: 0 / 490.6 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001459/0.5112, allocations: 31.92 kB / 490.7 MB, free: 0.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.5112, allocations: 3.984 kB / 490.7 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.5113, allocations: 4 kB / 490.7 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.5113, allocations: 1.031 kB / 490.7 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.5113, allocations: 7.844 kB / 490.7 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003236/0.5116, allocations: 245.8 kB / 490.9 MB, free: 384 kB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004339/0.5121, allocations: 0.6285 MB / 491.5 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.5122, allocations: 136.7 kB / 491.7 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.263e-05/0.5123, allocations: 4 kB / 491.7 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.5124, allocations: 3.984 kB / 491.7 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.814e-05/0.5125, allocations: 4.656 kB / 491.7 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.5125, allocations: 19.89 kB / 491.7 MB, free: 15.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002517/0.5128, allocations: 243.1 kB / 491.9 MB, free: 15.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001064/0.5138, allocations: 67.92 kB / 492 MB, free: 15.22 MB / 378.7 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,sample1.u,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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007361/0.5146, allocations: 344.7 kB / 492.4 MB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002938/0.5149, allocations: 148.7 kB / 492.5 MB, free: 14.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.5149, allocations: 8 kB / 492.5 MB, free: 14.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.52e-05/0.515, allocations: 32 kB / 492.5 MB, free: 14.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004658/0.5154, allocations: 99.34 kB / 492.6 MB, free: 14.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007922/0.5162, allocations: 350.2 kB / 493 MB, free: 14.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005125/0.5168, allocations: 0.8101 MB / 493.8 MB, free: 13.46 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5168, allocations: 0 / 493.8 MB, free: 13.46 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat does not exist to compare? outputFormat=mat