Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.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.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") [: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.002345/0.002345, allocations: 186.7 kB / 8.197 MB, free: 2.168 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.826/1.826, 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.001251/0.001251, allocations: 89.91 kB / 261.8 MB, free: 13.61 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.09881/0.09881, allocations: 12.59 MB / 322.4 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.173e-06/7.324e-06, allocations: 0 / 378.4 MB, free: 76.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08717/0.0872, allocations: 50.38 MB / 428.8 MB, free: 25.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2803/0.3676, allocations: 76.78 MB / 0.4937 GB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/0.3679, allocations: 72.28 kB / 0.4938 GB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.00336/0.3713, allocations: 0.7502 MB / 0.4945 GB, free: 11.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.3713, allocations: 0 / 0.4945 GB, free: 11.59 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0002896/0.3717, allocations: 343.1 kB / 0.4948 GB, free: 11.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.3717, allocations: 11.69 kB / 0.4948 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.672e-05/0.3717, allocations: 3.906 kB / 0.4948 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.3719, allocations: 190.3 kB / 0.495 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.372, allocations: 0 / 0.495 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.372, allocations: 0 / 0.495 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.587e-05/0.3721, allocations: 16 kB / 0.495 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001635/0.3722, allocations: 79.41 kB / 0.4951 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.3723, allocations: 0 / 0.4951 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.3723, allocations: 4.875 kB / 0.4951 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.3723, allocations: 5.312 kB / 0.4951 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003031/0.3726, allocations: 244.1 kB / 0.4953 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.455e-05/0.3727, allocations: 36.59 kB / 0.4954 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.625e-05/0.3727, allocations: 13.72 kB / 0.4954 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.3728, allocations: 6.375 kB / 0.4954 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.3728, allocations: 32.84 kB / 0.4954 GB, free: 10.6 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.472e-06/0.3728, allocations: 0 / 0.4954 GB, free: 10.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.00015/0.3729, allocations: 44.88 kB / 0.4955 GB, free: 10.56 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.373, allocations: 85.02 kB / 0.4956 GB, free: 10.46 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.3731, allocations: 116.6 kB / 0.4957 GB, free: 10.37 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.107e-06/0.3731, allocations: 29.64 kB / 0.4957 GB, free: 10.33 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.338e-05/0.3732, allocations: 150.6 kB / 0.4958 GB, free: 10.18 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.206e-06/0.3732, allocations: 3.875 kB / 0.4958 GB, free: 10.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-06/0.3732, allocations: 0 / 0.4958 GB, free: 10.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.395e-05/0.3733, allocations: 316 kB / 0.4961 GB, free: 9.871 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.203e-05/0.3733, allocations: 0 / 0.4961 GB, free: 9.871 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.842e-05/0.3733, allocations: 21.41 kB / 0.4962 GB, free: 9.848 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.849e-05/0.3733, allocations: 5.047 kB / 0.4962 GB, free: 9.848 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.3734, allocations: 3.906 kB / 0.4962 GB, free: 9.844 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.954e-05/0.3734, allocations: 38.06 kB / 0.4962 GB, free: 9.812 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.3735, allocations: 3.812 kB / 0.4962 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3735, allocations: 0 / 0.4962 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.3735, allocations: 0 / 0.4962 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.701e-05/0.3736, allocations: 13.47 kB / 0.4962 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.3736, allocations: 0 / 0.4962 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.055e-05/0.3737, allocations: 13.5 kB / 0.4962 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.3737, allocations: 0 / 0.4962 GB, free: 9.801 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: 2 (sample.u,sample.y) * 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.256e-05/0.3737, allocations: 34.98 kB / 0.4963 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.425e-05/0.3738, allocations: 35.05 kB / 0.4963 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.974e-05/0.3738, allocations: 15.77 kB / 0.4963 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.3739, allocations: 3.906 kB / 0.4963 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3739, allocations: 4.031 kB / 0.4963 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3739, allocations: 0 / 0.4963 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001439/0.374, allocations: 146.1 kB / 0.4965 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.374, allocations: 0 / 0.4965 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.385e-05/0.3741, allocations: 4.922 kB / 0.4965 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3741, allocations: 5.312 kB / 0.4965 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.3742, allocations: 0 / 0.4965 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.3742, allocations: 0 / 0.4965 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3742, allocations: 0 / 0.4965 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001039/0.3743, allocations: 166.5 kB / 0.4966 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.714e-05/0.3744, allocations: 88.23 kB / 0.4967 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.819e-05/0.3744, allocations: 0 / 0.4967 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.494e-05/0.3745, allocations: 5.234 kB / 0.4967 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.281e-05/0.3745, allocations: 7.031 kB / 0.4967 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/0.3745, allocations: 4.031 kB / 0.4967 GB, free: 9.285 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.195e-05/0.3746, allocations: 97.5 kB / 0.4968 GB, free: 9.211 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002617/0.3749, allocations: 3.719 kB / 0.4968 GB, free: 9.211 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: 2 (sample.u,sample.y) * 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.298e-05/0.375, allocations: 98.38 kB / 0.4969 GB, free: 9.121 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.772e-05/0.3751, allocations: 12.52 kB / 0.4969 GB, free: 9.117 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3751, allocations: 0 / 0.4969 GB, free: 9.117 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.661e-05/0.3751, allocations: 3.875 kB / 0.4969 GB, free: 9.117 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.3754, allocations: 19.8 kB / 0.497 GB, free: 9.109 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002619/0.3757, allocations: 118.8 kB / 0.4971 GB, free: 8.988 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/0.3759, allocations: 0.6998 MB / 0.4978 GB, free: 8.281 MB / 330.7 MB Notification: Performance of SimCode: time 7.02e-07/0.3759, allocations: 0 / 0.4978 GB, free: 8.281 MB / 330.7 MB Notification: Performance of Templates: time 0.002234/0.3781, allocations: 0.6284 MB / 0.4984 GB, free: 8.246 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches