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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008988/0.0008989, allocations: 176.7 kB / 8.051 MB, free: 1.023 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.214/1.214, allocations: 221.5 MB / 230 MB, free: 7.566 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.0007794/0.0007795, allocations: 85.78 kB / 280.9 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.04889/0.04889, allocations: 11.92 MB / 343.6 MB, free: 3.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.526e-05/1.515e-05, allocations: 6.25 kB / 403.1 MB, free: 45.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08105/0.08108, allocations: 53.35 MB / 456.5 MB, free: 14.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3365/0.4176, allocations: 82.86 MB / 0.5267 GB, free: 16.92 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/0.4178, allocations: 70.23 kB / 0.5268 GB, free: 16.92 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01847/0.4363, allocations: 7.264 MB / 0.5339 GB, free: 16.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.4364, allocations: 3.938 kB / 0.5339 GB, free: 16.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.86e-05/0.4364, allocations: 8.844 kB / 0.5339 GB, free: 16.22 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.001092/0.4375, allocations: 0.9391 MB / 0.5348 GB, free: 15.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.4375, allocations: 9.469 kB / 0.5348 GB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.122e-05/0.4376, allocations: 42.36 kB / 0.5348 GB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.438, allocations: 299.5 kB / 0.5351 GB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.438, allocations: 15.23 kB / 0.5351 GB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.584e-05/0.4381, allocations: 29.02 kB / 0.5352 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003573/0.4384, allocations: 192.9 kB / 0.5353 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.439, allocations: 347.7 kB / 0.5357 GB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.439, allocations: 3.984 kB / 0.5357 GB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.012e-05/0.439, allocations: 2.312 kB / 0.5357 GB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.439, allocations: 8.344 kB / 0.5357 GB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009368/0.44, allocations: 0.9839 MB / 0.5367 GB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000378/0.4404, allocations: 226.2 kB / 0.5369 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.4405, allocations: 100.9 kB / 0.537 GB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.4406, allocations: 2.688 kB / 0.537 GB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/0.4408, allocations: 185.6 kB / 0.5371 GB, free: 14.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.773e-06/0.4408, allocations: 0.5625 kB / 0.5371 GB, free: 14.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008834/0.4417, allocations: 343 kB / 0.5375 GB, free: 14.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.4418, allocations: 153.6 kB / 0.5376 GB, free: 14.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.4419, allocations: 174.9 kB / 0.5378 GB, free: 14.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/0.442, allocations: 35.31 kB / 0.5378 GB, free: 14.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.941e-05/0.4421, allocations: 195.7 kB / 0.538 GB, free: 13.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.027e-05/0.4421, allocations: 62.88 kB / 0.5381 GB, free: 13.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.217e-05/0.4422, allocations: 5.312 kB / 0.5381 GB, free: 13.87 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.804e-05/0.4422, allocations: 331.6 kB / 0.5384 GB, free: 13.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.4423, allocations: 70.38 kB / 0.5385 GB, free: 13.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002023/0.4426, allocations: 211 kB / 0.5387 GB, free: 13.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.4428, allocations: 120.8 kB / 0.5388 GB, free: 13.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.4428, allocations: 1.594 kB / 0.5388 GB, free: 13.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004401/0.4432, allocations: 309.8 kB / 0.5391 GB, free: 13.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.4432, allocations: 6.656 kB / 0.5391 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.4433, allocations: 7.859 kB / 0.5391 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.4433, allocations: 8.031 kB / 0.5391 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.4435, allocations: 63.97 kB / 0.5392 GB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.4435, allocations: 8.062 kB / 0.5392 GB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.4436, allocations: 10.44 kB / 0.5392 GB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.571e-05/0.4437, allocations: 19.78 kB / 0.5392 GB, free: 13.28 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.0001036/0.4438, allocations: 156 kB / 0.5393 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.336e-05/0.4438, allocations: 28.48 kB / 0.5394 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.637e-05/0.4439, allocations: 17.84 kB / 0.5394 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.4439, allocations: 3.656 kB / 0.5394 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.4439, allocations: 5.609 kB / 0.5394 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4439, allocations: 0 / 0.5394 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008161/0.4447, allocations: 0.6661 MB / 0.54 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.4447, allocations: 4.047 kB / 0.54 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.514e-05/0.4448, allocations: 6.922 kB / 0.5401 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.4448, allocations: 2.5 kB / 0.5401 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.4448, allocations: 8.422 kB / 0.5401 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.4448, allocations: 2.5 kB / 0.5401 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4448, allocations: 0 / 0.5401 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009596/0.4458, allocations: 0.4946 MB / 0.5405 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.261e-05/0.4458, allocations: 97.52 kB / 0.5406 GB, free: 28.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.891e-05/0.4459, allocations: 12.81 kB / 0.5407 GB, free: 28.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.723e-05/0.446, allocations: 3.672 kB / 0.5407 GB, free: 28.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.995e-05/0.4461, allocations: 22.72 kB / 0.5407 GB, free: 28.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-05/0.4461, allocations: 14.45 kB / 0.5407 GB, free: 28.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.579e-05/0.4462, allocations: 107.1 kB / 0.5408 GB, free: 28.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4462, allocations: 1.312 kB / 0.5408 GB, free: 28.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004702/0.4466, allocations: 109.5 kB / 0.5409 GB, free: 28.39 MB / 378.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.0003638/0.447, allocations: 223.1 kB / 0.5411 GB, free: 28.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003259/0.4473, allocations: 225.9 kB / 0.5413 GB, free: 28.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.4474, allocations: 1.875 kB / 0.5413 GB, free: 28.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.4475, allocations: 104.7 kB / 0.5414 GB, free: 28.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000342/0.4479, allocations: 45 kB / 0.5415 GB, free: 28.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006293/0.4485, allocations: 369.8 kB / 0.5418 GB, free: 28.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.4488, allocations: 0.7858 MB / 0.5426 GB, free: 27.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.031e-05/0.4489, allocations: 31.66 kB / 0.5426 GB, free: 27.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.64e-05/0.449, allocations: 22.39 kB / 0.5426 GB, free: 27.33 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.449, allocations: 4 kB / 0.5426 GB, free: 27.32 MB / 378.7 MB Notification: Performance of Templates: time 0.006115/0.4551, allocations: 3.414 MB / 0.546 GB, free: 27.02 MB / 378.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)