Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") [: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.00158/0.00158, allocations: 199.5 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 225.5 MB / 234.4 MB, free: 3.453 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008246/0.0008247, allocations: 95.08 kB / 286.3 MB, free: 5.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.075e-06/8.095e-06, allocations: 4 kB / 343.1 MB, free: 8.766 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08758/0.0876, allocations: 51.47 MB / 394.6 MB, free: 5.242 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.254/0.3416, allocations: 78.59 MB / 473.2 MB, free: 13.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001917/0.3419, allocations: 79.8 kB / 473.3 MB, free: 13.19 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.005855/0.3477, allocations: 2.171 MB / 475.5 MB, free: 12.06 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.3478, allocations: 4 kB / 475.5 MB, free: 12.05 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003859/0.3482, allocations: 415 kB / 475.9 MB, free: 11.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.3482, allocations: 8.031 kB / 475.9 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002187/0.3485, allocations: 39.27 kB / 475.9 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002669/0.3487, allocations: 233.9 kB / 476.1 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.3488, allocations: 4 kB / 476.1 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.3488, allocations: 4 kB / 476.1 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001102/0.3489, allocations: 49.11 kB / 476.2 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003101/0.3492, allocations: 235.1 kB / 476.4 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.3492, allocations: 0 / 476.4 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.3493, allocations: 4 kB / 476.4 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.3493, allocations: 3.938 kB / 476.4 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004113/0.3497, allocations: 403.1 kB / 476.8 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002528/0.35, allocations: 254.4 kB / 477.1 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.3501, allocations: 87.92 kB / 477.2 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.3501, allocations: 11.61 kB / 477.2 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/0.3501, allocations: 39.84 kB / 477.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.683e-06/0.3501, allocations: 0 / 477.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002772/0.3504, allocations: 134.6 kB / 477.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.3505, allocations: 192 kB / 477.5 MB, free: 9.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.3506, allocations: 156.2 kB / 477.7 MB, free: 9.852 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.3506, allocations: 25.7 kB / 477.7 MB, free: 9.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.665e-05/0.3507, allocations: 87.39 kB / 477.8 MB, free: 9.734 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.3507, allocations: 10.75 kB / 477.8 MB, free: 9.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.999e-06/0.3507, allocations: 4 kB / 477.8 MB, free: 9.727 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.36e-05/0.3508, allocations: 329 kB / 478.1 MB, free: 9.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3e-05/0.3508, allocations: 16.88 kB / 478.1 MB, free: 9.398 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.255e-05/0.3509, allocations: 121.6 kB / 478.3 MB, free: 9.242 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.2e-05/0.3509, allocations: 33.88 kB / 478.3 MB, free: 9.219 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3509, allocations: 3.906 kB / 478.3 MB, free: 9.215 MB / 346.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001733/0.3511, allocations: 129 kB / 478.4 MB, free: 9.105 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.3511, allocations: 4 kB / 478.4 MB, free: 9.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3511, allocations: 4 kB / 478.4 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.3512, allocations: 11.91 kB / 478.4 MB, free: 9.086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.3513, allocations: 32 kB / 478.5 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.3513, allocations: 11.28 kB / 478.5 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.3514, allocations: 11.94 kB / 478.5 MB, free: 9.039 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.3514, allocations: 14.81 kB / 478.5 MB, free: 9.027 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 6.633e-05/0.3515, allocations: 112.8 kB / 478.6 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.3517, allocations: 108.6 kB / 478.7 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.822e-05/0.3517, allocations: 21.42 kB / 478.8 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3517, allocations: 4 kB / 478.8 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.3518, allocations: 4 kB / 478.8 MB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3518, allocations: 3.141 kB / 478.8 MB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.352, allocations: 187.8 kB / 478.9 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.352, allocations: 0 / 478.9 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001453/0.3521, allocations: 50.36 kB / 479 MB, free: 8.586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.3521, allocations: 3.938 kB / 479 MB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.3522, allocations: 7.906 kB / 479 MB, free: 8.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.3522, allocations: 3.141 kB / 479 MB, free: 8.574 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3522, allocations: 5.484 kB / 479 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002472/0.3524, allocations: 368.3 kB / 479.4 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.782e-05/0.3525, allocations: 115.6 kB / 479.5 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.3526, allocations: 4 kB / 479.5 MB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.3527, allocations: 15.33 kB / 479.5 MB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.821e-05/0.3528, allocations: 0 / 479.5 MB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.3528, allocations: 8 kB / 479.5 MB, free: 8.062 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.626e-05/0.3528, allocations: 122.7 kB / 479.6 MB, free: 7.965 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003099/0.3532, allocations: 16 kB / 479.7 MB, free: 7.949 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 9.32e-05/0.3533, allocations: 108.2 kB / 479.8 MB, free: 7.836 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001438/0.3534, allocations: 76.05 kB / 479.8 MB, free: 7.781 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3534, allocations: 0 / 479.8 MB, free: 7.781 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.716e-05/0.3534, allocations: 9.625 kB / 479.8 MB, free: 7.777 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004023/0.3538, allocations: 84.7 kB / 479.9 MB, free: 7.723 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008442/0.3547, allocations: 322 kB / 480.2 MB, free: 7.438 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.3549, allocations: 0.7456 MB / 481 MB, free: 6.691 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3549, allocations: 4 kB / 481 MB, free: 6.688 MB / 346.7 MB Notification: Performance of Templates: time 0.003575/0.3585, allocations: 1.439 MB / 482.4 MB, free: 5.707 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,hold1.y,// shiftSample1.y Variables in the result:hold1.bits,hold1.compDelay.resolution,hold1.compDelay.shiftCounter,hold1.computationalDelay,hold1.hold1.y_start,hold1.limited,hold1.limiter.uMax,hold1.limiter.uMin,hold1.quantized,hold1.resolution,hold1.shiftCounter,hold1.y,hold1.yMax,hold1.yMin,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time