Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.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_SharedMemoryExternalTrigger,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SharedMemoryExternalTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SharedMemoryExternalTrigger",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.000989/0.0009891, 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.36/1.36, allocations: 221.5 MB / 230 MB, free: 7.574 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.0008923/0.0008923, allocations: 97.75 kB / 280.9 MB, free: 5.328 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.0476/0.0476, allocations: 11.91 MB / 343.6 MB, free: 3.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.869e-05/1.871e-05, allocations: 2.781 kB / 403.2 MB, free: 45.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1006, allocations: 53.36 MB / 456.6 MB, free: 14.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.389/0.4897, allocations: 84.53 MB / 0.5284 GB, free: 16.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003481/0.4901, allocations: 71.14 kB / 0.5285 GB, free: 16.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03513/0.5253, allocations: 7.481 MB / 0.5358 GB, free: 16.01 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5253, allocations: 0.5 kB / 0.5358 GB, free: 16.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.693e-05/0.5253, allocations: 8 kB / 0.5358 GB, free: 16.01 MB / 362.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getInteger.pkgIn.pkg = getReal.pkgOut[1].pkg getReal.pkgIn.pkg = sharedMemoryRead.pkgOut.pkg addInteger.pkgOut[1].pkg = sharedMemoryWrite.pkgIn.pkg addInteger.pkgIn.pkg = addReal.pkgOut[1].pkg addReal.pkgIn.pkg = packager.pkgOut.pkg getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001556/0.5269, allocations: 0.8081 MB / 0.5366 GB, free: 15.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.527, allocations: 10.03 kB / 0.5366 GB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.5271, allocations: 41.88 kB / 0.5366 GB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004527/0.5276, allocations: 299.2 kB / 0.5369 GB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/0.5276, allocations: 18.83 kB / 0.5369 GB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.681e-05/0.5277, allocations: 23.69 kB / 0.537 GB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004925/0.5282, allocations: 172.2 kB / 0.5371 GB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007159/0.529, allocations: 347.8 kB / 0.5375 GB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.529, allocations: 0 / 0.5375 GB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/0.529, allocations: 9.75 kB / 0.5375 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.5291, allocations: 8.438 kB / 0.5375 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.5306, allocations: 1.208 MB / 0.5387 GB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.5311, allocations: 246.5 kB / 0.5389 GB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.5313, allocations: 114.7 kB / 0.539 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.353e-05/0.5314, allocations: 10.77 kB / 0.539 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003864/0.5318, allocations: 217.6 kB / 0.5392 GB, free: 13.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 3.737e-06/0.5318, allocations: 0 / 0.5392 GB, free: 13.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.001283/0.5331, allocations: 370.6 kB / 0.5396 GB, free: 13.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.027e-05/0.5332, allocations: 176.8 kB / 0.5397 GB, free: 13.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000247/0.5335, allocations: 198.6 kB / 0.5399 GB, free: 13.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.152e-05/0.5335, allocations: 38.56 kB / 0.54 GB, free: 13.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.5336, allocations: 179.3 kB / 0.5401 GB, free: 13.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.705e-05/0.5337, allocations: 81.48 kB / 0.5402 GB, free: 13.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.198e-05/0.5338, allocations: 0 / 0.5402 GB, free: 13.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004626/0.5342, allocations: 338.2 kB / 0.5405 GB, free: 29.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/0.5345, allocations: 89.66 kB / 0.5406 GB, free: 29.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002862/0.5348, allocations: 263.2 kB / 0.5409 GB, free: 28.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.5352, allocations: 134 kB / 0.541 GB, free: 28.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.5352, allocations: 3.875 kB / 0.541 GB, free: 28.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007942/0.536, allocations: 383.7 kB / 0.5414 GB, free: 28.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.536, allocations: 7.75 kB / 0.5414 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.536, allocations: 7.75 kB / 0.5414 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.5361, allocations: 7.719 kB / 0.5414 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003071/0.5364, allocations: 67.38 kB / 0.5415 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.5364, allocations: 13.75 kB / 0.5415 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.5366, allocations: 23.44 kB / 0.5415 GB, free: 28.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.893e-05/0.5367, allocations: 20.38 kB / 0.5415 GB, free: 28.78 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 50 ($PRE.sharedMemoryRead.pkgOut.dummy,sharedMemoryRead.pkgOut.dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[1],getInteger.y[1],$PRE.getReal.dummy,getReal.dummy,$PRE.getReal.y[3],getReal.y[3],$PRE.getReal.y[2],getReal.y[2],$PRE.getReal.y[1],getReal.y[1],$PRE.getReal.pkgOut[1].dummy,getReal.pkgOut[1].dummy,$PRE.sharedMemoryWrite.dummy,sharedMemoryWrite.dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,addInteger.u[1],sharedMemoryRead.internalTrigger,sharedMemoryWrite.internalTrigger,enable.y,$whenCondition2,$whenCondition1,addInteger.pkgOut[1].trigger,sharedMemoryRead.trigger,$PRE.zeroCrossing1.u_pos,zeroCrossing1.u_pos,$PRE.zeroCrossing1.disable,zeroCrossing1.disable,$PRE.zeroCrossing1.enable,zeroCrossing1.enable,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,sharedMemoryWrite.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 58 * 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.0002255/0.5369, allocations: 155.3 kB / 0.5417 GB, free: 28.65 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007742/0.5377, allocations: 361 kB / 0.542 GB, free: 28.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.395e-05/0.5378, allocations: 24.12 kB / 0.542 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004795/0.5382, allocations: 289.2 kB / 0.5423 GB, free: 28.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.5383, allocations: 3.875 kB / 0.5423 GB, free: 28.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.5383, allocations: 0 / 0.5423 GB, free: 28.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.5383, allocations: 9.656 kB / 0.5423 GB, free: 28.53 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008701/0.5391, allocations: 0.683 MB / 0.543 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.5392, allocations: 0 / 0.543 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.762e-05/0.5392, allocations: 11.47 kB / 0.543 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.5392, allocations: 15.75 kB / 0.543 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/0.5393, allocations: 10.67 kB / 0.543 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.5393, allocations: 7.844 kB / 0.543 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.5393, allocations: 3.984 kB / 0.543 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007257/0.54, allocations: 0.534 MB / 0.5436 GB, free: 27.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.03e-05/0.5401, allocations: 97.17 kB / 0.5437 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.186e-05/0.5401, allocations: 9.484 kB / 0.5437 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.5402, allocations: 8.516 kB / 0.5437 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.995e-05/0.5403, allocations: 24.55 kB / 0.5437 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-05/0.5404, allocations: 14.11 kB / 0.5437 GB, free: 27.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001019/0.5405, allocations: 123.1 kB / 0.5438 GB, free: 27.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5405, allocations: 0 / 0.5438 GB, free: 27.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005567/0.541, allocations: 128 kB / 0.5439 GB, free: 27.74 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 30 (sharedMemoryWrite.internalTrigger,sharedMemoryRead.internalTrigger,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,sharedMemoryRead.trigger,addInteger.pkgOut[1].trigger,$whenCondition2,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],sharedMemoryWrite.bufferSize,sharedMemoryWrite.dummy,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,sharedMemoryRead.pkgOut.dummy,zeroCrossing1.u_pos,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (zeroCrossing1.u_pos) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.00168/0.5427, allocations: 1.548 MB / 0.5455 GB, free: 26.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004019/0.5432, allocations: 269.4 kB / 0.5457 GB, free: 26.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.5432, allocations: 192 / 0.5457 GB, free: 26.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.5433, allocations: 125.3 kB / 0.5458 GB, free: 26.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.5437, allocations: 46.48 kB / 0.5459 GB, free: 26.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009848/0.5447, allocations: 0.4955 MB / 0.5464 GB, free: 26.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/0.5451, allocations: 0.7964 MB / 0.5471 GB, free: 25.63 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001145/0.5452, allocations: 38.91 kB / 0.5472 GB, free: 25.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.5454, allocations: 91.14 kB / 0.5473 GB, free: 25.62 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5454, allocations: 4 kB / 0.5473 GB, free: 25.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0246/0.57, allocations: 5.956 MB / 0.5531 GB, free: 25.11 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001624/0.5702, allocations: 238.7 kB / 0.5533 GB, free: 24.81 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.959/2.53, allocations: 1.891 kB / 0.5533 GB, free: 24.81 MB / 378.7 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SharedMemoryExternalTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_SharedMemoryExternalTrigger.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe 2>&1)