Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",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.001397/0.001397, allocations: 199.6 kB / 8.542 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001598/0.001598, allocations: 93.44 kB / 286.3 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1896/0.1912, allocations: 56.91 MB / 343.2 MB, free: 8.586 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.2993, allocations: 51.47 MB / 394.7 MB, free: 5.062 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2955/0.5948, allocations: 81.74 MB / 476.4 MB, free: 11.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.5951, allocations: 82.12 kB / 476.5 MB, free: 11.08 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.01861/0.6137, allocations: 7.102 MB / 483.6 MB, free: 5.727 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.6137, allocations: 12 kB / 483.6 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.226e-05/0.6138, allocations: 27.7 kB / 483.7 MB, free: 5.688 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004652/0.6143, allocations: 294.8 kB / 484 MB, free: 5.383 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.6144, allocations: 4 kB / 484 MB, free: 5.379 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.227e-05/0.6144, allocations: 4 kB / 484 MB, free: 5.375 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001206/0.6145, allocations: 48.36 kB / 484 MB, free: 5.344 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.6148, allocations: 163.2 kB / 484.2 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.6149, allocations: 0 / 484.2 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.95e-05/0.6149, allocations: 3.984 kB / 484.2 MB, free: 5.172 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.6149, allocations: 0 / 484.2 MB, free: 5.172 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006614/0.6156, allocations: 469.7 kB / 484.6 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001732/0.6158, allocations: 132 kB / 484.8 MB, free: 4.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.508e-05/0.6158, allocations: 59.75 kB / 484.8 MB, free: 4.512 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.6159, allocations: 7.266 kB / 484.8 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001249/0.616, allocations: 93.67 kB / 484.9 MB, free: 4.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.944e-06/0.616, allocations: 0 / 484.9 MB, free: 4.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002683/0.6163, allocations: 116 kB / 485 MB, free: 4.309 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/0.6164, allocations: 186.9 kB / 485.2 MB, free: 4.086 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002797/0.6166, allocations: 299.8 kB / 485.5 MB, free: 3.844 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.6167, allocations: 29.7 kB / 485.5 MB, free: 3.809 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.739e-05/0.6167, allocations: 111.2 kB / 485.6 MB, free: 3.703 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.6167, allocations: 11.81 kB / 485.7 MB, free: 3.691 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-06/0.6168, allocations: 0 / 485.7 MB, free: 3.691 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.969e-05/0.6168, allocations: 331.9 kB / 486 MB, free: 3.367 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.234e-05/0.6169, allocations: 25.31 kB / 486 MB, free: 3.352 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.243e-05/0.6169, allocations: 97.89 kB / 486.1 MB, free: 3.242 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.907e-05/0.617, allocations: 34.42 kB / 486.1 MB, free: 3.219 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.617, allocations: 3.906 kB / 486.1 MB, free: 3.215 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001813/0.6172, allocations: 121.8 kB / 486.3 MB, free: 3.109 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.6172, allocations: 8.156 kB / 486.3 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.6172, allocations: 4 kB / 486.3 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.6173, allocations: 6.406 kB / 486.3 MB, free: 3.094 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.6174, allocations: 23.92 kB / 486.3 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.6174, allocations: 4 kB / 486.3 MB, free: 3.066 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.415e-05/0.6175, allocations: 11.92 kB / 486.3 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.6175, allocations: 4 kB / 486.3 MB, free: 3.051 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample1.u,shiftSample1.y,hold1.u,hold1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 5.835e-05/0.6176, allocations: 112.4 kB / 486.4 MB, free: 2.938 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.494e-05/0.6177, allocations: 77.16 kB / 486.5 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001878/0.6179, allocations: 104.7 kB / 486.6 MB, free: 2.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.6179, allocations: 4 kB / 486.6 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.6179, allocations: 0 / 486.6 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.6179, allocations: 0 / 486.6 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.6181, allocations: 242.2 kB / 486.8 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.6181, allocations: 0 / 486.8 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.182e-05/0.6182, allocations: 19.92 kB / 486.9 MB, free: 2.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.237e-06/0.6182, allocations: 4 kB / 486.9 MB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.6182, allocations: 4.062 kB / 486.9 MB, free: 2.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.6182, allocations: 6.562 kB / 486.9 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6182, allocations: 0 / 486.9 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001898/0.6184, allocations: 207.8 kB / 487.1 MB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002212/0.6186, allocations: 0.578 MB / 487.7 MB, free: 1.672 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.489e-05/0.6187, allocations: 122.5 kB / 487.8 MB, free: 1.543 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.296e-05/0.6188, allocations: 7.906 kB / 487.8 MB, free: 1.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.398e-05/0.6189, allocations: 7.984 kB / 487.8 MB, free: 1.527 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.014e-05/0.6189, allocations: 11.3 kB / 487.8 MB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.6189, allocations: 5 kB / 487.8 MB, free: 1.516 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001874/0.6191, allocations: 238.5 kB / 488 MB, free: 1.336 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008778/0.62, allocations: 62.8 kB / 488.1 MB, free: 1.281 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample1.u,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.0008143/0.6208, allocations: 333.9 kB / 488.4 MB, free: 1.066 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002273/0.6211, allocations: 86.66 kB / 488.5 MB, free: 1.004 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.6211, allocations: 0 / 488.5 MB, free: 1.004 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.268e-05/0.6212, allocations: 34.62 kB / 488.6 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004748/0.6217, allocations: 63.56 kB / 488.6 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007406/0.6224, allocations: 297.5 kB / 488.9 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004263/0.6229, allocations: 0.7778 MB / 489.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.6229, allocations: 0 / 489.7 MB, free: 15.84 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat does not exist to compare? outputFormat=mat