Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") [: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.002568/0.002568, allocations: 176.5 kB / 8.192 MB, free: 2.191 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.789/1.789, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.001279/0.001279, allocations: 98.42 kB / 261.8 MB, free: 13.6 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.09335/0.09335, allocations: 12.59 MB / 322.3 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.809e-06/9.908e-06, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08568/0.08572, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2837/0.3694, allocations: 77.68 MB / 0.4946 GB, free: 11.35 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/0.3698, allocations: 81.19 kB / 0.4946 GB, free: 11.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.005423/0.3752, allocations: 1.222 MB / 0.4958 GB, free: 11.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.3753, allocations: 0.8438 kB / 0.4958 GB, free: 11.25 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003402/0.3756, allocations: 364.3 kB / 0.4962 GB, free: 10.89 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.3757, allocations: 7.656 kB / 0.4962 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.3757, allocations: 11.69 kB / 0.4962 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002073/0.3759, allocations: 193.4 kB / 0.4964 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.3759, allocations: 3.875 kB / 0.4964 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.407e-05/0.376, allocations: 7.828 kB / 0.4964 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001025/0.3761, allocations: 26.53 kB / 0.4964 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002391/0.3763, allocations: 120.9 kB / 0.4965 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.3764, allocations: 0 / 0.4965 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.3764, allocations: 0 / 0.4965 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3764, allocations: 0 / 0.4965 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003854/0.3768, allocations: 353.9 kB / 0.4969 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.153e-05/0.3769, allocations: 82.39 kB / 0.4969 GB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.124e-05/0.377, allocations: 44.03 kB / 0.497 GB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.556e-05/0.377, allocations: 1.359 kB / 0.497 GB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.377, allocations: 37.91 kB / 0.497 GB, free: 10.06 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.734e-06/0.377, allocations: 0 / 0.497 GB, free: 10.06 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002406/0.3773, allocations: 72.86 kB / 0.4971 GB, free: 10.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.3774, allocations: 134 kB / 0.4972 GB, free: 9.855 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.3775, allocations: 125.5 kB / 0.4973 GB, free: 9.766 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.3775, allocations: 25.7 kB / 0.4974 GB, free: 9.734 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.059e-05/0.3776, allocations: 150.8 kB / 0.4975 GB, free: 9.586 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.3776, allocations: 12.91 kB / 0.4975 GB, free: 9.578 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.52e-06/0.3776, allocations: 4.125 kB / 0.4975 GB, free: 9.574 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.287e-05/0.3777, allocations: 319.9 kB / 0.4978 GB, free: 9.258 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.707e-05/0.3777, allocations: 3.906 kB / 0.4978 GB, free: 9.258 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.967e-05/0.3778, allocations: 40.39 kB / 0.4979 GB, free: 9.219 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.843e-05/0.3778, allocations: 12.88 kB / 0.4979 GB, free: 9.215 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3778, allocations: 0 / 0.4979 GB, free: 9.215 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001278/0.378, allocations: 69.91 kB / 0.498 GB, free: 9.176 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.378, allocations: 6.094 kB / 0.498 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.378, allocations: 0 / 0.498 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.378, allocations: 3.906 kB / 0.498 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.3782, allocations: 14.67 kB / 0.498 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.3782, allocations: 4.156 kB / 0.498 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.768e-05/0.3783, allocations: 7.812 kB / 0.498 GB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.3783, allocations: 5.266 kB / 0.498 GB, free: 9.168 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (6): * Single equations (assignments): 6 * 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.21e-05/0.3783, allocations: 29.64 kB / 0.498 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.3785, allocations: 55.44 kB / 0.4981 GB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.371e-05/0.3785, allocations: 12.55 kB / 0.4981 GB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.3785, allocations: 3.906 kB / 0.4981 GB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3785, allocations: 4.062 kB / 0.4981 GB, free: 9.09 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.3786, allocations: 1.125 kB / 0.4981 GB, free: 9.09 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002179/0.3788, allocations: 154.4 kB / 0.4982 GB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3788, allocations: 5.047 kB / 0.4982 GB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.3789, allocations: 14.47 kB / 0.4983 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3789, allocations: 3.844 kB / 0.4983 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.379, allocations: 0 / 0.4983 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.379, allocations: 8.969 kB / 0.4983 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.379, allocations: 0 / 0.4983 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001692/0.3792, allocations: 289.2 kB / 0.4985 GB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.532e-05/0.3792, allocations: 101.6 kB / 0.4986 GB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.184e-05/0.3793, allocations: 4 kB / 0.4986 GB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.3795, allocations: 5.594 kB / 0.4987 GB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.192e-05/0.3795, allocations: 3.906 kB / 0.4987 GB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.3795, allocations: 1.594 kB / 0.4987 GB, free: 8.539 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.686e-05/0.3796, allocations: 108.5 kB / 0.4988 GB, free: 8.465 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000315/0.3799, allocations: 3.781 kB / 0.4988 GB, free: 8.465 MB / 330.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 8.449e-05/0.38, allocations: 107.9 kB / 0.4989 GB, free: 8.367 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001097/0.3801, allocations: 32.61 kB / 0.4989 GB, free: 8.359 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3801, allocations: 3.906 kB / 0.4989 GB, free: 8.359 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.753e-05/0.3802, allocations: 7.594 kB / 0.4989 GB, free: 8.359 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.3806, allocations: 23.09 kB / 0.4989 GB, free: 8.359 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003407/0.381, allocations: 151.2 kB / 0.4991 GB, free: 8.223 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.3812, allocations: 0.7199 MB / 0.4998 GB, free: 7.512 MB / 330.7 MB Notification: Performance of SimCode: time 6.91e-07/0.3812, allocations: 0 / 0.4998 GB, free: 7.512 MB / 330.7 MB Notification: Performance of Templates: time 0.002785/0.384, allocations: 0.906 MB / 0.5007 GB, free: 7.457 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches