Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002508/0.002508, allocations: 173.1 kB / 8.19 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.843/1.843, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001362/0.001361, allocations: 83.59 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09778/0.09777, allocations: 12.59 MB / 322.3 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.356e-06/8.506e-06, allocations: 4 kB / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08128/0.08131, allocations: 50.36 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2788/0.3602, allocations: 78 MB / 0.4949 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.3605, allocations: 81.58 kB / 0.4949 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.006072/0.3666, allocations: 1.295 MB / 0.4962 GB, free: 11.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.3667, allocations: 11.56 kB / 0.4962 GB, free: 11.61 MB / 330.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.0004061/0.3671, allocations: 364 kB / 0.4966 GB, free: 11.24 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.3671, allocations: 8.422 kB / 0.4966 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.162e-05/0.3672, allocations: 7.781 kB / 0.4966 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002004/0.3674, allocations: 212.4 kB / 0.4968 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.3674, allocations: 3.844 kB / 0.4968 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.3675, allocations: 4.594 kB / 0.4968 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001319/0.3676, allocations: 32.7 kB / 0.4968 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002585/0.3679, allocations: 119.4 kB / 0.4969 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3679, allocations: 0 / 0.4969 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.3679, allocations: 0.5625 kB / 0.4969 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.3679, allocations: 3.844 kB / 0.4969 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004582/0.3684, allocations: 277.6 kB / 0.4972 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.3686, allocations: 140.5 kB / 0.4973 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.477e-05/0.3687, allocations: 33.44 kB / 0.4974 GB, free: 10.53 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.3687, allocations: 4.25 kB / 0.4974 GB, free: 10.53 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.654e-05/0.3688, allocations: 62.92 kB / 0.4974 GB, free: 10.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.843e-06/0.3688, allocations: 0 / 0.4974 GB, free: 10.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002477/0.3691, allocations: 76.94 kB / 0.4975 GB, free: 10.44 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.3692, allocations: 81.7 kB / 0.4976 GB, free: 10.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.3693, allocations: 128.3 kB / 0.4977 GB, free: 10.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.3693, allocations: 26.59 kB / 0.4977 GB, free: 10.22 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.468e-05/0.3694, allocations: 162.3 kB / 0.4979 GB, free: 10.06 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.328e-05/0.3694, allocations: 17.27 kB / 0.4979 GB, free: 10.05 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-06/0.3694, allocations: 0 / 0.4979 GB, free: 10.05 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.432e-05/0.3695, allocations: 320.5 kB / 0.4982 GB, free: 9.738 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.679e-05/0.3695, allocations: 15.19 kB / 0.4982 GB, free: 9.738 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.329e-05/0.3696, allocations: 49.91 kB / 0.4983 GB, free: 9.691 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.192e-05/0.3697, allocations: 25.91 kB / 0.4983 GB, free: 9.684 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3697, allocations: 0 / 0.4983 GB, free: 9.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001932/0.3699, allocations: 85.69 kB / 0.4984 GB, free: 9.648 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.3699, allocations: 10.84 kB / 0.4984 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3699, allocations: 0 / 0.4984 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.37, allocations: 3.906 kB / 0.4984 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.3701, allocations: 22.55 kB / 0.4984 GB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.3701, allocations: 3.906 kB / 0.4984 GB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.297e-05/0.3702, allocations: 9.078 kB / 0.4984 GB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.3702, allocations: 4.516 kB / 0.4984 GB, free: 9.633 MB / 330.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 5.573e-05/0.3703, allocations: 33.2 kB / 0.4985 GB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.025e-05/0.3704, allocations: 56.14 kB / 0.4985 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.667e-05/0.3705, allocations: 17.91 kB / 0.4985 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3705, allocations: 7.906 kB / 0.4985 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.371e-06/0.3705, allocations: 0 / 0.4985 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3705, allocations: 0.8438 kB / 0.4985 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003151/0.3708, allocations: 297.5 kB / 0.4988 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3709, allocations: 192 / 0.4988 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.371, allocations: 22.7 kB / 0.4988 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.371, allocations: 3.938 kB / 0.4989 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.371, allocations: 3.938 kB / 0.4989 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.371, allocations: 0 / 0.4989 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.371, allocations: 4 kB / 0.4989 GB, free: 9.266 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001747/0.3712, allocations: 191.6 kB / 0.499 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.845e-05/0.3713, allocations: 100.9 kB / 0.4991 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.3713, allocations: 3.25 kB / 0.4991 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.3715, allocations: 6.688 kB / 0.4991 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.3715, allocations: 4 kB / 0.4992 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.3715, allocations: 4.922 kB / 0.4992 GB, free: 8.996 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.682e-05/0.3716, allocations: 110.8 kB / 0.4993 GB, free: 8.918 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002918/0.3719, allocations: 11.81 kB / 0.4993 GB, free: 8.918 MB / 330.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 0.0001017/0.372, allocations: 95.98 kB / 0.4994 GB, free: 8.832 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001635/0.3722, allocations: 48.12 kB / 0.4994 GB, free: 8.828 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3722, allocations: 0 / 0.4994 GB, free: 8.828 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.858e-05/0.3723, allocations: 19.81 kB / 0.4994 GB, free: 8.82 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/0.3726, allocations: 20.09 kB / 0.4994 GB, free: 8.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003825/0.373, allocations: 150.6 kB / 0.4996 GB, free: 8.699 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002475/0.3733, allocations: 0.7208 MB / 0.5003 GB, free: 7.992 MB / 330.7 MB Notification: Performance of SimCode: time 1.413e-06/0.3733, allocations: 0 / 0.5003 GB, free: 7.992 MB / 330.7 MB Notification: Performance of Templates: time 0.003045/0.3764, allocations: 1.023 MB / 0.5013 GB, free: 7.922 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches