Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") [: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.001597/0.001597, allocations: 179.7 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.97/1.97, 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.001286/0.001285, allocations: 98.89 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.09732/0.09732, allocations: 12.59 MB / 322.3 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.939e-06/1.003e-05, allocations: 0 / 378.4 MB, free: 76.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09237/0.09241, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2924/0.3849, allocations: 77.61 MB / 0.4945 GB, free: 11.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.3852, allocations: 81.22 kB / 0.4946 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.005803/0.391, allocations: 1.236 MB / 0.4958 GB, free: 11.67 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.3911, allocations: 0 / 0.4958 GB, free: 11.67 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.0003697/0.3914, allocations: 369.7 kB / 0.4961 GB, free: 11.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.3915, allocations: 7.719 kB / 0.4961 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.399e-05/0.3916, allocations: 11.56 kB / 0.4961 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002264/0.3918, allocations: 199.2 kB / 0.4963 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.586e-06/0.3918, allocations: 3.969 kB / 0.4963 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.783e-05/0.3918, allocations: 3.984 kB / 0.4963 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001104/0.392, allocations: 27.95 kB / 0.4964 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000253/0.3922, allocations: 121.9 kB / 0.4965 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3922, allocations: 0 / 0.4965 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.3923, allocations: 0 / 0.4965 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.3923, allocations: 9.188 kB / 0.4965 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003943/0.3927, allocations: 276.2 kB / 0.4968 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001006/0.3928, allocations: 87.66 kB / 0.4968 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.191e-05/0.3929, allocations: 34.97 kB / 0.4969 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.3929, allocations: 5.453 kB / 0.4969 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.393, allocations: 34 kB / 0.4969 GB, free: 10.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.634e-06/0.393, allocations: 0 / 0.4969 GB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002392/0.3932, allocations: 75.66 kB / 0.497 GB, free: 10.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.3933, allocations: 137.4 kB / 0.4971 GB, free: 10.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.3934, allocations: 127 kB / 0.4972 GB, free: 10.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.3934, allocations: 26.73 kB / 0.4973 GB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.542e-05/0.3935, allocations: 154.6 kB / 0.4974 GB, free: 10.06 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.3935, allocations: 4.125 kB / 0.4974 GB, free: 10.06 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-06/0.3935, allocations: 4 kB / 0.4974 GB, free: 10.06 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.581e-05/0.3936, allocations: 311.8 kB / 0.4977 GB, free: 9.746 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.651e-05/0.3936, allocations: 7.406 kB / 0.4977 GB, free: 9.746 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.255e-05/0.3937, allocations: 42.33 kB / 0.4978 GB, free: 9.699 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.096e-05/0.3937, allocations: 17.39 kB / 0.4978 GB, free: 9.691 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3937, allocations: 3.938 kB / 0.4978 GB, free: 9.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001286/0.3939, allocations: 59.98 kB / 0.4978 GB, free: 9.652 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.3939, allocations: 6 kB / 0.4978 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.3939, allocations: 3.875 kB / 0.4978 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.394, allocations: 1.5 kB / 0.4978 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.3941, allocations: 16.81 kB / 0.4979 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.3941, allocations: 9.016 kB / 0.4979 GB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.024e-05/0.3942, allocations: 8.812 kB / 0.4979 GB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.3942, allocations: 0 / 0.4979 GB, free: 9.641 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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.813e-05/0.3943, allocations: 36.55 kB / 0.4979 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.3944, allocations: 60.22 kB / 0.498 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.498e-05/0.3945, allocations: 15.95 kB / 0.498 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3945, allocations: 0 / 0.498 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3945, allocations: 0 / 0.498 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3946, allocations: 5.266 kB / 0.498 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.3947, allocations: 156.2 kB / 0.4981 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.3948, allocations: 0 / 0.4981 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.3949, allocations: 18.44 kB / 0.4982 GB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.3949, allocations: 0 / 0.4982 GB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.3949, allocations: 3.875 kB / 0.4982 GB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3949, allocations: 1.312 kB / 0.4982 GB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3949, allocations: 7.938 kB / 0.4982 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001712/0.3951, allocations: 219 kB / 0.4984 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.383e-05/0.3952, allocations: 96.8 kB / 0.4985 GB, free: 9.074 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.423e-05/0.3952, allocations: 7.562 kB / 0.4985 GB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.3954, allocations: 4.953 kB / 0.4985 GB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.909e-05/0.3954, allocations: 1.5 kB / 0.4985 GB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.3954, allocations: 7.75 kB / 0.4985 GB, free: 9.066 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.294e-05/0.3955, allocations: 116.7 kB / 0.4986 GB, free: 8.984 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002945/0.3958, allocations: 7.688 kB / 0.4986 GB, free: 8.984 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 9.687e-05/0.3959, allocations: 102 kB / 0.4987 GB, free: 8.891 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001276/0.3961, allocations: 27.88 kB / 0.4987 GB, free: 8.887 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3961, allocations: 0 / 0.4987 GB, free: 8.887 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.294e-05/0.3961, allocations: 12.42 kB / 0.4987 GB, free: 8.883 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004022/0.3965, allocations: 33.34 kB / 0.4988 GB, free: 8.879 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003871/0.3969, allocations: 153.6 kB / 0.4989 GB, free: 8.742 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.3972, allocations: 0.7204 MB / 0.4996 GB, free: 8.035 MB / 330.7 MB Notification: Performance of SimCode: time 7.02e-07/0.3972, allocations: 0 / 0.4996 GB, free: 8.035 MB / 330.7 MB Notification: Performance of Templates: time 0.00311/0.4003, allocations: 0.9906 MB / 0.5006 GB, free: 7.984 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches