Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009968/0.0009969, allocations: 188.5 kB / 7.846 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.213/1.213, allocations: 205.2 MB / 213.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009658/0.0009658, allocations: 81.38 kB / 261.5 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06841/0.06841, allocations: 12.6 MB / 322 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.172e-05/1.193e-05, allocations: 0 / 378.4 MB, free: 75.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1393, allocations: 50.38 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3459/0.4852, allocations: 77.67 MB / 0.4946 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/0.4855, allocations: 77.66 kB / 0.4946 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003909/0.4895, allocations: 1.225 MB / 0.4958 GB, free: 11.57 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.4895, allocations: 7.844 kB / 0.4958 GB, free: 11.56 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.0003099/0.4898, allocations: 353.7 kB / 0.4962 GB, free: 11.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.4899, allocations: 11.47 kB / 0.4962 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.495e-05/0.4899, allocations: 11.66 kB / 0.4962 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001901/0.4901, allocations: 201.8 kB / 0.4964 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.4901, allocations: 0 / 0.4964 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.4901, allocations: 3.781 kB / 0.4964 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.509e-05/0.4902, allocations: 24.98 kB / 0.4964 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.4905, allocations: 124.1 kB / 0.4965 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.4905, allocations: 3.984 kB / 0.4965 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.4905, allocations: 0 / 0.4965 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.4905, allocations: 0 / 0.4965 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003985/0.4909, allocations: 344.2 kB / 0.4969 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.653e-05/0.491, allocations: 90.09 kB / 0.497 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.864e-05/0.4911, allocations: 39.78 kB / 0.497 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.288e-05/0.4911, allocations: 0.5156 kB / 0.497 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.4912, allocations: 45.38 kB / 0.497 GB, free: 10.37 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.4912, allocations: 0 / 0.497 GB, free: 10.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002254/0.4914, allocations: 60.95 kB / 0.4971 GB, free: 10.33 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/0.4914, allocations: 140.5 kB / 0.4972 GB, free: 10.17 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.4916, allocations: 124.9 kB / 0.4974 GB, free: 10.08 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.797e-06/0.4916, allocations: 29.7 kB / 0.4974 GB, free: 10.04 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.093e-05/0.4916, allocations: 82.48 kB / 0.4975 GB, free: 9.961 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.4916, allocations: 16.08 kB / 0.4975 GB, free: 9.953 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.526e-06/0.4916, allocations: 0 / 0.4975 GB, free: 9.953 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.525e-05/0.4917, allocations: 320.8 kB / 0.4978 GB, free: 9.637 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.909e-05/0.4917, allocations: 4.406 kB / 0.4978 GB, free: 9.637 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.742e-05/0.4918, allocations: 40.34 kB / 0.4978 GB, free: 9.594 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.65e-05/0.4918, allocations: 12.78 kB / 0.4978 GB, free: 9.594 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.4918, allocations: 0 / 0.4978 GB, free: 9.594 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.344e-05/0.4919, allocations: 71.58 kB / 0.4979 GB, free: 9.551 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.4919, allocations: 3.844 kB / 0.4979 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.4919, allocations: 4.156 kB / 0.4979 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.4919, allocations: 4.391 kB / 0.4979 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.318e-05/0.492, allocations: 13.77 kB / 0.4979 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.4921, allocations: 0.7969 kB / 0.4979 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.119e-05/0.4921, allocations: 4.406 kB / 0.4979 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.4921, allocations: 4.766 kB / 0.4979 GB, free: 9.547 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.776e-05/0.4922, allocations: 104.9 kB / 0.498 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.41e-05/0.4923, allocations: 62.78 kB / 0.4981 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.758e-05/0.4923, allocations: 13.11 kB / 0.4981 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.4923, allocations: 8.25 kB / 0.4981 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4923, allocations: 0 / 0.4981 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.4924, allocations: 4.203 kB / 0.4981 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/0.4925, allocations: 154.1 kB / 0.4983 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4926, allocations: 0 / 0.4983 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.253e-05/0.4926, allocations: 14.44 kB / 0.4983 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.4926, allocations: 0 / 0.4983 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.4927, allocations: 11.83 kB / 0.4983 GB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.4927, allocations: 4.5 kB / 0.4983 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4927, allocations: 128 / 0.4983 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001444/0.4928, allocations: 293 kB / 0.4986 GB, free: 8.938 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.314e-05/0.4929, allocations: 93.44 kB / 0.4987 GB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.4929, allocations: 4.453 kB / 0.4987 GB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.493, allocations: 4.516 kB / 0.4987 GB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.284e-05/0.4931, allocations: 5.172 kB / 0.4987 GB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.4931, allocations: 4.703 kB / 0.4987 GB, free: 8.836 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.109e-05/0.4931, allocations: 104.3 kB / 0.4988 GB, free: 8.762 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002631/0.4934, allocations: 11.66 kB / 0.4988 GB, free: 8.758 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.498e-05/0.4935, allocations: 107.8 kB / 0.4989 GB, free: 8.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.881e-05/0.4936, allocations: 27.78 kB / 0.4989 GB, free: 8.656 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4936, allocations: 0 / 0.4989 GB, free: 8.656 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.093e-05/0.4936, allocations: 7.953 kB / 0.4989 GB, free: 8.656 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.4939, allocations: 22.44 kB / 0.499 GB, free: 8.656 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000275/0.4942, allocations: 128.5 kB / 0.4991 GB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.4944, allocations: 0.7184 MB / 0.4998 GB, free: 7.84 MB / 330.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4944, allocations: 0 / 0.4998 GB, free: 7.84 MB / 330.7 MB Notification: Performance of Templates: time 0.002776/0.4972, allocations: 0.6517 MB / 0.5004 GB, free: 7.777 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:hold.y,sample.y,shiftSample.y,time Variables in the result:hold.y,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time