Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.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.WorkInProgress.Tests.TestRealSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler") [: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.001635/0.001635, allocations: 173.5 kB / 8.19 MB, free: 2.176 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.85/1.85, allocations: 205.2 MB / 213.8 MB, free: 13.91 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.001292/0.001292, 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.1167/0.1167, allocations: 12.59 MB / 322.3 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.04e-05/1.05e-05, allocations: 4 kB / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09565/0.09569, allocations: 50.37 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2937/0.3895, allocations: 77.75 MB / 0.4946 GB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.3897, allocations: 57.02 kB / 0.4947 GB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01268/0.4025, allocations: 2.798 MB / 0.4974 GB, free: 11.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.896e-05/0.4025, allocations: 11.84 kB / 0.4974 GB, free: 11.51 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005687/0.4031, allocations: 411.4 kB / 0.4978 GB, free: 11.13 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.4032, allocations: 9.047 kB / 0.4978 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.567e-05/0.4032, allocations: 15.47 kB / 0.4978 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003138/0.4035, allocations: 223.8 kB / 0.498 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.4036, allocations: 8.594 kB / 0.498 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.674e-05/0.4036, allocations: 8.719 kB / 0.4981 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002896/0.4039, allocations: 99.19 kB / 0.4982 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006458/0.4046, allocations: 317 kB / 0.4985 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.4046, allocations: 0 / 0.4985 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.4046, allocations: 0 / 0.4985 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.4046, allocations: 3.688 kB / 0.4985 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006755/0.4053, allocations: 426.7 kB / 0.4989 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004783/0.4058, allocations: 223.1 kB / 0.4991 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/0.406, allocations: 113.8 kB / 0.4992 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.4061, allocations: 9.141 kB / 0.4992 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.4061, allocations: 43.08 kB / 0.4992 GB, free: 10.26 MB / 330.7 MB Notification: Performance of pre-optimization done (n=18): time 2.144e-06/0.4061, allocations: 0 / 0.4992 GB, free: 10.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004911/0.4066, allocations: 171.6 kB / 0.4994 GB, free: 10.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.395e-05/0.4067, allocations: 134.1 kB / 0.4995 GB, free: 10.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.4069, allocations: 138.8 kB / 0.4997 GB, free: 9.949 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.4069, allocations: 25.7 kB / 0.4997 GB, free: 9.918 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.959e-05/0.407, allocations: 167.3 kB / 0.4998 GB, free: 9.758 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.098e-05/0.407, allocations: 13.73 kB / 0.4999 GB, free: 9.754 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-06/0.407, allocations: 0 / 0.4999 GB, free: 9.754 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.273e-05/0.4071, allocations: 320.8 kB / 0.5002 GB, free: 9.441 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.137e-05/0.4072, allocations: 24.95 kB / 0.5002 GB, free: 9.441 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.4073, allocations: 138.6 kB / 0.5003 GB, free: 9.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001172/0.4074, allocations: 61.61 kB / 0.5004 GB, free: 9.281 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4074, allocations: 7.812 kB / 0.5004 GB, free: 9.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000312/0.4078, allocations: 149.6 kB / 0.5005 GB, free: 9.223 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.4078, allocations: 7.656 kB / 0.5005 GB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.4078, allocations: 3.875 kB / 0.5005 GB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.4078, allocations: 7.75 kB / 0.5005 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002661/0.4081, allocations: 40.47 kB / 0.5006 GB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.4081, allocations: 8.953 kB / 0.5006 GB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.4083, allocations: 9.094 kB / 0.5006 GB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.4083, allocations: 19.75 kB / 0.5006 GB, free: 9.211 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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 6.74e-05/0.4084, allocations: 37.48 kB / 0.5007 GB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003441/0.4088, allocations: 159.7 kB / 0.5008 GB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.085e-05/0.4089, allocations: 21.98 kB / 0.5008 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.4089, allocations: 3.969 kB / 0.5008 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.4089, allocations: 0 / 0.5008 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.4089, allocations: 3.844 kB / 0.5008 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002758/0.4092, allocations: 180.3 kB / 0.501 GB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.4092, allocations: 4.031 kB / 0.501 GB, free: 8.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003047/0.4095, allocations: 36.3 kB / 0.501 GB, free: 8.945 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.4095, allocations: 3.844 kB / 0.5011 GB, free: 8.945 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.889e-05/0.4096, allocations: 4.688 kB / 0.5011 GB, free: 8.945 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.4096, allocations: 3.938 kB / 0.5011 GB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.4096, allocations: 7.828 kB / 0.5011 GB, free: 8.938 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004104/0.41, allocations: 402.7 kB / 0.5015 GB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.788e-05/0.4101, allocations: 90.47 kB / 0.5015 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.421e-05/0.4101, allocations: 0 / 0.5015 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.4103, allocations: 17.23 kB / 0.5016 GB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.761e-05/0.4104, allocations: 5.453 kB / 0.5016 GB, free: 8.535 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.4104, allocations: 5.547 kB / 0.5016 GB, free: 8.535 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.734e-05/0.4105, allocations: 116.2 kB / 0.5017 GB, free: 8.453 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004345/0.411, allocations: 19.34 kB / 0.5017 GB, free: 8.449 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (18): * Single equations (assignments): 18 * 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 0.0001025/0.4111, allocations: 103.9 kB / 0.5018 GB, free: 8.355 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002975/0.4114, allocations: 122.3 kB / 0.5019 GB, free: 8.344 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4114, allocations: 3.875 kB / 0.5019 GB, free: 8.344 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.324e-05/0.4114, allocations: 9.188 kB / 0.5019 GB, free: 8.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005678/0.412, allocations: 100.5 kB / 0.502 GB, free: 8.332 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00068/0.4127, allocations: 278.6 kB / 0.5023 GB, free: 8.188 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002962/0.413, allocations: 0.7672 MB / 0.503 GB, free: 7.477 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.413, allocations: 0 / 0.503 GB, free: 7.477 MB / 330.7 MB Notification: Performance of Templates: time 0.004347/0.4174, allocations: 1.724 MB / 0.5047 GB, free: 7.359 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.pipe 2>&1)