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: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008672/0.0008672, 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.217/1.217, allocations: 221.5 MB / 230 MB, free: 7.523 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.0008317/0.0008317, allocations: 103.5 kB / 280.9 MB, free: 5.258 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.04731/0.04731, allocations: 11.92 MB / 343.6 MB, free: 3.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.539e-05/1.532e-05, allocations: 6.125 kB / 403.1 MB, free: 45.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07742/0.07745, allocations: 53.35 MB / 456.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3153/0.3928, allocations: 84.53 MB / 0.5283 GB, free: 16.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.393, allocations: 73.42 kB / 0.5284 GB, free: 16.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0189/0.412, allocations: 7.476 MB / 0.5357 GB, free: 16.14 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.412, allocations: 0 / 0.5357 GB, free: 16.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.046e-05/0.412, allocations: 12 kB / 0.5357 GB, free: 16.13 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.001047/0.4131, allocations: 0.8002 MB / 0.5365 GB, free: 15.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.4131, allocations: 9.438 kB / 0.5365 GB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.119e-05/0.4132, allocations: 40.83 kB / 0.5365 GB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003632/0.4136, allocations: 305.6 kB / 0.5368 GB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.4136, allocations: 18.67 kB / 0.5369 GB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.061e-05/0.4137, allocations: 20.94 kB / 0.5369 GB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003361/0.414, allocations: 177.3 kB / 0.537 GB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004702/0.4145, allocations: 340.6 kB / 0.5374 GB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.4145, allocations: 5.719 kB / 0.5374 GB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.4146, allocations: 11.64 kB / 0.5374 GB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.4146, allocations: 8.188 kB / 0.5374 GB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.4157, allocations: 1.206 MB / 0.5386 GB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.416, allocations: 247.8 kB / 0.5388 GB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.4161, allocations: 115 kB / 0.5389 GB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.546e-05/0.4161, allocations: 9.812 kB / 0.5389 GB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.4164, allocations: 213.9 kB / 0.5391 GB, free: 14.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 1.643e-06/0.4164, allocations: 1.688 kB / 0.5391 GB, free: 14.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007877/0.4172, allocations: 359.3 kB / 0.5395 GB, free: 14.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.4173, allocations: 184.3 kB / 0.5396 GB, free: 13.86 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.4175, allocations: 198.4 kB / 0.5398 GB, free: 13.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.4175, allocations: 40.5 kB / 0.5399 GB, free: 13.72 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.133e-05/0.4176, allocations: 177.3 kB / 0.54 GB, free: 13.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.231e-05/0.4177, allocations: 76.95 kB / 0.5401 GB, free: 13.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.651e-05/0.4177, allocations: 1.781 kB / 0.5401 GB, free: 13.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.569e-05/0.4178, allocations: 337.1 kB / 0.5404 GB, free: 13.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.4179, allocations: 89.72 kB / 0.5405 GB, free: 13.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.4181, allocations: 263.9 kB / 0.5408 GB, free: 13.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.4184, allocations: 139.1 kB / 0.5409 GB, free: 13.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4184, allocations: 0 / 0.5409 GB, free: 13.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005094/0.4189, allocations: 383.8 kB / 0.5413 GB, free: 12.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.4189, allocations: 7.812 kB / 0.5413 GB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.4189, allocations: 4.656 kB / 0.5413 GB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.4189, allocations: 15.75 kB / 0.5413 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.4192, allocations: 65.42 kB / 0.5414 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.4192, allocations: 9.906 kB / 0.5414 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.4193, allocations: 19.53 kB / 0.5414 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.4193, allocations: 20.17 kB / 0.5414 GB, free: 12.91 MB / 362.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.0004885/0.4198, allocations: 159.9 kB / 0.5416 GB, free: 28.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.701e-05/0.4199, allocations: 35.08 kB / 0.5416 GB, free: 28.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004824/0.4204, allocations: 285.2 kB / 0.5419 GB, free: 28.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.4204, allocations: 3.875 kB / 0.5419 GB, free: 28.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4204, allocations: 3.875 kB / 0.5419 GB, free: 28.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.4204, allocations: 1.781 kB / 0.5419 GB, free: 28.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007869/0.4212, allocations: 0.6771 MB / 0.5425 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.4212, allocations: 1.875 kB / 0.5425 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.207e-05/0.4213, allocations: 17.48 kB / 0.5426 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.4213, allocations: 0 / 0.5426 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.4213, allocations: 11.7 kB / 0.5426 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.4213, allocations: 0 / 0.5426 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4213, allocations: 3.875 kB / 0.5426 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006688/0.422, allocations: 0.5364 MB / 0.5431 GB, free: 28.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.017e-05/0.422, allocations: 96.58 kB / 0.5432 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.833e-05/0.4221, allocations: 9.219 kB / 0.5432 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.4222, allocations: 7.266 kB / 0.5432 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.186e-05/0.4223, allocations: 22.06 kB / 0.5432 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.379e-05/0.4223, allocations: 17.3 kB / 0.5432 GB, free: 28.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.646e-05/0.4224, allocations: 121.6 kB / 0.5434 GB, free: 27.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4224, allocations: 0 / 0.5434 GB, free: 27.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004605/0.4229, allocations: 128.1 kB / 0.5435 GB, free: 27.94 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.000615/0.4235, allocations: 342.8 kB / 0.5438 GB, free: 27.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004034/0.4239, allocations: 267.2 kB / 0.5441 GB, free: 27.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4239, allocations: 7.656 kB / 0.5441 GB, free: 27.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000166/0.4241, allocations: 127.8 kB / 0.5442 GB, free: 27.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000331/0.4244, allocations: 36.3 kB / 0.5442 GB, free: 27.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006551/0.4251, allocations: 395.9 kB / 0.5446 GB, free: 27.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.4254, allocations: 0.7924 MB / 0.5454 GB, free: 26.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.4255, allocations: 39.97 kB / 0.5454 GB, free: 26.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.591e-05/0.4256, allocations: 26.66 kB / 0.5454 GB, free: 26.82 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4256, allocations: 0 / 0.5454 GB, free: 26.82 MB / 378.7 MB Notification: Performance of Templates: time 0.006575/0.4322, allocations: 3.829 MB / 0.5492 GB, free: 26.43 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.makefile (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 & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe 2>&1)