Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.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.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.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.001647/0.001646, allocations: 175.4 kB / 8.189 MB, free: 2.188 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.668/1.668, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.00125, allocations: 88.58 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.09485/0.09485, allocations: 12.58 MB / 322.3 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.504e-06/7.775e-06, allocations: 0 / 378.4 MB, free: 76.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08247/0.08251, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2843/0.3668, allocations: 77.51 MB / 0.4944 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002327/0.3671, allocations: 79.05 kB / 0.4945 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.007266/0.3744, allocations: 1.648 MB / 0.4961 GB, free: 11.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.3744, allocations: 4 kB / 0.4961 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.0003369/0.3748, allocations: 346.7 kB / 0.4964 GB, free: 11.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.3748, allocations: 11.69 kB / 0.4964 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.234e-05/0.3749, allocations: 11.66 kB / 0.4964 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002003/0.3751, allocations: 187.7 kB / 0.4966 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.3751, allocations: 3.844 kB / 0.4966 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.3751, allocations: 1.5 kB / 0.4966 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.452e-05/0.3753, allocations: 22.03 kB / 0.4966 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002063/0.3755, allocations: 93.44 kB / 0.4967 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.3755, allocations: 0 / 0.4967 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.3755, allocations: 4 kB / 0.4967 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3755, allocations: 0 / 0.4967 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003349/0.3759, allocations: 248.2 kB / 0.497 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.233e-05/0.3759, allocations: 44.25 kB / 0.497 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.082e-05/0.376, allocations: 16.97 kB / 0.497 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.376, allocations: 1.547 kB / 0.497 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.376, allocations: 31.41 kB / 0.4971 GB, free: 10.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.683e-06/0.3761, allocations: 0 / 0.4971 GB, free: 10.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001738/0.3762, allocations: 51.31 kB / 0.4971 GB, free: 10.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.3763, allocations: 81.17 kB / 0.4972 GB, free: 10.52 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.3764, allocations: 124.1 kB / 0.4973 GB, free: 10.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.117e-06/0.3764, allocations: 25.7 kB / 0.4973 GB, free: 10.4 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.139e-05/0.3765, allocations: 154.5 kB / 0.4975 GB, free: 10.25 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.409e-05/0.3765, allocations: 1.266 kB / 0.4975 GB, free: 10.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-06/0.3765, allocations: 0 / 0.4975 GB, free: 10.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.358e-05/0.3766, allocations: 314.8 kB / 0.4978 GB, free: 9.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.867e-05/0.3766, allocations: 7.219 kB / 0.4978 GB, free: 9.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.174e-05/0.3766, allocations: 18.67 kB / 0.4978 GB, free: 9.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.501e-05/0.3767, allocations: 4.781 kB / 0.4978 GB, free: 9.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3767, allocations: 3.875 kB / 0.4978 GB, free: 9.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.593e-05/0.3768, allocations: 47.72 kB / 0.4979 GB, free: 9.867 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.3768, allocations: 3.812 kB / 0.4979 GB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3768, allocations: 4.938 kB / 0.4979 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.3768, allocations: 3.969 kB / 0.4979 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.3769, allocations: 9.016 kB / 0.4979 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.3769, allocations: 1.719 kB / 0.4979 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.315e-05/0.377, allocations: 8.844 kB / 0.4979 GB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-06/0.377, allocations: 0 / 0.4979 GB, free: 9.855 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 3.913e-05/0.3771, allocations: 29.52 kB / 0.4979 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.61e-05/0.3772, allocations: 37.95 kB / 0.4979 GB, free: 9.789 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.177e-05/0.3772, allocations: 13.45 kB / 0.498 GB, free: 9.777 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.3772, allocations: 3.938 kB / 0.498 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3772, allocations: 7.75 kB / 0.498 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3772, allocations: 1.312 kB / 0.498 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001579/0.3774, allocations: 145.4 kB / 0.4981 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3774, allocations: 3.984 kB / 0.4981 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.284e-05/0.3775, allocations: 10.44 kB / 0.4981 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.3775, allocations: 0 / 0.4981 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.343e-06/0.3775, allocations: 0 / 0.4981 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3775, allocations: 0 / 0.4981 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3776, allocations: 5.688 kB / 0.4981 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001121/0.3777, allocations: 163 kB / 0.4983 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.929e-05/0.3778, allocations: 88.55 kB / 0.4984 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.3778, allocations: 0 / 0.4984 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.3779, allocations: 8.828 kB / 0.4984 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.594e-05/0.3779, allocations: 1.266 kB / 0.4984 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.563e-06/0.378, allocations: 3.844 kB / 0.4984 GB, free: 9.344 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.981e-05/0.378, allocations: 111.5 kB / 0.4985 GB, free: 9.266 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002497/0.3783, allocations: 3.875 kB / 0.4985 GB, free: 9.266 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.36e-05/0.3784, allocations: 95.95 kB / 0.4986 GB, free: 9.176 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.883e-05/0.3785, allocations: 11.44 kB / 0.4986 GB, free: 9.176 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3785, allocations: 0 / 0.4986 GB, free: 9.176 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.239e-05/0.3785, allocations: 8.922 kB / 0.4986 GB, free: 9.172 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.3789, allocations: 20.31 kB / 0.4986 GB, free: 9.164 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003079/0.3792, allocations: 127.5 kB / 0.4987 GB, free: 9.039 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.3794, allocations: 0.7025 MB / 0.4994 GB, free: 8.332 MB / 330.7 MB Notification: Performance of SimCode: time 6.52e-07/0.3794, allocations: 0 / 0.4994 GB, free: 8.332 MB / 330.7 MB Notification: Performance of Templates: time 0.00248/0.3819, allocations: 0.7128 MB / 0.5001 GB, free: 8.297 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches