Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") [: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.001722/0.001722, allocations: 176.1 kB / 8.191 MB, free: 2.16 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.951/1.951, allocations: 205.2 MB / 213.8 MB, free: 13.94 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.001275/0.001275, allocations: 96.02 kB / 261.8 MB, free: 13.64 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.09459/0.09459, allocations: 12.59 MB / 322.4 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.929e-06/1.011e-05, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09341/0.09346, allocations: 50.37 MB / 428.8 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2924/0.3859, allocations: 77.5 MB / 0.4944 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.3862, allocations: 80.5 kB / 0.4945 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.00523/0.3915, allocations: 1.124 MB / 0.4956 GB, free: 11.65 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.3915, allocations: 3.812 kB / 0.4956 GB, free: 11.65 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.0003527/0.3919, allocations: 350.1 kB / 0.4959 GB, free: 11.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.3919, allocations: 7.781 kB / 0.4959 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.767e-05/0.392, allocations: 11.62 kB / 0.4959 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002029/0.3922, allocations: 193.8 kB / 0.4961 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.3922, allocations: 0 / 0.4961 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.3923, allocations: 3.844 kB / 0.4961 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001002/0.3924, allocations: 18.16 kB / 0.4961 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000211/0.3926, allocations: 100.2 kB / 0.4962 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.3926, allocations: 7.938 kB / 0.4962 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.3926, allocations: 7.844 kB / 0.4962 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.3926, allocations: 3.969 kB / 0.4962 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003531/0.393, allocations: 250.2 kB / 0.4965 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.987e-05/0.3931, allocations: 73.08 kB / 0.4965 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.706e-05/0.3932, allocations: 24.3 kB / 0.4966 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.3932, allocations: 8.625 kB / 0.4966 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.3933, allocations: 39.97 kB / 0.4966 GB, free: 10.59 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.613e-06/0.3933, allocations: 0 / 0.4966 GB, free: 10.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002073/0.3935, allocations: 61.88 kB / 0.4967 GB, free: 10.55 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.3935, allocations: 102.8 kB / 0.4968 GB, free: 10.42 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.3937, allocations: 127.5 kB / 0.4969 GB, free: 10.33 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.3937, allocations: 25.7 kB / 0.4969 GB, free: 10.3 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.34e-05/0.3937, allocations: 154.7 kB / 0.4971 GB, free: 10.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.596e-05/0.3938, allocations: 4.812 kB / 0.4971 GB, free: 10.14 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/0.3938, allocations: 3.938 kB / 0.4971 GB, free: 10.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.533e-05/0.3938, allocations: 318.7 kB / 0.4974 GB, free: 9.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.001e-05/0.3939, allocations: 3.844 kB / 0.4974 GB, free: 9.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.414e-05/0.3939, allocations: 27.94 kB / 0.4974 GB, free: 9.789 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.256e-05/0.394, allocations: 16.73 kB / 0.4974 GB, free: 9.785 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.394, allocations: 0 / 0.4974 GB, free: 9.785 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001046/0.3941, allocations: 48.14 kB / 0.4975 GB, free: 9.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.3941, allocations: 10.22 kB / 0.4975 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3941, allocations: 0 / 0.4975 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.3942, allocations: 1.688 kB / 0.4975 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.3943, allocations: 13.11 kB / 0.4975 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.3943, allocations: 4 kB / 0.4975 GB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.935e-05/0.3944, allocations: 13.17 kB / 0.4975 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.545e-06/0.3944, allocations: 0 / 0.4975 GB, free: 9.738 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 4.325e-05/0.3944, allocations: 33.52 kB / 0.4975 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.916e-05/0.3945, allocations: 47.16 kB / 0.4976 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.39e-05/0.3946, allocations: 8.859 kB / 0.4976 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.3946, allocations: 0 / 0.4976 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3946, allocations: 9.406 kB / 0.4976 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.3946, allocations: 0 / 0.4976 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.3948, allocations: 150.1 kB / 0.4977 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3948, allocations: 3.812 kB / 0.4977 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.609e-05/0.3949, allocations: 13.91 kB / 0.4978 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.3949, allocations: 0 / 0.4978 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.395, allocations: 0 / 0.4978 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.395, allocations: 3.844 kB / 0.4978 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.395, allocations: 1.219 kB / 0.4978 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001513/0.3951, allocations: 191.9 kB / 0.498 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.543e-05/0.3952, allocations: 95.73 kB / 0.498 GB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.3952, allocations: 1.078 kB / 0.498 GB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.3954, allocations: 9.188 kB / 0.4981 GB, free: 9.203 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.391e-05/0.3954, allocations: 3.844 kB / 0.4981 GB, free: 9.203 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.3954, allocations: 1.406 kB / 0.4981 GB, free: 9.203 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.101e-05/0.3955, allocations: 109.6 kB / 0.4982 GB, free: 9.125 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002789/0.3958, allocations: 7.688 kB / 0.4982 GB, free: 9.125 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 9.519e-05/0.3959, allocations: 97.53 kB / 0.4983 GB, free: 9.035 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001024/0.396, allocations: 16 kB / 0.4983 GB, free: 9.035 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.396, allocations: 4.188 kB / 0.4983 GB, free: 9.031 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.285e-05/0.3961, allocations: 13.2 kB / 0.4983 GB, free: 9.023 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.3964, allocations: 25.5 kB / 0.4983 GB, free: 9.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000325/0.3968, allocations: 133 kB / 0.4984 GB, free: 8.895 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000197/0.397, allocations: 0.7061 MB / 0.4991 GB, free: 8.188 MB / 330.7 MB Notification: Performance of SimCode: time 6.81e-07/0.397, allocations: 3.938 kB / 0.4991 GB, free: 8.184 MB / 330.7 MB Notification: Performance of Templates: time 0.002716/0.3997, allocations: 0.8212 MB / 0.4999 GB, free: 8.137 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches