Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.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.001629/0.001629, allocations: 180.1 kB / 8.194 MB, free: 2.18 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.747/1.747, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001285/0.001285, allocations: 92.03 kB / 261.8 MB, free: 13.62 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.09565/0.09565, allocations: 12.59 MB / 322.3 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.804e-06/7.945e-06, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08383/0.08387, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3017/0.3856, allocations: 77.49 MB / 0.4944 GB, free: 11.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.3859, allocations: 81.45 kB / 0.4944 GB, free: 11.8 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.005145/0.3911, allocations: 1.123 MB / 0.4955 GB, free: 11.72 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.3911, allocations: 4 kB / 0.4955 GB, free: 11.72 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.0003426/0.3915, allocations: 341.7 kB / 0.4959 GB, free: 11.37 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3915, allocations: 7.719 kB / 0.4959 GB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.385e-05/0.3916, allocations: 15.78 kB / 0.4959 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.3918, allocations: 190.2 kB / 0.4961 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.3918, allocations: 0 / 0.4961 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.799e-05/0.3919, allocations: 9.312 kB / 0.4961 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.963e-05/0.392, allocations: 16.97 kB / 0.4961 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002078/0.3922, allocations: 93.67 kB / 0.4962 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.3922, allocations: 4 kB / 0.4962 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.3922, allocations: 0 / 0.4962 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.3923, allocations: 3.906 kB / 0.4962 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003315/0.3926, allocations: 248.3 kB / 0.4964 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.991e-05/0.3927, allocations: 43.78 kB / 0.4965 GB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.077e-05/0.3927, allocations: 14.86 kB / 0.4965 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/0.3927, allocations: 7.531 kB / 0.4965 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.3928, allocations: 30.56 kB / 0.4965 GB, free: 10.72 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.523e-06/0.3928, allocations: 0 / 0.4965 GB, free: 10.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001733/0.393, allocations: 59.52 kB / 0.4966 GB, free: 10.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.088e-05/0.393, allocations: 77.11 kB / 0.4967 GB, free: 10.58 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.3931, allocations: 127.5 kB / 0.4968 GB, free: 10.49 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.036e-05/0.3931, allocations: 27.34 kB / 0.4968 GB, free: 10.46 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.106e-05/0.3932, allocations: 154.5 kB / 0.497 GB, free: 10.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.323e-05/0.3932, allocations: 0 / 0.497 GB, free: 10.3 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.3932, allocations: 0 / 0.497 GB, free: 10.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.235e-05/0.3933, allocations: 310.8 kB / 0.4972 GB, free: 9.992 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.008e-05/0.3933, allocations: 12.94 kB / 0.4973 GB, free: 9.988 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.107e-05/0.3933, allocations: 17.53 kB / 0.4973 GB, free: 9.969 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.289e-05/0.3934, allocations: 5.188 kB / 0.4973 GB, free: 9.969 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3934, allocations: 3.844 kB / 0.4973 GB, free: 9.969 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.458e-05/0.3935, allocations: 46.83 kB / 0.4973 GB, free: 9.926 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.3935, allocations: 6.031 kB / 0.4973 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3935, allocations: 128 / 0.4973 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.3935, allocations: 9.203 kB / 0.4973 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.403e-05/0.3936, allocations: 4.891 kB / 0.4974 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.3937, allocations: 0 / 0.4974 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.112e-05/0.3937, allocations: 5.281 kB / 0.4974 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.3937, allocations: 0 / 0.4974 GB, free: 9.922 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.064e-05/0.3938, allocations: 29.55 kB / 0.4974 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.581e-05/0.3939, allocations: 42.16 kB / 0.4974 GB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.005e-05/0.3939, allocations: 16.39 kB / 0.4974 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3939, allocations: 1.688 kB / 0.4974 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3939, allocations: 3.844 kB / 0.4974 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3939, allocations: 0 / 0.4974 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001551/0.3941, allocations: 144.5 kB / 0.4976 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3941, allocations: 0 / 0.4976 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.182e-05/0.3942, allocations: 9.031 kB / 0.4976 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.3942, allocations: 1.219 kB / 0.4976 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.3942, allocations: 0 / 0.4976 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.3942, allocations: 4 kB / 0.4976 GB, free: 9.676 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3943, allocations: 7.75 kB / 0.4976 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001125/0.3944, allocations: 156.7 kB / 0.4978 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.968e-05/0.3945, allocations: 91.56 kB / 0.4978 GB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.3945, allocations: 0 / 0.4978 GB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.3946, allocations: 9.562 kB / 0.4978 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.036e-05/0.3946, allocations: 1.734 kB / 0.4979 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.3947, allocations: 7.781 kB / 0.4979 GB, free: 9.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.819e-05/0.3947, allocations: 105.9 kB / 0.498 GB, free: 9.336 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002666/0.395, allocations: 7.75 kB / 0.498 GB, free: 9.332 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.04e-05/0.3951, allocations: 95.98 kB / 0.4981 GB, free: 9.242 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.265e-05/0.3952, allocations: 10.75 kB / 0.4981 GB, free: 9.242 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3952, allocations: 4.125 kB / 0.4981 GB, free: 9.238 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.326e-05/0.3952, allocations: 5.156 kB / 0.4981 GB, free: 9.238 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.3956, allocations: 21.38 kB / 0.4981 GB, free: 9.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003108/0.3959, allocations: 123.2 kB / 0.4982 GB, free: 9.109 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.3961, allocations: 0.7083 MB / 0.4989 GB, free: 8.402 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.3961, allocations: 0 / 0.4989 GB, free: 8.402 MB / 330.7 MB Notification: Performance of Templates: time 0.00248/0.3986, allocations: 0.7298 MB / 0.4996 GB, free: 8.363 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches