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.0009866/0.0009866, allocations: 181.1 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 1.181/1.181, allocations: 221.4 MB / 235.1 MB, free: 14.44 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.0008151/0.000815, allocations: 90.22 kB / 286.1 MB, free: 12.99 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.04999/0.04999, allocations: 11.89 MB / 348.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.866e-05/2.869e-05, allocations: 4 kB / 410.1 MB, free: 58.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0898/0.08984, allocations: 53.35 MB / 463.5 MB, free: 4.906 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3114/0.4012, allocations: 83.53 MB / 0.5342 GB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001637/0.4014, allocations: 74.89 kB / 0.5342 GB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01852/0.42, allocations: 7.297 MB / 0.5414 GB, free: 9.562 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.747e-06/0.42, allocations: 0 / 0.5414 GB, free: 9.562 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.923e-05/0.4201, allocations: 11.94 kB / 0.5414 GB, free: 9.551 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.001221/0.4213, allocations: 0.9432 MB / 0.5423 GB, free: 8.582 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.4213, allocations: 8.594 kB / 0.5423 GB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.667e-05/0.4214, allocations: 47.47 kB / 0.5424 GB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003712/0.4218, allocations: 295.1 kB / 0.5426 GB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.779e-05/0.4218, allocations: 28.84 kB / 0.5427 GB, free: 8.211 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.748e-05/0.4219, allocations: 34.73 kB / 0.5427 GB, free: 8.184 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006162/0.4225, allocations: 398.3 kB / 0.5431 GB, free: 7.887 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.4225, allocations: 0 / 0.5431 GB, free: 7.887 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.285e-05/0.4226, allocations: 13.38 kB / 0.5431 GB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.4226, allocations: 8 kB / 0.5431 GB, free: 7.875 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003392/0.4229, allocations: 212.8 kB / 0.5433 GB, free: 7.734 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.4241, allocations: 1.071 MB / 0.5443 GB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003622/0.4245, allocations: 247.1 kB / 0.5446 GB, free: 6.543 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.4246, allocations: 113.3 kB / 0.5447 GB, free: 6.453 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.4247, allocations: 4 kB / 0.5447 GB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002413/0.4249, allocations: 189.2 kB / 0.5449 GB, free: 6.277 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.603e-06/0.4249, allocations: 4 kB / 0.5449 GB, free: 6.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005929/0.4255, allocations: 350.8 kB / 0.5452 GB, free: 5.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/0.4256, allocations: 148.4 kB / 0.5454 GB, free: 5.824 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.4258, allocations: 180.5 kB / 0.5455 GB, free: 5.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.4258, allocations: 33.14 kB / 0.5456 GB, free: 5.625 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.669e-05/0.4259, allocations: 186.7 kB / 0.5457 GB, free: 5.461 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.034e-05/0.426, allocations: 66.44 kB / 0.5458 GB, free: 5.41 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.306e-05/0.426, allocations: 3.812 kB / 0.5458 GB, free: 5.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.903e-05/0.4261, allocations: 346.2 kB / 0.5461 GB, free: 5.074 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.4262, allocations: 75.67 kB / 0.5462 GB, free: 5.023 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.4264, allocations: 226 kB / 0.5464 GB, free: 4.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.4266, allocations: 122 kB / 0.5465 GB, free: 4.684 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.4266, allocations: 0 / 0.5465 GB, free: 4.684 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004555/0.427, allocations: 354.2 kB / 0.5469 GB, free: 4.398 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.4271, allocations: 8 kB / 0.5469 GB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.4271, allocations: 7.953 kB / 0.5469 GB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.612e-05/0.4271, allocations: 8 kB / 0.5469 GB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.4273, allocations: 55.91 kB / 0.5469 GB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.4273, allocations: 11.94 kB / 0.547 GB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.4275, allocations: 23.34 kB / 0.547 GB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.482e-05/0.4275, allocations: 23.88 kB / 0.547 GB, free: 4.273 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.000117/0.4276, allocations: 159.2 kB / 0.5472 GB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.4277, allocations: 27.64 kB / 0.5472 GB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.663e-05/0.4277, allocations: 20.38 kB / 0.5472 GB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.4277, allocations: 7.953 kB / 0.5472 GB, free: 4.074 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4277, allocations: 0 / 0.5472 GB, free: 4.074 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.4277, allocations: 4 kB / 0.5472 GB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000786/0.4285, allocations: 0.7302 MB / 0.5479 GB, free: 3.426 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.4285, allocations: 4 kB / 0.5479 GB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.673e-05/0.4286, allocations: 7.938 kB / 0.5479 GB, free: 3.414 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.4286, allocations: 4 kB / 0.5479 GB, free: 3.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/0.4286, allocations: 7.984 kB / 0.5479 GB, free: 3.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.4286, allocations: 0 / 0.5479 GB, free: 3.402 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4287, allocations: 4 kB / 0.548 GB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005179/0.4292, allocations: 0.4888 MB / 0.5484 GB, free: 2.945 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.4292, allocations: 100.8 kB / 0.5485 GB, free: 2.828 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.4293, allocations: 11.62 kB / 0.5485 GB, free: 2.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.894e-05/0.4294, allocations: 7.984 kB / 0.5485 GB, free: 2.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.697e-05/0.4294, allocations: 23.86 kB / 0.5486 GB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.939e-05/0.4295, allocations: 15.92 kB / 0.5486 GB, free: 2.781 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.663e-05/0.4296, allocations: 116.1 kB / 0.5487 GB, free: 2.676 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4296, allocations: 0 / 0.5487 GB, free: 2.676 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004237/0.43, allocations: 118.9 kB / 0.5488 GB, free: 2.574 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.0003782/0.4304, allocations: 222.3 kB / 0.549 GB, free: 2.363 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003596/0.4307, allocations: 237.5 kB / 0.5492 GB, free: 2.188 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4308, allocations: 0 / 0.5492 GB, free: 2.188 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001633/0.4309, allocations: 119.6 kB / 0.5494 GB, free: 2.102 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003168/0.4312, allocations: 50.61 kB / 0.5494 GB, free: 2.062 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006252/0.4319, allocations: 377.4 kB / 0.5498 GB, free: 1.715 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.4322, allocations: 0.7864 MB / 0.5505 GB, free: 0.9062 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.851e-05/0.4323, allocations: 26.34 kB / 0.5506 GB, free: 0.875 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.015e-05/0.4323, allocations: 27.36 kB / 0.5506 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4323, allocations: 4 kB / 0.5506 GB, free: 0.8438 MB / 362.7 MB Notification: Performance of Templates: time 0.006705/0.439, allocations: 3.508 MB / 0.554 GB, free: 13.41 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)