Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger") [: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 4.0.0+maint.om/package.mo): time 0.0008922/0.0008923, allocations: 187.5 kB / 7.841 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.04/1.04, allocations: 221.4 MB / 229.7 MB, free: 3.051 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008836/0.0008837, allocations: 88.95 kB / 280.5 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.04852/0.04852, allocations: 11.89 MB / 343.2 MB, free: 2.801 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.879e-06/4.969e-06, allocations: 0 / 402.6 MB, free: 64.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06302/0.06304, allocations: 53.35 MB / 455.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2081/0.2712, allocations: 83.22 MB / 0.5265 GB, free: 2.801 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/0.2714, allocations: 74.25 kB / 0.5266 GB, free: 2.762 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01676/0.2882, allocations: 6.904 MB / 0.5333 GB, free: 13.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.73e-05/0.2882, allocations: 11.94 kB / 0.5333 GB, free: 13.08 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getInteger.pkgIn.pkg = unpackInt1.pkgOut[1].pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg addInteger.pkgIn.pkg = packInt1.pkgOut[1].pkg packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg packInt.pkgIn.pkg = packager.pkgOut.pkg unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg resetPointer.pkgOut[1].pkg = resetPointer.pkgIn.pkg packInt1.pkgOut[1].pkg = packInt1.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg packInt.pkgOut[1].pkg = packInt.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001041/0.2893, allocations: 0.9298 MB / 0.5342 GB, free: 12.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.819e-05/0.2893, allocations: 9.031 kB / 0.5342 GB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.848e-05/0.2894, allocations: 39.53 kB / 0.5343 GB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003493/0.2897, allocations: 312.8 kB / 0.5346 GB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.2898, allocations: 12 kB / 0.5346 GB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.649e-05/0.2898, allocations: 27.98 kB / 0.5346 GB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003249/0.2901, allocations: 196.8 kB / 0.5348 GB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004676/0.2906, allocations: 349.4 kB / 0.5351 GB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.2906, allocations: 3.938 kB / 0.5351 GB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.2907, allocations: 3.984 kB / 0.5351 GB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.2907, allocations: 12 kB / 0.5351 GB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009747/0.2917, allocations: 0.9753 MB / 0.5361 GB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003287/0.292, allocations: 225.5 kB / 0.5363 GB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.2921, allocations: 99.59 kB / 0.5364 GB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.2922, allocations: 4.156 kB / 0.5364 GB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002105/0.2924, allocations: 190.5 kB / 0.5366 GB, free: 9.957 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.452e-06/0.2924, allocations: 4 kB / 0.5366 GB, free: 9.953 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.000564/0.293, allocations: 250.2 kB / 0.5368 GB, free: 9.754 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.231e-05/0.293, allocations: 160.1 kB / 0.537 GB, free: 9.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.2932, allocations: 170.6 kB / 0.5371 GB, free: 9.418 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.505e-05/0.2932, allocations: 33.69 kB / 0.5372 GB, free: 9.379 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.957e-05/0.2933, allocations: 179.3 kB / 0.5374 GB, free: 9.215 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.125e-05/0.2933, allocations: 60.58 kB / 0.5374 GB, free: 9.168 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.226e-05/0.2934, allocations: 0 / 0.5374 GB, free: 9.168 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.61e-05/0.2935, allocations: 336.8 kB / 0.5377 GB, free: 8.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.2936, allocations: 69.86 kB / 0.5378 GB, free: 8.793 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.2938, allocations: 218.2 kB / 0.538 GB, free: 8.547 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.294, allocations: 116.2 kB / 0.5381 GB, free: 8.465 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.294, allocations: 7.938 kB / 0.5381 GB, free: 8.457 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004467/0.2944, allocations: 310.6 kB / 0.5384 GB, free: 8.199 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.2944, allocations: 4 kB / 0.5384 GB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2945, allocations: 4 kB / 0.5384 GB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.2945, allocations: 11.91 kB / 0.5384 GB, free: 8.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.2947, allocations: 63.47 kB / 0.5385 GB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.2947, allocations: 8.594 kB / 0.5385 GB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.2948, allocations: 15.84 kB / 0.5385 GB, free: 8.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.2948, allocations: 22.72 kB / 0.5385 GB, free: 8.078 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.unpackInt1.dummy,unpackInt1.dummy,$PRE.unpackInt1.y,unpackInt1.y,$PRE.unpackInt1.pkgOut[1].dummy,unpackInt1.pkgOut[1].dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[1],getInteger.y[1],$PRE.unpackInt.dummy,unpackInt.dummy,$PRE.unpackInt.y,unpackInt.y,$PRE.unpackInt.pkgOut[1].dummy,unpackInt.pkgOut[1].dummy,$PRE.resetPointer.dummy,resetPointer.dummy,$PRE.resetPointer.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,$PRE.packInt1.pkgOut[1].dummy,packInt1.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.packInt.pkgOut[1].dummy,packInt.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,addInteger.u[1],iExp2.y,$whenCondition1,$PRE.iExp.y,iExp.y,packager.trigger,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,packager.internalTrigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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 0.0001093/0.295, allocations: 148.8 kB / 0.5387 GB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.055e-05/0.295, allocations: 15.81 kB / 0.5387 GB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.749e-05/0.295, allocations: 20.44 kB / 0.5387 GB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.295, allocations: 11.94 kB / 0.5387 GB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.295, allocations: 0 / 0.5387 GB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.2951, allocations: 7.906 kB / 0.5387 GB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007166/0.2958, allocations: 0.608 MB / 0.5393 GB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2958, allocations: 0 / 0.5393 GB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.661e-05/0.2958, allocations: 8.062 kB / 0.5393 GB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.2959, allocations: 8 kB / 0.5393 GB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.2959, allocations: 7.984 kB / 0.5394 GB, free: 7.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2959, allocations: 4 kB / 0.5394 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2959, allocations: 0 / 0.5394 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005411/0.2964, allocations: 418.6 kB / 0.5398 GB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.917e-05/0.2965, allocations: 100.8 kB / 0.5399 GB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.674e-05/0.2965, allocations: 11.17 kB / 0.5399 GB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.2966, allocations: 0 / 0.5399 GB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.931e-05/0.2967, allocations: 19.47 kB / 0.5399 GB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.2967, allocations: 11.98 kB / 0.5399 GB, free: 6.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.256e-05/0.2968, allocations: 108.5 kB / 0.54 GB, free: 6.676 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003885/0.2972, allocations: 114.5 kB / 0.5401 GB, free: 6.57 MB / 362.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: 29 (packager.internalTrigger,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,packager.trigger,$whenCondition1,iExp.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],iExp2.y,packInt1.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.y[1],getInteger.dummy,unpackInt1.pkgOut[1].dummy,unpackInt1.y,unpackInt1.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (iExp.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 20 * 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.0003099/0.2975, allocations: 215.6 kB / 0.5403 GB, free: 6.363 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003098/0.2978, allocations: 229.1 kB / 0.5405 GB, free: 6.195 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.2978, allocations: 0 / 0.5405 GB, free: 6.195 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.298, allocations: 110.6 kB / 0.5406 GB, free: 6.117 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.2983, allocations: 39.28 kB / 0.5407 GB, free: 6.086 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006329/0.2989, allocations: 381.5 kB / 0.541 GB, free: 5.719 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003659/0.2993, allocations: 0.8132 MB / 0.5418 GB, free: 4.883 MB / 362.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2993, allocations: 0 / 0.5418 GB, free: 4.883 MB / 362.7 MB Notification: Performance of Templates: time 0.006514/0.3058, allocations: 3.774 MB / 0.5455 GB, free: 1.184 MB / 362.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe 2>&1)