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: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager",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.002674/0.002674, allocations: 181.4 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.456/2.456, allocations: 221.4 MB / 235.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001795/0.001795, allocations: 95.53 kB / 286.1 MB, free: 12.98 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.09902/0.09902, allocations: 11.9 MB / 348.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.716e-05/7.77e-05, allocations: 7.984 kB / 410.2 MB, free: 58.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.194/0.1941, allocations: 53.35 MB / 463.6 MB, free: 4.781 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7967/0.9909, allocations: 85.02 MB / 0.5357 GB, free: 14.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002913/0.9913, allocations: 75 kB / 0.5358 GB, free: 14.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04029/1.032, allocations: 9.27 MB / 0.5449 GB, free: 6.422 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.032, allocations: 0 / 0.5449 GB, free: 6.422 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.94e-05/1.032, allocations: 15.94 kB / 0.5449 GB, free: 6.406 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.003047/1.035, allocations: 1.151 MB / 0.546 GB, free: 5.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.376e-05/1.035, allocations: 12.03 kB / 0.546 GB, free: 5.219 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001827/1.035, allocations: 95.02 kB / 0.5461 GB, free: 5.145 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/1.035, allocations: 51.42 kB / 0.5461 GB, free: 5.094 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009811/1.036, allocations: 341.9 kB / 0.5465 GB, free: 4.758 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.339e-05/1.036, allocations: 44.36 kB / 0.5465 GB, free: 4.727 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/1.036, allocations: 43 kB / 0.5466 GB, free: 4.695 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/1.038, allocations: 496 kB / 0.547 GB, free: 4.336 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/1.038, allocations: 0 / 0.547 GB, free: 4.336 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.962e-05/1.038, allocations: 19.36 kB / 0.547 GB, free: 4.328 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.192e-05/1.038, allocations: 15.95 kB / 0.5471 GB, free: 4.312 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009528/1.039, allocations: 281.5 kB / 0.5473 GB, free: 4.125 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003292/1.043, allocations: 1.216 MB / 0.5485 GB, free: 3.062 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/1.044, allocations: 372.1 kB / 0.5489 GB, free: 2.762 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003972/1.044, allocations: 144.9 kB / 0.549 GB, free: 2.656 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.41e-05/1.044, allocations: 12.17 kB / 0.549 GB, free: 2.645 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007792/1.045, allocations: 232.3 kB / 0.5492 GB, free: 2.445 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 5.4e-06/1.045, allocations: 0 / 0.5492 GB, free: 2.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.001665/1.047, allocations: 444.2 kB / 0.5497 GB, free: 2.094 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002428/1.047, allocations: 146.6 kB / 0.5498 GB, free: 1.934 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004691/1.048, allocations: 204.2 kB / 0.55 GB, free: 1.758 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.254e-05/1.048, allocations: 39.83 kB / 0.55 GB, free: 1.719 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00033/1.048, allocations: 214.1 kB / 0.5502 GB, free: 1.535 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/1.048, allocations: 90.83 kB / 0.5503 GB, free: 1.461 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.364e-05/1.048, allocations: 10.69 kB / 0.5503 GB, free: 1.457 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003271/1.049, allocations: 340.9 kB / 0.5507 GB, free: 1.129 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/1.049, allocations: 103.7 kB / 0.5508 GB, free: 1.062 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006243/1.05, allocations: 302.1 kB / 0.551 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000518/1.05, allocations: 164.7 kB / 0.5512 GB, free: 0.6094 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/1.05, allocations: 7.938 kB / 0.5512 GB, free: 0.6016 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001291/1.052, allocations: 447.9 kB / 0.5516 GB, free: 252 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.088e-05/1.052, allocations: 5.562 kB / 0.5516 GB, free: 248 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.246e-05/1.052, allocations: 8.75 kB / 0.5517 GB, free: 240 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.274e-05/1.052, allocations: 12 kB / 0.5517 GB, free: 228 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005292/1.052, allocations: 75.78 kB / 0.5517 GB, free: 156 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-05/1.052, allocations: 23.86 kB / 0.5518 GB, free: 132 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004158/1.053, allocations: 37.84 kB / 0.5518 GB, free: 100 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.494e-05/1.053, allocations: 26.56 kB / 0.5518 GB, free: 80 kB / 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.0004173/1.053, allocations: 183.8 kB / 0.552 GB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.928e-05/1.053, allocations: 31.09 kB / 0.552 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/1.054, allocations: 21.11 kB / 0.552 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/1.054, allocations: 4 kB / 0.5521 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/1.054, allocations: 0 / 0.5521 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/1.054, allocations: 4 kB / 0.5521 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002529/1.056, allocations: 0.928 MB / 0.553 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/1.056, allocations: 4 kB / 0.553 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/1.056, allocations: 12 kB / 0.553 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.859e-06/1.056, allocations: 0 / 0.553 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.221e-05/1.056, allocations: 11.98 kB / 0.553 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.231e-05/1.056, allocations: 7.984 kB / 0.553 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.057, allocations: 0 / 0.553 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/1.058, allocations: 0.5737 MB / 0.5536 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/1.058, allocations: 104.8 kB / 0.5537 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.056e-05/1.058, allocations: 7.984 kB / 0.5537 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000311/1.059, allocations: 15.98 kB / 0.5537 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/1.059, allocations: 27.92 kB / 0.5537 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.213e-05/1.059, allocations: 19.97 kB / 0.5537 GB, free: 14.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002214/1.059, allocations: 131.3 kB / 0.5538 GB, free: 14.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.7e-07/1.059, allocations: 4 kB / 0.5539 GB, free: 14.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001133/1.06, allocations: 147.5 kB / 0.554 GB, free: 13.87 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: 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.002741/1.063, allocations: 1.388 MB / 0.5553 GB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001112/1.064, allocations: 325 kB / 0.5557 GB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/1.064, allocations: 0 / 0.5557 GB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004774/1.065, allocations: 155.8 kB / 0.5558 GB, free: 11.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009218/1.066, allocations: 79.05 kB / 0.5559 GB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003316/1.069, allocations: 0.6356 MB / 0.5565 GB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/1.07, allocations: 0.8235 MB / 0.5573 GB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003694/1.07, allocations: 46.95 kB / 0.5574 GB, free: 10.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003277/1.071, allocations: 111.4 kB / 0.5575 GB, free: 10.23 MB / 378.7 MB Notification: Performance of SimCode: time 2.855e-06/1.071, allocations: 0 / 0.5575 GB, free: 10.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0461/1.117, allocations: 7.19 MB / 0.5645 GB, free: 3.223 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004083/1.117, allocations: 172.3 kB / 0.5646 GB, free: 3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.823/4.941, allocations: 3.094 kB / 0.5646 GB, free: 3 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe 2>&1)