Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.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.TestBackSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestBackSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample") [: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.002243/0.002243, allocations: 172 kB / 8.185 MB, free: 2.137 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.995/1.995, 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.00129/0.001291, allocations: 95.72 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.09729/0.09729, allocations: 12.58 MB / 322.3 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.596e-06/8.727e-06, allocations: 4 kB / 378.4 MB, free: 76.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08427/0.0843, allocations: 50.36 MB / 428.7 MB, free: 25.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3045/0.3888, allocations: 77.44 MB / 0.4943 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001731/0.3891, allocations: 57.7 kB / 0.4944 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.005286/0.3944, allocations: 1.133 MB / 0.4955 GB, free: 11.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.3945, allocations: 3.844 kB / 0.4955 GB, free: 11.66 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0003959/0.3949, allocations: 374.5 kB / 0.4958 GB, free: 11.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.3949, allocations: 7.688 kB / 0.4958 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.638e-05/0.395, allocations: 9.25 kB / 0.4958 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/0.3952, allocations: 204.7 kB / 0.496 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.3952, allocations: 4.75 kB / 0.496 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.847e-05/0.3953, allocations: 3.844 kB / 0.4961 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001369/0.3954, allocations: 30.7 kB / 0.4961 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003344/0.3958, allocations: 154.5 kB / 0.4962 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.3958, allocations: 0.6562 kB / 0.4962 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.3958, allocations: 4 kB / 0.4962 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.3958, allocations: 3.25 kB / 0.4962 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000405/0.3962, allocations: 280 kB / 0.4965 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002494/0.3965, allocations: 187.1 kB / 0.4967 GB, free: 10.53 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.3966, allocations: 59.16 kB / 0.4967 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.3967, allocations: 7.938 kB / 0.4967 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.3967, allocations: 39.8 kB / 0.4968 GB, free: 10.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.735e-06/0.3967, allocations: 3.938 kB / 0.4968 GB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.000316/0.397, allocations: 98.48 kB / 0.4969 GB, free: 10.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/0.3971, allocations: 136.4 kB / 0.497 GB, free: 10.24 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.708e-05/0.3972, allocations: 114 kB / 0.4971 GB, free: 10.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.3972, allocations: 25.7 kB / 0.4971 GB, free: 10.11 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.164e-05/0.3973, allocations: 150.6 kB / 0.4973 GB, free: 9.965 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.3973, allocations: 6.141 kB / 0.4973 GB, free: 9.965 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-06/0.3973, allocations: 0 / 0.4973 GB, free: 9.965 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.112e-05/0.3974, allocations: 319.5 kB / 0.4976 GB, free: 9.648 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.306e-05/0.3974, allocations: 10.97 kB / 0.4976 GB, free: 9.648 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.21e-05/0.3975, allocations: 78.08 kB / 0.4977 GB, free: 9.555 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.313e-05/0.3976, allocations: 20.12 kB / 0.4977 GB, free: 9.551 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.3976, allocations: 0 / 0.4977 GB, free: 9.551 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001813/0.3978, allocations: 89.45 kB / 0.4978 GB, free: 9.508 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.3978, allocations: 16.05 kB / 0.4978 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3978, allocations: 0 / 0.4978 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.3978, allocations: 7.875 kB / 0.4978 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.398, allocations: 26.22 kB / 0.4978 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.3981, allocations: 3.844 kB / 0.4978 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.079e-05/0.3982, allocations: 9.469 kB / 0.4978 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.3982, allocations: 7.688 kB / 0.4979 GB, free: 9.492 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 5.825e-05/0.3982, allocations: 29.7 kB / 0.4979 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.3984, allocations: 86.41 kB / 0.498 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.017e-05/0.3985, allocations: 15.58 kB / 0.498 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3985, allocations: 0 / 0.498 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.3985, allocations: 9.031 kB / 0.498 GB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3985, allocations: 0 / 0.498 GB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.3987, allocations: 156.7 kB / 0.4981 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3987, allocations: 0 / 0.4981 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001685/0.3989, allocations: 27.41 kB / 0.4982 GB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.3989, allocations: 6.656 kB / 0.4982 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.399, allocations: 1.5 kB / 0.4982 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.399, allocations: 3.781 kB / 0.4982 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.399, allocations: 0 / 0.4982 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002229/0.3992, allocations: 241.8 kB / 0.4984 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.071e-05/0.3993, allocations: 93.45 kB / 0.4985 GB, free: 8.914 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.3993, allocations: 5.609 kB / 0.4985 GB, free: 8.914 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.3995, allocations: 3.812 kB / 0.4985 GB, free: 8.914 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.738e-05/0.3995, allocations: 4.781 kB / 0.4985 GB, free: 8.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-06/0.3995, allocations: 3.531 kB / 0.4985 GB, free: 8.914 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.79e-05/0.3996, allocations: 99.34 kB / 0.4986 GB, free: 8.836 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003065/0.3999, allocations: 15.5 kB / 0.4986 GB, free: 8.832 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 (11): * Single equations (assignments): 11 * 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 9.211e-05/0.4, allocations: 95.64 kB / 0.4987 GB, free: 8.742 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000171/0.4002, allocations: 57.33 kB / 0.4988 GB, free: 8.73 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4002, allocations: 0 / 0.4988 GB, free: 8.73 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.165e-05/0.4002, allocations: 3.812 kB / 0.4988 GB, free: 8.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004418/0.4007, allocations: 56.64 kB / 0.4988 GB, free: 8.719 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004436/0.4011, allocations: 152.6 kB / 0.499 GB, free: 8.586 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002053/0.4014, allocations: 0.7242 MB / 0.4997 GB, free: 7.879 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.4014, allocations: 0 / 0.4997 GB, free: 7.879 MB / 330.7 MB Notification: Performance of Templates: time 0.003571/0.405, allocations: 1.189 MB / 0.5008 GB, free: 7.793 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe 2>&1)