Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.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: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_String",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_String",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 177.6 kB / 8.045 MB, free: 1.027 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.513/1.513, allocations: 221.5 MB / 230 MB, free: 7.527 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.0008708/0.0008708, allocations: 104 kB / 280.9 MB, free: 5.266 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.04799/0.04799, allocations: 11.91 MB / 343.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.768e-05/1.768e-05, allocations: 3.469 kB / 403.2 MB, free: 45.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08423/0.08427, allocations: 53.36 MB / 456.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3411/0.4254, allocations: 84.05 MB / 0.528 GB, free: 16.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00018/0.4256, allocations: 71.14 kB / 0.528 GB, free: 16.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02111/0.4467, allocations: 8.165 MB / 0.536 GB, free: 15.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.073e-06/0.4468, allocations: 4.531 kB / 0.536 GB, free: 15.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.096e-05/0.4468, allocations: 7.938 kB / 0.536 GB, free: 15.97 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg getInteger.pkgIn.pkg = getString.pkgOut[1].pkg getString.pkgIn.pkg = unpackInt.pkgOut[1].pkg addString.pkgIn.pkg = packInt.pkgOut[1].pkg addInteger.pkgIn.pkg = addString.pkgOut[1].pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg packInt.pkgIn.pkg = packager.pkgOut.pkg getString.pkgOut[1].pkg = getString.pkgIn.pkg addString.pkgOut[1].pkg = addString.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg resetPointer.pkgOut[1].pkg = resetPointer.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.001282/0.4481, allocations: 0.9593 MB / 0.5369 GB, free: 15.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.4481, allocations: 12.41 kB / 0.537 GB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.4482, allocations: 45.89 kB / 0.537 GB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.4487, allocations: 299.7 kB / 0.5373 GB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.4487, allocations: 13.45 kB / 0.5373 GB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.464e-05/0.4487, allocations: 24.47 kB / 0.5373 GB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003504/0.4491, allocations: 188.7 kB / 0.5375 GB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004973/0.4496, allocations: 340.7 kB / 0.5378 GB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.4496, allocations: 1.688 kB / 0.5378 GB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.102e-05/0.4497, allocations: 7.812 kB / 0.5378 GB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.4497, allocations: 7 kB / 0.5378 GB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.4507, allocations: 0.9318 MB / 0.5388 GB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002848/0.451, allocations: 223.5 kB / 0.539 GB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.4512, allocations: 100.8 kB / 0.5391 GB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-05/0.4513, allocations: 86.73 kB / 0.5391 GB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002167/0.4515, allocations: 185.8 kB / 0.5393 GB, free: 14.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 2.024e-06/0.4515, allocations: 0 / 0.5393 GB, free: 14.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.0007991/0.4523, allocations: 343 kB / 0.5396 GB, free: 14.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.4524, allocations: 119 kB / 0.5398 GB, free: 14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.4525, allocations: 171.3 kB / 0.5399 GB, free: 13.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.4525, allocations: 40.31 kB / 0.54 GB, free: 13.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.783e-05/0.4526, allocations: 186.8 kB / 0.5401 GB, free: 13.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.532e-05/0.4527, allocations: 59.72 kB / 0.5402 GB, free: 13.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.198e-05/0.4527, allocations: 0 / 0.5402 GB, free: 13.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.826e-05/0.4527, allocations: 328.9 kB / 0.5405 GB, free: 13.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.4529, allocations: 71.16 kB / 0.5406 GB, free: 13.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.453, allocations: 221.4 kB / 0.5408 GB, free: 13.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002404/0.4533, allocations: 120.4 kB / 0.5409 GB, free: 13.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4533, allocations: 3.938 kB / 0.5409 GB, free: 13.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004605/0.4537, allocations: 322.2 kB / 0.5412 GB, free: 13.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.4538, allocations: 7.719 kB / 0.5412 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.4538, allocations: 3.906 kB / 0.5412 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.4538, allocations: 11.73 kB / 0.5412 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.454, allocations: 57.38 kB / 0.5413 GB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.454, allocations: 15.25 kB / 0.5413 GB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.4541, allocations: 11.72 kB / 0.5413 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.087e-05/0.4541, allocations: 18.88 kB / 0.5413 GB, free: 13.09 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: getString.data:DISCRETE() "Output string (read from package)" type: String Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 44 ($PRE.getString.dummy,getString.dummy,$PRE.getString.pkgOut[1].dummy,getString.pkgOut[1].dummy,$PRE.addString.pkgOut[1].dummy,addString.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.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.packInt.pkgOut[1].dummy,packInt.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,integerExpression.y,$whenCondition1,addInteger.pkgOut[1].trigger,addInteger.u[1],$PRE.getString.data,getString.data,findString.y,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getString.pkgIn.autoPkgBitSize,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addString.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001159/0.4543, allocations: 153 kB / 0.5415 GB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005986/0.4549, allocations: 349.8 kB / 0.5418 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.4549, allocations: 25.17 kB / 0.5418 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000438/0.4554, allocations: 262.5 kB / 0.5421 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4554, allocations: 3.906 kB / 0.5421 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.4554, allocations: 7.719 kB / 0.5421 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.4554, allocations: 0 / 0.5421 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.4565, allocations: 0.668 MB / 0.5428 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4565, allocations: 4 kB / 0.5428 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.084e-05/0.4566, allocations: 9.406 kB / 0.5428 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.4566, allocations: 7.766 kB / 0.5428 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.4566, allocations: 7.5 kB / 0.5428 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.4566, allocations: 3.953 kB / 0.5428 GB, free: 28.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4566, allocations: 4 kB / 0.5428 GB, free: 28.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006476/0.4573, allocations: 484 kB / 0.5433 GB, free: 28.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.919e-05/0.4573, allocations: 95.39 kB / 0.5433 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.4574, allocations: 3.938 kB / 0.5433 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.4575, allocations: 18.83 kB / 0.5434 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.251e-05/0.4575, allocations: 13.44 kB / 0.5434 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/0.4575, allocations: 11.36 kB / 0.5434 GB, free: 28.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.907e-05/0.4576, allocations: 114.9 kB / 0.5435 GB, free: 28.17 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4576, allocations: 0 / 0.5435 GB, free: 28.17 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004756/0.4581, allocations: 140.5 kB / 0.5436 GB, free: 28.13 MB / 378.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: 28 (unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getString.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,$whenCondition1,integerExpression.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.y[1],getInteger.dummy,addString.pkgOut[1].dummy,getString.pkgOut[1].dummy,getString.data,getString.dummy,findString.y,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addString.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 5 * 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.001392/0.4595, allocations: 1.359 MB / 0.545 GB, free: 27.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003255/0.4598, allocations: 224.4 kB / 0.5452 GB, free: 27.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4599, allocations: 0 / 0.5452 GB, free: 27.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001469/0.46, allocations: 102.3 kB / 0.5453 GB, free: 27.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.4603, allocations: 45.22 kB / 0.5453 GB, free: 27.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009986/0.4613, allocations: 0.4908 MB / 0.5458 GB, free: 26.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003508/0.4617, allocations: 0.7923 MB / 0.5466 GB, free: 26.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.297e-05/0.4618, allocations: 32.03 kB / 0.5466 GB, free: 26.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.4619, allocations: 84.81 kB / 0.5467 GB, free: 26.2 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4619, allocations: 0 / 0.5467 GB, free: 26.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02544/0.4874, allocations: 5.857 MB / 0.5524 GB, free: 25.68 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/0.4876, allocations: 213.6 kB / 0.5526 GB, free: 25.41 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/2.299, allocations: 1.688 kB / 0.5526 GB, free: 25.41 MB / 378.7 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_String_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_String.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.pipe 2>&1)