Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") [: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.001692/0.001692, allocations: 175.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.764/1.764, allocations: 205.2 MB / 213.8 MB, free: 13.94 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.001245/0.001245, allocations: 91.39 kB / 261.8 MB, free: 13.63 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.09579/0.09579, allocations: 12.58 MB / 322.3 MB, free: 1 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.147e-06/9.177e-06, allocations: 0 / 378.4 MB, free: 76.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08483/0.08487, allocations: 50.37 MB / 428.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2851/0.37, allocations: 78.95 MB / 0.4958 GB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002429/0.3703, allocations: 81.33 kB / 0.4959 GB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01892/0.3892, allocations: 4.217 MB / 0.5 GB, free: 11.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.78e-05/0.3893, allocations: 7.188 kB / 0.5 GB, free: 11.42 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0006526/0.39, allocations: 451.5 kB / 0.5004 GB, free: 11.01 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.39, allocations: 7.688 kB / 0.5004 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.795e-05/0.3901, allocations: 19.84 kB / 0.5005 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.3905, allocations: 229 kB / 0.5007 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.3905, allocations: 15.44 kB / 0.5007 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/0.3905, allocations: 3.75 kB / 0.5007 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001993/0.3908, allocations: 61.17 kB / 0.5007 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005781/0.3913, allocations: 272.8 kB / 0.501 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.3914, allocations: 3.938 kB / 0.501 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.198e-05/0.3914, allocations: 3.938 kB / 0.501 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.3914, allocations: 3.812 kB / 0.501 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004809/0.3919, allocations: 327.2 kB / 0.5013 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/0.3923, allocations: 217.9 kB / 0.5015 GB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001735/0.3925, allocations: 78.53 kB / 0.5016 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006526/0.3932, allocations: 0.5821 MB / 0.5022 GB, free: 9.602 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.3932, allocations: 36.23 kB / 0.5022 GB, free: 9.559 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 2.695e-06/0.3932, allocations: 0 / 0.5022 GB, free: 9.559 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0004621/0.3937, allocations: 145.9 kB / 0.5024 GB, free: 9.516 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.3938, allocations: 111.6 kB / 0.5025 GB, free: 9.387 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002054/0.394, allocations: 167.8 kB / 0.5026 GB, free: 9.289 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.394, allocations: 25.7 kB / 0.5026 GB, free: 9.258 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.71e-05/0.3941, allocations: 155.7 kB / 0.5028 GB, free: 9.105 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/0.3941, allocations: 14.19 kB / 0.5028 GB, free: 9.102 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.626e-06/0.3941, allocations: 3.844 kB / 0.5028 GB, free: 9.102 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.279e-05/0.3942, allocations: 318.9 kB / 0.5031 GB, free: 8.789 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.868e-05/0.3943, allocations: 32.45 kB / 0.5031 GB, free: 8.789 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.3944, allocations: 160.4 kB / 0.5033 GB, free: 8.617 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001214/0.3946, allocations: 56.19 kB / 0.5034 GB, free: 8.609 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3946, allocations: 3.781 kB / 0.5034 GB, free: 8.609 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000346/0.3949, allocations: 169.6 kB / 0.5035 GB, free: 8.551 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.395, allocations: 3.875 kB / 0.5035 GB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.395, allocations: 8.344 kB / 0.5035 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.395, allocations: 7.688 kB / 0.5035 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002703/0.3953, allocations: 43.58 kB / 0.5036 GB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.3953, allocations: 13.34 kB / 0.5036 GB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.3955, allocations: 21.08 kB / 0.5036 GB, free: 8.527 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.804e-05/0.3955, allocations: 11.25 kB / 0.5036 GB, free: 8.527 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample.noise.seedState[3],$CLKPRE.sample.noise.seedState[3],sample.noise.seedState[2],$CLKPRE.sample.noise.seedState[2],sample.noise.seedState[1],$CLKPRE.sample.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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 9.194e-05/0.3956, allocations: 45.31 kB / 0.5037 GB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/0.396, allocations: 131.5 kB / 0.5038 GB, free: 8.449 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004164/0.3964, allocations: 162.6 kB / 0.5039 GB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.3964, allocations: 4.625 kB / 0.504 GB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.3964, allocations: 4 kB / 0.504 GB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.3964, allocations: 0.75 kB / 0.504 GB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002348/0.3967, allocations: 197.5 kB / 0.5041 GB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.3967, allocations: 5.438 kB / 0.5041 GB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002741/0.397, allocations: 36.77 kB / 0.5042 GB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.397, allocations: 0 / 0.5042 GB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.397, allocations: 3.938 kB / 0.5042 GB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.3971, allocations: 11.81 kB / 0.5042 GB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3971, allocations: 0 / 0.5042 GB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003646/0.3974, allocations: 259.3 kB / 0.5044 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.3976, allocations: 122.8 kB / 0.5046 GB, free: 7.941 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.509e-05/0.3977, allocations: 9.531 kB / 0.5046 GB, free: 7.938 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.3979, allocations: 14.81 kB / 0.5046 GB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.954e-05/0.398, allocations: 5.219 kB / 0.5046 GB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.398, allocations: 3.812 kB / 0.5046 GB, free: 7.934 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001387/0.3981, allocations: 133.8 kB / 0.5047 GB, free: 7.859 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004334/0.3986, allocations: 30.66 kB / 0.5048 GB, free: 7.855 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: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 0.0001874/0.3988, allocations: 109.9 kB / 0.5049 GB, free: 7.762 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002969/0.3991, allocations: 117.2 kB / 0.505 GB, free: 7.742 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3991, allocations: 0 / 0.505 GB, free: 7.742 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.428e-05/0.3991, allocations: 8.062 kB / 0.505 GB, free: 7.742 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006379/0.3998, allocations: 127.1 kB / 0.5051 GB, free: 7.703 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006703/0.4005, allocations: 239.3 kB / 0.5053 GB, free: 7.559 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002686/0.4008, allocations: 0.7637 MB / 0.5061 GB, free: 6.852 MB / 330.7 MB Notification: Performance of SimCode: time 7.51e-07/0.4008, allocations: 0 / 0.5061 GB, free: 6.852 MB / 330.7 MB Notification: Performance of Templates: time 0.005015/0.4058, allocations: 2.197 MB / 0.5082 GB, free: 5.914 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches