Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.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.TestShiftSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample") [: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.001822/0.001822, allocations: 176.1 kB / 8.191 MB, free: 2.152 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.725/1.725, 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.001198/0.001197, allocations: 83.53 kB / 261.8 MB, free: 13.49 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.09512/0.09512, allocations: 12.6 MB / 322.4 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.646e-06/8.677e-06, allocations: 0 / 378.4 MB, free: 75.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08418/0.08421, allocations: 50.38 MB / 428.7 MB, free: 25.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2812/0.3655, allocations: 77.42 MB / 0.4943 GB, free: 11.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001713/0.3657, allocations: 55.23 kB / 0.4944 GB, free: 11.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.005078/0.3708, allocations: 1.09 MB / 0.4954 GB, free: 11.51 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.3709, allocations: 0 / 0.4954 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0003641/0.3712, allocations: 363.1 kB / 0.4958 GB, free: 11.15 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.3713, allocations: 7.375 kB / 0.4958 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.297e-05/0.3713, allocations: 20.62 kB / 0.4958 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002065/0.3716, allocations: 200.8 kB / 0.496 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.035e-06/0.3716, allocations: 0 / 0.496 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.3716, allocations: 5.297 kB / 0.496 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001345/0.3718, allocations: 31.45 kB / 0.496 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003082/0.3721, allocations: 144 kB / 0.4962 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.3721, allocations: 3.906 kB / 0.4962 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.3721, allocations: 0.5625 kB / 0.4962 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.3721, allocations: 3.75 kB / 0.4962 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004052/0.3726, allocations: 263.2 kB / 0.4964 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002355/0.3728, allocations: 166 kB / 0.4966 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.908e-05/0.3729, allocations: 53.97 kB / 0.4966 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.373, allocations: 5.031 kB / 0.4966 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.824e-05/0.373, allocations: 46.52 kB / 0.4967 GB, free: 10.34 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.373, allocations: 0 / 0.4967 GB, free: 10.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002525/0.3733, allocations: 76.33 kB / 0.4967 GB, free: 10.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.3733, allocations: 106.7 kB / 0.4968 GB, free: 10.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.412e-05/0.3734, allocations: 115.3 kB / 0.497 GB, free: 10.08 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/0.3734, allocations: 29.73 kB / 0.497 GB, free: 10.05 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.919e-05/0.3735, allocations: 152.2 kB / 0.4971 GB, free: 9.898 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.942e-05/0.3735, allocations: 7.844 kB / 0.4971 GB, free: 9.891 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.3735, allocations: 0 / 0.4971 GB, free: 9.891 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.614e-05/0.3736, allocations: 319.4 kB / 0.4974 GB, free: 9.578 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.893e-05/0.3736, allocations: 6.719 kB / 0.4974 GB, free: 9.578 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.228e-05/0.3737, allocations: 66.19 kB / 0.4975 GB, free: 9.5 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.489e-05/0.3737, allocations: 12.62 kB / 0.4975 GB, free: 9.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.3738, allocations: 3.844 kB / 0.4975 GB, free: 9.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001553/0.3739, allocations: 80.94 kB / 0.4976 GB, free: 9.453 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.3739, allocations: 7.531 kB / 0.4976 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.374, allocations: 0 / 0.4976 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.374, allocations: 3.75 kB / 0.4976 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.3741, allocations: 22.3 kB / 0.4976 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.3742, allocations: 4.25 kB / 0.4976 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.265e-05/0.3742, allocations: 9.656 kB / 0.4977 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.3743, allocations: 3.844 kB / 0.4977 GB, free: 9.445 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.65e-05/0.3743, allocations: 36.48 kB / 0.4977 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.3745, allocations: 70.31 kB / 0.4978 GB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.725e-05/0.3745, allocations: 13.02 kB / 0.4978 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3745, allocations: 0 / 0.4978 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3746, allocations: 0 / 0.4978 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3746, allocations: 7.766 kB / 0.4978 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001606/0.3747, allocations: 158.2 kB / 0.4979 GB, free: 9.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3748, allocations: 0.75 kB / 0.4979 GB, free: 9.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.3749, allocations: 22.36 kB / 0.4979 GB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.3749, allocations: 0 / 0.4979 GB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.375, allocations: 4.406 kB / 0.498 GB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.375, allocations: 0.5156 kB / 0.498 GB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.375, allocations: 3.938 kB / 0.498 GB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001977/0.3752, allocations: 225 kB / 0.4982 GB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.106e-05/0.3752, allocations: 85.56 kB / 0.4983 GB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/0.3753, allocations: 0.9219 kB / 0.4983 GB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.3754, allocations: 8.719 kB / 0.4983 GB, free: 8.887 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.844e-05/0.3754, allocations: 0.75 kB / 0.4983 GB, free: 8.887 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.3755, allocations: 8.453 kB / 0.4983 GB, free: 8.883 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.432e-05/0.3755, allocations: 98.27 kB / 0.4984 GB, free: 8.809 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002822/0.3758, allocations: 7.562 kB / 0.4984 GB, free: 8.809 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * 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.949e-05/0.3759, allocations: 95.5 kB / 0.4985 GB, free: 8.719 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001459/0.3761, allocations: 47.05 kB / 0.4985 GB, free: 8.711 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3761, allocations: 0 / 0.4985 GB, free: 8.711 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.251e-05/0.3761, allocations: 5.266 kB / 0.4985 GB, free: 8.711 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/0.3766, allocations: 41.45 kB / 0.4986 GB, free: 8.703 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003555/0.3769, allocations: 147.4 kB / 0.4987 GB, free: 8.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.3771, allocations: 0.7154 MB / 0.4994 GB, free: 7.863 MB / 330.7 MB Notification: Performance of SimCode: time 6.51e-07/0.3771, allocations: 0 / 0.4994 GB, free: 7.863 MB / 330.7 MB Notification: Performance of Templates: time 0.00302/0.3802, allocations: 1.054 MB / 0.5004 GB, free: 7.793 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe 2>&1)