Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001677/0.001676, allocations: 173.8 kB / 8.192 MB, free: 2.191 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.632/1.632, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.001251/0.001251, allocations: 94.91 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.09315/0.09315, allocations: 12.59 MB / 322.3 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.979e-06/1.009e-05, allocations: 0 / 378.4 MB, free: 76.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08819/0.08824, allocations: 50.37 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2776/0.3659, allocations: 77.52 MB / 0.4944 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.3663, allocations: 80.61 kB / 0.4945 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.007659/0.3739, allocations: 1.658 MB / 0.4961 GB, free: 11.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.374, allocations: 3.969 kB / 0.4961 GB, free: 11.53 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.0003737/0.3744, allocations: 354.4 kB / 0.4964 GB, free: 11.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.3744, allocations: 7.5 kB / 0.4964 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.964e-05/0.3745, allocations: 15.75 kB / 0.4965 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002147/0.3747, allocations: 197 kB / 0.4966 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.3747, allocations: 0 / 0.4966 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.3748, allocations: 3.875 kB / 0.4967 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001046/0.3749, allocations: 17.8 kB / 0.4967 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002276/0.3751, allocations: 99.92 kB / 0.4968 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.3751, allocations: 4 kB / 0.4968 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.3752, allocations: 3.906 kB / 0.4968 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.3752, allocations: 5.359 kB / 0.4968 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003917/0.3756, allocations: 251.2 kB / 0.497 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.799e-05/0.3757, allocations: 63.3 kB / 0.4971 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.761e-05/0.3757, allocations: 22.39 kB / 0.4971 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.137e-05/0.3758, allocations: 11.77 kB / 0.4971 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.3758, allocations: 39.3 kB / 0.4971 GB, free: 10.47 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.185e-06/0.3758, allocations: 3.938 kB / 0.4972 GB, free: 10.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002151/0.376, allocations: 54.98 kB / 0.4972 GB, free: 10.43 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.3761, allocations: 111.2 kB / 0.4973 GB, free: 10.3 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.3762, allocations: 127.9 kB / 0.4974 GB, free: 10.2 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.3763, allocations: 29.7 kB / 0.4975 GB, free: 10.17 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.445e-05/0.3763, allocations: 157.6 kB / 0.4976 GB, free: 10.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-05/0.3763, allocations: 0.6562 kB / 0.4976 GB, free: 10.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.778e-06/0.3763, allocations: 0 / 0.4976 GB, free: 10.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.523e-05/0.3764, allocations: 317.2 kB / 0.4979 GB, free: 9.703 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.179e-05/0.3764, allocations: 7.344 kB / 0.4979 GB, free: 9.703 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.288e-05/0.3765, allocations: 27.41 kB / 0.4979 GB, free: 9.672 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.287e-05/0.3765, allocations: 8.953 kB / 0.498 GB, free: 9.668 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.3765, allocations: 0 / 0.498 GB, free: 9.668 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000115/0.3766, allocations: 57.66 kB / 0.498 GB, free: 9.629 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3767, allocations: 9.875 kB / 0.498 GB, free: 9.629 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3767, allocations: 0 / 0.498 GB, free: 9.629 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.3767, allocations: 0 / 0.498 GB, free: 9.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.3769, allocations: 18.03 kB / 0.498 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.3769, allocations: 4.75 kB / 0.498 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.166e-05/0.377, allocations: 8.422 kB / 0.498 GB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.168e-06/0.377, allocations: 4 kB / 0.4981 GB, free: 9.613 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.703e-05/0.3771, allocations: 30.08 kB / 0.4981 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.3772, allocations: 50.2 kB / 0.4981 GB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.537e-05/0.3772, allocations: 12.5 kB / 0.4981 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3773, allocations: 4.062 kB / 0.4981 GB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3773, allocations: 0.6562 kB / 0.4981 GB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.3773, allocations: 3.906 kB / 0.4981 GB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.3775, allocations: 152.2 kB / 0.4983 GB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.3775, allocations: 0 / 0.4983 GB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.3776, allocations: 13.91 kB / 0.4983 GB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.3776, allocations: 0 / 0.4983 GB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.3776, allocations: 0.6094 kB / 0.4983 GB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.3776, allocations: 4.453 kB / 0.4983 GB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3776, allocations: 0 / 0.4983 GB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001503/0.3778, allocations: 194.9 kB / 0.4985 GB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/0.3779, allocations: 95.17 kB / 0.4986 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.325e-05/0.3779, allocations: 0.5625 kB / 0.4986 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.378, allocations: 8.531 kB / 0.4986 GB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.047e-05/0.3781, allocations: 5.203 kB / 0.4986 GB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.3781, allocations: 2.812 kB / 0.4986 GB, free: 9.078 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.633e-05/0.3782, allocations: 105.3 kB / 0.4987 GB, free: 9.004 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002733/0.3785, allocations: 11.62 kB / 0.4987 GB, free: 9 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.803e-05/0.3786, allocations: 95.19 kB / 0.4988 GB, free: 8.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001124/0.3787, allocations: 20.75 kB / 0.4988 GB, free: 8.906 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3787, allocations: 4.25 kB / 0.4988 GB, free: 8.902 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.19e-05/0.3787, allocations: 7.953 kB / 0.4988 GB, free: 8.902 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.3791, allocations: 20.86 kB / 0.4989 GB, free: 8.898 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003655/0.3795, allocations: 138.6 kB / 0.499 GB, free: 8.766 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001954/0.3797, allocations: 0.713 MB / 0.4997 GB, free: 8.059 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.3797, allocations: 256 / 0.4997 GB, free: 8.059 MB / 330.7 MB Notification: Performance of Templates: time 0.002772/0.3825, allocations: 0.8047 MB / 0.5005 GB, free: 8.012 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches