Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager") [: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.0008865/0.0008866, allocations: 188.7 kB / 7.847 MB, free: 2.492 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.028/1.028, allocations: 221.4 MB / 229.7 MB, free: 3.062 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.0007876/0.0007876, allocations: 93.94 kB / 280.5 MB, free: 1.262 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.0465/0.0465, allocations: 11.89 MB / 343.2 MB, free: 2.82 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.89e-06/4.91e-06, allocations: 0 / 402.6 MB, free: 64.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06717/0.06719, allocations: 53.35 MB / 455.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2113/0.2785, allocations: 84.7 MB / 0.5279 GB, free: 1.582 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001634/0.2787, allocations: 76.14 kB / 0.528 GB, free: 1.543 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02096/0.2997, allocations: 8.835 MB / 0.5366 GB, free: 10.26 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.098e-05/0.2997, allocations: 16 kB / 0.5367 GB, free: 10.25 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: addBoolean.pkgOut[1].pkg = resetPointer.pkgIn.pkg getBoolean.pkgIn.pkg = getInteger.pkgOut[1].pkg addBoolean.pkgIn.pkg = addInteger.pkgOut[1].pkg getInteger.pkgIn.pkg = unpackInt1.pkgOut[1].pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgIn.pkg = packInt1.pkgOut[1].pkg packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg packInt.pkgIn.pkg = packager.pkgOut.pkg addBoolean.pkgOut[1].pkg = addBoolean.pkgIn.pkg unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg getInteger.pkgOut[1].pkg = getInteger.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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001335/0.3011, allocations: 1.154 MB / 0.5378 GB, free: 9.066 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.3011, allocations: 12.03 kB / 0.5378 GB, free: 9.055 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.208e-05/0.3012, allocations: 47.44 kB / 0.5378 GB, free: 9.008 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.3016, allocations: 352.2 kB / 0.5382 GB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/0.3017, allocations: 22.55 kB / 0.5382 GB, free: 8.641 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.3017, allocations: 38.48 kB / 0.5382 GB, free: 8.605 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004268/0.3022, allocations: 262.8 kB / 0.5385 GB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000597/0.3028, allocations: 444.4 kB / 0.5389 GB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.3028, allocations: 0 / 0.5389 GB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.617e-05/0.3028, allocations: 7.609 kB / 0.5389 GB, free: 8.094 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.3029, allocations: 16 kB / 0.5389 GB, free: 8.078 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.3042, allocations: 1.098 MB / 0.54 GB, free: 7.105 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004031/0.3046, allocations: 291.7 kB / 0.5403 GB, free: 6.871 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.3048, allocations: 140.3 kB / 0.5404 GB, free: 6.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.3048, allocations: 4.094 kB / 0.5404 GB, free: 6.766 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002622/0.3051, allocations: 227.8 kB / 0.5406 GB, free: 6.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 1.553e-06/0.3051, allocations: 4 kB / 0.5406 GB, free: 6.566 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007355/0.3058, allocations: 346.8 kB / 0.541 GB, free: 6.289 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.942e-05/0.3059, allocations: 130.8 kB / 0.5411 GB, free: 6.145 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.3061, allocations: 201 kB / 0.5413 GB, free: 5.973 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.677e-05/0.3061, allocations: 33.69 kB / 0.5413 GB, free: 5.934 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.545e-05/0.3062, allocations: 202.3 kB / 0.5415 GB, free: 5.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.783e-05/0.3063, allocations: 88.34 kB / 0.5416 GB, free: 5.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.451e-05/0.3063, allocations: 0 / 0.5416 GB, free: 5.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.777e-05/0.3064, allocations: 342.1 kB / 0.5419 GB, free: 5.348 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.3065, allocations: 99.97 kB / 0.542 GB, free: 5.285 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.3068, allocations: 287.2 kB / 0.5423 GB, free: 4.969 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.3071, allocations: 165.5 kB / 0.5424 GB, free: 4.852 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3071, allocations: 0 / 0.5424 GB, free: 4.852 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005863/0.3077, allocations: 396.1 kB / 0.5428 GB, free: 4.527 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.909e-06/0.3077, allocations: 8 kB / 0.5428 GB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.3077, allocations: 11.98 kB / 0.5428 GB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.3077, allocations: 16.69 kB / 0.5429 GB, free: 4.492 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002303/0.3079, allocations: 73.66 kB / 0.5429 GB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.308, allocations: 12 kB / 0.5429 GB, free: 4.414 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/0.3082, allocations: 39.58 kB / 0.543 GB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.3082, allocations: 19.38 kB / 0.543 GB, free: 4.359 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.getBoolean.dummy,getBoolean.dummy,$PRE.addBoolean.pkgOut[1].dummy,addBoolean.pkgOut[1].dummy,$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.getInteger.pkgOut[1].dummy,getInteger.pkgOut[1].dummy,$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,$whenCondition2,integerExpression.y,$whenCondition1,addBoolean.pkgOut[1].trigger,addInteger.u[1],integerExpression1.y,getBoolean.y[1],$PRE.getBoolean.y_int[1],getBoolean.y_int[1],addBoolean.u[1],addBoolean.u_int[1],$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,getBoolean.pkgIn.autoPkgBitSize,getBoolean.pkgIn.userPkgBitSize,getBoolean.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addBoolean.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0001272/0.3083, allocations: 167.2 kB / 0.5432 GB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.905e-05/0.3084, allocations: 31.7 kB / 0.5432 GB, free: 4.164 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.637e-05/0.3084, allocations: 19.78 kB / 0.5432 GB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.3084, allocations: 4 kB / 0.5432 GB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.3084, allocations: 0 / 0.5432 GB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3085, allocations: 7.984 kB / 0.5432 GB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000931/0.3094, allocations: 0.7476 MB / 0.5439 GB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3094, allocations: 7.938 kB / 0.544 GB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.741e-05/0.3095, allocations: 11.94 kB / 0.544 GB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.3095, allocations: 4 kB / 0.544 GB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.3095, allocations: 15.83 kB / 0.544 GB, free: 3.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.3095, allocations: 4 kB / 0.544 GB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3095, allocations: 0 / 0.544 GB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007044/0.3102, allocations: 482.3 kB / 0.5444 GB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.896e-05/0.3103, allocations: 104.7 kB / 0.5445 GB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.3103, allocations: 7.359 kB / 0.5446 GB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.3105, allocations: 11.98 kB / 0.5446 GB, free: 2.895 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/0.3106, allocations: 23.34 kB / 0.5446 GB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.3106, allocations: 19.61 kB / 0.5446 GB, free: 2.859 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.984e-05/0.3107, allocations: 128.6 kB / 0.5447 GB, free: 2.746 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004219/0.3111, allocations: 130.2 kB / 0.5449 GB, free: 2.621 MB / 362.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: 39 (unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,getBoolean.pkgIn.autoPkgBitSize,addBoolean.pkgOut[1].trigger,$whenCondition2,$whenCondition1,integerExpression.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],integerExpression1.y,packInt1.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.pkgOut[1].dummy,getInteger.y[1],getInteger.dummy,unpackInt1.pkgOut[1].dummy,unpackInt1.y,unpackInt1.dummy,addBoolean.pkgOut[1].dummy,addBoolean.u[1],addBoolean.u_int[1],getBoolean.y[1],getBoolean.y_int[1],getBoolean.dummy,booleanPulse.pulseStart,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addBoolean.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 26 * 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.00032/0.3114, allocations: 227.6 kB / 0.5451 GB, free: 2.406 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004072/0.3119, allocations: 315.1 kB / 0.5454 GB, free: 2.176 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3119, allocations: 0 / 0.5454 GB, free: 2.176 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.3121, allocations: 147.3 kB / 0.5455 GB, free: 2.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003816/0.3124, allocations: 65.09 kB / 0.5456 GB, free: 2.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000962/0.3134, allocations: 0.4949 MB / 0.5461 GB, free: 1.547 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000372/0.3138, allocations: 0.8564 MB / 0.5469 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3138, allocations: 0 / 0.5469 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of Templates: time 0.007906/0.3217, allocations: 4.888 MB / 0.5517 GB, free: 11.84 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe 2>&1)