Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") [: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.001143/0.001143, allocations: 195.8 kB / 8.535 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 225.5 MB / 234.4 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009102/0.0009102, allocations: 93.12 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.576e-06/8.606e-06, allocations: 4 kB / 343.1 MB, free: 8.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08626/0.08629, allocations: 51.48 MB / 394.6 MB, free: 5.113 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2332/0.3195, allocations: 77.6 MB / 472.2 MB, free: 13.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001852/0.3198, allocations: 72.42 kB / 472.3 MB, free: 13.96 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.004093/0.3239, allocations: 1.473 MB / 473.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.3239, allocations: 7.391 kB / 473.8 MB, free: 13.18 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003044/0.3242, allocations: 366.5 kB / 474.1 MB, free: 12.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.3242, allocations: 8.031 kB / 474.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.3244, allocations: 27.23 kB / 474.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.3245, allocations: 198.3 kB / 474.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.3245, allocations: 4 kB / 474.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.3246, allocations: 4 kB / 474.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.451e-05/0.3247, allocations: 30.34 kB / 474.4 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.3248, allocations: 117.8 kB / 474.5 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.3248, allocations: 0 / 474.5 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.3249, allocations: 7.328 kB / 474.5 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.3249, allocations: 0 / 474.5 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003058/0.3252, allocations: 275.1 kB / 474.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.3253, allocations: 151.4 kB / 474.9 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.277e-05/0.3254, allocations: 30.81 kB / 475 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.3254, allocations: 3.125 kB / 475 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.479e-05/0.3255, allocations: 63.28 kB / 475 MB, free: 11.88 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.222e-06/0.3255, allocations: 0 / 475 MB, free: 11.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001532/0.3256, allocations: 77.48 kB / 475.1 MB, free: 11.81 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.3257, allocations: 80.3 kB / 475.2 MB, free: 11.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.902e-05/0.3258, allocations: 131.3 kB / 475.3 MB, free: 11.6 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.3258, allocations: 25.7 kB / 475.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.006e-05/0.3258, allocations: 84.14 kB / 475.4 MB, free: 11.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.3258, allocations: 24.94 kB / 475.4 MB, free: 11.47 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-06/0.3259, allocations: 3.938 kB / 475.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.57e-05/0.3259, allocations: 317.9 kB / 475.8 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.075e-05/0.326, allocations: 14.47 kB / 475.8 MB, free: 11.14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.008e-05/0.326, allocations: 50.16 kB / 475.8 MB, free: 11.08 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.188e-05/0.326, allocations: 26.47 kB / 475.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3261, allocations: 3.938 kB / 475.8 MB, free: 11.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001221/0.3262, allocations: 90.53 kB / 475.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.3262, allocations: 4 kB / 475.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.3262, allocations: 4 kB / 475.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.3262, allocations: 3.906 kB / 475.9 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.938e-05/0.3263, allocations: 19.44 kB / 476 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.249e-06/0.3263, allocations: 4 kB / 476 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.692e-05/0.3264, allocations: 4 kB / 476 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.3264, allocations: 9.062 kB / 476 MB, free: 10.95 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: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,clockToTrigger.y,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 4.865e-05/0.3264, allocations: 108.1 kB / 476.1 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.837e-05/0.3265, allocations: 56.25 kB / 476.1 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.172e-05/0.3265, allocations: 15.59 kB / 476.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3265, allocations: 4 kB / 476.2 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3266, allocations: 0 / 476.2 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.3266, allocations: 0 / 476.2 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001954/0.3268, allocations: 303.8 kB / 476.5 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.3268, allocations: 3.312 kB / 476.5 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.277e-05/0.3268, allocations: 8 kB / 476.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.3269, allocations: 4 kB / 476.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.3269, allocations: 3.281 kB / 476.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3269, allocations: 4 kB / 476.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3269, allocations: 0 / 476.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001066/0.327, allocations: 195.2 kB / 476.7 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.106e-05/0.327, allocations: 92.33 kB / 476.8 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.3271, allocations: 4 kB / 476.8 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.129e-05/0.3272, allocations: 15.28 kB / 476.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.85e-05/0.3272, allocations: 3.688 kB / 476.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.3272, allocations: 4 kB / 476.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.031e-05/0.3272, allocations: 105 kB / 476.9 MB, free: 10.05 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002312/0.3275, allocations: 15.94 kB / 476.9 MB, free: 10.04 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (clockToTrigger.y2,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 8.683e-05/0.3276, allocations: 103.3 kB / 477 MB, free: 9.926 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.3277, allocations: 55.41 kB / 477.1 MB, free: 9.891 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.3277, allocations: 320 / 477.1 MB, free: 9.891 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.124e-05/0.3277, allocations: 19.44 kB / 477.1 MB, free: 9.875 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002318/0.328, allocations: 25.17 kB / 477.1 MB, free: 9.859 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002584/0.3282, allocations: 123.5 kB / 477.2 MB, free: 9.734 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.3284, allocations: 0.7202 MB / 477.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3284, allocations: 0 / 477.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of Templates: time 0.002558/0.331, allocations: 0.7756 MB / 478.7 MB, free: 8.57 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches