Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") [: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.001061/0.001061, allocations: 191.6 kB / 7.848 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.272/1.272, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0009009/0.000901, allocations: 95.41 kB / 261.5 MB, free: 13.53 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.06987/0.06987, allocations: 12.59 MB / 322 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.838e-06/9.868e-06, allocations: 4 kB / 378.4 MB, free: 75.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08288/0.08291, allocations: 50.38 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2534/0.3364, allocations: 77.52 MB / 0.4944 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.3367, allocations: 77.36 kB / 0.4945 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.00472/0.3414, allocations: 1.663 MB / 0.4961 GB, free: 11.49 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.3414, allocations: 0 / 0.4961 GB, free: 11.49 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003417/0.3418, allocations: 355.1 kB / 0.4965 GB, free: 11.13 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3418, allocations: 11.5 kB / 0.4965 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.257e-05/0.3419, allocations: 11.69 kB / 0.4965 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.3421, allocations: 194.1 kB / 0.4967 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.3421, allocations: 0 / 0.4967 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.037e-05/0.3421, allocations: 0 / 0.4967 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.642e-05/0.3422, allocations: 24.36 kB / 0.4967 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.3424, allocations: 107.6 kB / 0.4968 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.3425, allocations: 0 / 0.4968 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.3425, allocations: 3.906 kB / 0.4968 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.3425, allocations: 0 / 0.4968 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003643/0.3429, allocations: 255.1 kB / 0.497 GB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.705e-05/0.343, allocations: 60.47 kB / 0.4971 GB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.995e-05/0.343, allocations: 26.73 kB / 0.4971 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.343, allocations: 4.516 kB / 0.4971 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.3431, allocations: 38.84 kB / 0.4972 GB, free: 10.44 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.212e-06/0.3431, allocations: 0 / 0.4972 GB, free: 10.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.000194/0.3433, allocations: 55.83 kB / 0.4972 GB, free: 10.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.3433, allocations: 111.5 kB / 0.4973 GB, free: 10.27 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.3434, allocations: 132.1 kB / 0.4974 GB, free: 10.17 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.247e-06/0.3435, allocations: 25.7 kB / 0.4975 GB, free: 10.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.844e-05/0.3435, allocations: 85.72 kB / 0.4976 GB, free: 10.06 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.807e-05/0.3435, allocations: 4.109 kB / 0.4976 GB, free: 10.06 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-06/0.3435, allocations: 0 / 0.4976 GB, free: 10.06 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.467e-05/0.3436, allocations: 317.9 kB / 0.4979 GB, free: 9.742 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.729e-05/0.3436, allocations: 7.531 kB / 0.4979 GB, free: 9.742 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.354e-05/0.3436, allocations: 27.69 kB / 0.4979 GB, free: 9.711 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.725e-05/0.3437, allocations: 16.36 kB / 0.4979 GB, free: 9.703 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.3437, allocations: 0 / 0.4979 GB, free: 9.703 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.232e-05/0.3438, allocations: 60.31 kB / 0.498 GB, free: 9.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.3438, allocations: 3.844 kB / 0.498 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.3438, allocations: 3.844 kB / 0.498 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.3438, allocations: 4.875 kB / 0.498 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.378e-05/0.3439, allocations: 9.516 kB / 0.498 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.344, allocations: 3.938 kB / 0.498 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.171e-05/0.344, allocations: 5.297 kB / 0.498 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.867e-06/0.344, allocations: 7.688 kB / 0.498 GB, free: 9.652 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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.487e-05/0.3441, allocations: 104.6 kB / 0.4981 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.579e-05/0.3442, allocations: 50.8 kB / 0.4982 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.569e-05/0.3442, allocations: 12.91 kB / 0.4982 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.3443, allocations: 3.844 kB / 0.4982 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.3443, allocations: 4 kB / 0.4982 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.3443, allocations: 4.453 kB / 0.4982 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001614/0.3444, allocations: 148.3 kB / 0.4983 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.3445, allocations: 0 / 0.4983 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.676e-05/0.3445, allocations: 10.38 kB / 0.4983 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.3445, allocations: 3.844 kB / 0.4983 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.3446, allocations: 7.719 kB / 0.4983 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3446, allocations: 4 kB / 0.4983 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.3446, allocations: 0.75 kB / 0.4983 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001354/0.3447, allocations: 182.3 kB / 0.4985 GB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.206e-05/0.3448, allocations: 96.31 kB / 0.4986 GB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.3448, allocations: 11.75 kB / 0.4986 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.829e-05/0.3449, allocations: 8.672 kB / 0.4986 GB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.093e-05/0.3449, allocations: 0.75 kB / 0.4986 GB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.804e-06/0.3449, allocations: 4.828 kB / 0.4986 GB, free: 9.035 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.883e-05/0.345, allocations: 104.3 kB / 0.4987 GB, free: 8.961 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002313/0.3453, allocations: 3.844 kB / 0.4987 GB, free: 8.961 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.321e-05/0.3453, allocations: 99.39 kB / 0.4988 GB, free: 8.871 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.309e-05/0.3454, allocations: 24.53 kB / 0.4989 GB, free: 8.863 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3454, allocations: 0 / 0.4989 GB, free: 8.863 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.397e-05/0.3455, allocations: 4.547 kB / 0.4989 GB, free: 8.863 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.3457, allocations: 24.61 kB / 0.4989 GB, free: 8.859 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002509/0.346, allocations: 111.1 kB / 0.499 GB, free: 8.754 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.3462, allocations: 0.7146 MB / 0.4997 GB, free: 8.043 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3462, allocations: 0 / 0.4997 GB, free: 8.043 MB / 330.7 MB Notification: Performance of Templates: time 0.002425/0.3486, allocations: 0.5437 MB / 0.5002 GB, free: 7.988 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches