Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 187.8 kB / 7.843 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.241/1.241, allocations: 205.2 MB / 213.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008472/0.000847, allocations: 100.7 kB / 261.5 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0666/0.0666, allocations: 12.58 MB / 322 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.523e-06/6.543e-06, allocations: 4 kB / 378.4 MB, free: 75.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08752/0.08754, allocations: 50.38 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2774/0.365, allocations: 78.94 MB / 0.4958 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002327/0.3653, allocations: 79.45 kB / 0.4959 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01185/0.3771, allocations: 4.218 MB / 0.5 GB, free: 11.47 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.3772, allocations: 3.844 kB / 0.5 GB, free: 11.47 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.0004736/0.3777, allocations: 454.9 kB / 0.5004 GB, free: 11.06 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.3777, allocations: 7.719 kB / 0.5004 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.901e-05/0.3778, allocations: 19.84 kB / 0.5005 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.3781, allocations: 239.5 kB / 0.5007 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.3781, allocations: 15.47 kB / 0.5007 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.714e-05/0.3781, allocations: 3.438 kB / 0.5007 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001323/0.3783, allocations: 56.19 kB / 0.5008 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004096/0.3787, allocations: 269.5 kB / 0.501 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.3787, allocations: 0 / 0.501 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.3787, allocations: 0 / 0.501 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.3787, allocations: 3.938 kB / 0.501 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000373/0.3791, allocations: 332.4 kB / 0.5013 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.3794, allocations: 218.4 kB / 0.5016 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.3795, allocations: 83.28 kB / 0.5016 GB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004671/0.38, allocations: 0.5783 MB / 0.5022 GB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.38, allocations: 34.81 kB / 0.5022 GB, free: 9.613 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 1.533e-06/0.38, allocations: 0 / 0.5022 GB, free: 9.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003171/0.3803, allocations: 148.4 kB / 0.5024 GB, free: 9.562 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.3804, allocations: 110.5 kB / 0.5025 GB, free: 9.438 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.3805, allocations: 167.2 kB / 0.5026 GB, free: 9.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.3806, allocations: 25.7 kB / 0.5027 GB, free: 9.309 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.117e-05/0.3806, allocations: 95.14 kB / 0.5028 GB, free: 9.223 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/0.3806, allocations: 17.59 kB / 0.5028 GB, free: 9.219 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.551e-06/0.3806, allocations: 0 / 0.5028 GB, free: 9.219 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.532e-05/0.3807, allocations: 329.7 kB / 0.5031 GB, free: 8.902 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.564e-05/0.3807, allocations: 27.59 kB / 0.5031 GB, free: 8.902 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.555e-05/0.3808, allocations: 162.4 kB / 0.5033 GB, free: 8.734 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.042e-05/0.3809, allocations: 54.73 kB / 0.5033 GB, free: 8.727 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.3809, allocations: 3.906 kB / 0.5033 GB, free: 8.727 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002133/0.3811, allocations: 177.1 kB / 0.5035 GB, free: 8.664 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.3812, allocations: 5.266 kB / 0.5035 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3812, allocations: 7.797 kB / 0.5035 GB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.3812, allocations: 11.62 kB / 0.5035 GB, free: 8.656 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.3813, allocations: 51.69 kB / 0.5036 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.3814, allocations: 3.75 kB / 0.5036 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.3815, allocations: 17.02 kB / 0.5036 GB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.3815, allocations: 12.89 kB / 0.5036 GB, free: 8.641 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 7.656e-05/0.3816, allocations: 121.5 kB / 0.5037 GB, free: 8.527 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002053/0.3818, allocations: 135.9 kB / 0.5038 GB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002599/0.3821, allocations: 161.9 kB / 0.504 GB, free: 8.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.3821, allocations: 7.812 kB / 0.504 GB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.3821, allocations: 0 / 0.504 GB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3821, allocations: 1.594 kB / 0.504 GB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001754/0.3823, allocations: 191.7 kB / 0.5042 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.3823, allocations: 5.266 kB / 0.5042 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001533/0.3825, allocations: 35.62 kB / 0.5042 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3825, allocations: 0 / 0.5042 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.3825, allocations: 9.594 kB / 0.5042 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.3825, allocations: 0 / 0.5042 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3825, allocations: 3.938 kB / 0.5042 GB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002507/0.3828, allocations: 266.2 kB / 0.5045 GB, free: 8.09 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.748e-05/0.3828, allocations: 110 kB / 0.5046 GB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.069e-05/0.3829, allocations: 12.61 kB / 0.5046 GB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.383, allocations: 22.5 kB / 0.5046 GB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.309e-05/0.3831, allocations: 5.406 kB / 0.5046 GB, free: 7.969 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.3831, allocations: 3.844 kB / 0.5046 GB, free: 7.969 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.286e-05/0.3832, allocations: 134 kB / 0.5048 GB, free: 7.895 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003043/0.3835, allocations: 26.78 kB / 0.5048 GB, free: 7.895 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.0001556/0.3837, allocations: 116.9 kB / 0.5049 GB, free: 7.793 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001995/0.3839, allocations: 110.9 kB / 0.505 GB, free: 7.781 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3839, allocations: 3.75 kB / 0.505 GB, free: 7.781 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.33e-05/0.3839, allocations: 1.547 kB / 0.505 GB, free: 7.781 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004256/0.3843, allocations: 130.6 kB / 0.5051 GB, free: 7.742 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004495/0.3848, allocations: 218.6 kB / 0.5053 GB, free: 7.621 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.385, allocations: 0.7555 MB / 0.5061 GB, free: 6.918 MB / 330.7 MB Notification: Performance of SimCode: time 2.81e-07/0.385, allocations: 0 / 0.5061 GB, free: 6.918 MB / 330.7 MB Notification: Performance of Templates: time 0.004271/0.3893, allocations: 2.026 MB / 0.5081 GB, free: 6.027 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches