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: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_ExternalTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_ExternalTrigger",fmuType="me",version="2.0",platforms={"static"}) [: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.001585/0.001585, allocations: 181.1 kB / 7.844 MB, free: 2.512 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.449/1.449, allocations: 221.4 MB / 229.7 MB, free: 3.082 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.001049/0.001049, allocations: 100.2 kB / 280.5 MB, free: 1.27 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.05477/0.05477, allocations: 11.92 MB / 343.2 MB, free: 2.832 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.247/0.3018, allocations: 59.46 MB / 402.7 MB, free: 64.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.4167, allocations: 53.34 MB / 456 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.341/0.7577, allocations: 83.23 MB / 0.5266 GB, free: 2.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001703/0.7579, allocations: 68.66 kB / 0.5267 GB, free: 2.699 MB / 346.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.02029/0.7782, allocations: 7.844 MB / 0.5343 GB, free: 12.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.7783, allocations: 12.98 kB / 0.5343 GB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.7784, allocations: 39.53 kB / 0.5344 GB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004829/0.7789, allocations: 305.4 kB / 0.5347 GB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.139e-05/0.779, allocations: 15.94 kB / 0.5347 GB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.5e-05/0.779, allocations: 27.92 kB / 0.5347 GB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003891/0.7794, allocations: 195.1 kB / 0.5349 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005362/0.78, allocations: 355.1 kB / 0.5352 GB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.78, allocations: 3.938 kB / 0.5352 GB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.78, allocations: 3.875 kB / 0.5352 GB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.78, allocations: 8 kB / 0.5352 GB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.7813, allocations: 0.9782 MB / 0.5362 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003887/0.7817, allocations: 228.8 kB / 0.5364 GB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001378/0.7818, allocations: 101.8 kB / 0.5365 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.7818, allocations: 8.141 kB / 0.5365 GB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.7821, allocations: 191.7 kB / 0.5367 GB, free: 9.887 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.154e-06/0.7821, allocations: 0 / 0.5367 GB, free: 9.887 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006674/0.7828, allocations: 255.9 kB / 0.5369 GB, free: 9.684 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.864e-05/0.7829, allocations: 152.1 kB / 0.5371 GB, free: 9.508 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.783, allocations: 174.3 kB / 0.5373 GB, free: 9.352 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.332e-05/0.7831, allocations: 33.52 kB / 0.5373 GB, free: 9.316 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.7832, allocations: 177.3 kB / 0.5375 GB, free: 9.152 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.674e-05/0.7833, allocations: 65.09 kB / 0.5375 GB, free: 9.098 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.221e-05/0.7833, allocations: 0 / 0.5375 GB, free: 9.098 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.7835, allocations: 329.4 kB / 0.5378 GB, free: 8.777 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.7836, allocations: 76.47 kB / 0.5379 GB, free: 8.727 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.7838, allocations: 212.7 kB / 0.5381 GB, free: 8.484 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000234/0.7841, allocations: 126.1 kB / 0.5382 GB, free: 8.395 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.7841, allocations: 0 / 0.5382 GB, free: 8.395 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000537/0.7846, allocations: 303.3 kB / 0.5385 GB, free: 8.145 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.7847, allocations: 8 kB / 0.5385 GB, free: 8.137 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.7847, allocations: 4 kB / 0.5385 GB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.814e-05/0.7847, allocations: 11.91 kB / 0.5385 GB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002074/0.7849, allocations: 67.16 kB / 0.5386 GB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.7849, allocations: 8 kB / 0.5386 GB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.7851, allocations: 15.84 kB / 0.5386 GB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.7851, allocations: 23.58 kB / 0.5386 GB, free: 8.016 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.0001435/0.7853, allocations: 149.6 kB / 0.5388 GB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.634e-05/0.7853, allocations: 19.8 kB / 0.5388 GB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.646e-05/0.7854, allocations: 15.56 kB / 0.5388 GB, free: 7.836 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.7854, allocations: 4 kB / 0.5388 GB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.7854, allocations: 4 kB / 0.5388 GB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.7854, allocations: 7.891 kB / 0.5388 GB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008429/0.7863, allocations: 0.6081 MB / 0.5394 GB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.7863, allocations: 4 kB / 0.5394 GB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.266e-05/0.7863, allocations: 7.984 kB / 0.5394 GB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.7863, allocations: 4 kB / 0.5394 GB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.7864, allocations: 11.92 kB / 0.5395 GB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.7864, allocations: 0 / 0.5395 GB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.7864, allocations: 4 kB / 0.5395 GB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006042/0.787, allocations: 413.2 kB / 0.5399 GB, free: 6.863 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007317/0.7877, allocations: 0.7856 MB / 0.5406 GB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.767e-05/0.7878, allocations: 96.91 kB / 0.5407 GB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.061e-05/0.7879, allocations: 0 / 0.5407 GB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.788, allocations: 15.73 kB / 0.5407 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.459e-05/0.788, allocations: 15.98 kB / 0.5407 GB, free: 5.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/0.7881, allocations: 19.27 kB / 0.5408 GB, free: 5.941 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.575e-05/0.7881, allocations: 117.3 kB / 0.5409 GB, free: 5.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001016/0.7892, allocations: 121.4 kB / 0.541 GB, free: 5.734 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.0004132/0.7896, allocations: 218.2 kB / 0.5412 GB, free: 5.527 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003698/0.79, allocations: 223.7 kB / 0.5414 GB, free: 5.363 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.79, allocations: 0 / 0.5414 GB, free: 5.363 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001617/0.7901, allocations: 113 kB / 0.5415 GB, free: 5.281 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.7905, allocations: 40.92 kB / 0.5416 GB, free: 5.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007968/0.7913, allocations: 367.9 kB / 0.5419 GB, free: 4.895 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004502/0.7918, allocations: 0.8204 MB / 0.5427 GB, free: 4.055 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.7918, allocations: 4 kB / 0.5427 GB, free: 4.051 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_ExternalTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_ExternalTrigger.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.pipe 2>&1)