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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001955/0.001955, allocations: 182.3 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.662/2.662, 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.001511/0.001512, allocations: 91.59 kB / 286.1 MB, free: 13 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.09244/0.09244, allocations: 11.9 MB / 348.9 MB, free: 14.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.905e-05/9.931e-05, allocations: 4 kB / 410.2 MB, free: 58.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.227, allocations: 53.35 MB / 463.6 MB, free: 4.816 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7702/0.9973, allocations: 83.52 MB / 0.5343 GB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004293/0.9978, allocations: 70.59 kB / 0.5343 GB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02975/1.028, allocations: 7.298 MB / 0.5415 GB, free: 9.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.628e-06/1.028, allocations: 0 / 0.5415 GB, free: 9.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.215e-05/1.028, allocations: 19.94 kB / 0.5415 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.002208/1.03, allocations: 0.9389 MB / 0.5424 GB, free: 8.586 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.98e-05/1.03, allocations: 19.91 kB / 0.5424 GB, free: 8.566 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/1.03, allocations: 76.95 kB / 0.5425 GB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/1.03, allocations: 43.48 kB / 0.5425 GB, free: 8.461 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007134/1.031, allocations: 294 kB / 0.5428 GB, free: 8.164 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.902e-05/1.031, allocations: 28.39 kB / 0.5428 GB, free: 8.145 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.158e-05/1.031, allocations: 31.69 kB / 0.5429 GB, free: 8.121 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/1.032, allocations: 398 kB / 0.5432 GB, free: 7.824 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.356e-05/1.033, allocations: 0 / 0.5432 GB, free: 7.824 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.996e-05/1.033, allocations: 15.73 kB / 0.5433 GB, free: 7.816 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.093e-05/1.033, allocations: 12 kB / 0.5433 GB, free: 7.805 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006933/1.033, allocations: 215.7 kB / 0.5435 GB, free: 7.664 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002595/1.036, allocations: 1.064 MB / 0.5445 GB, free: 6.699 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008139/1.037, allocations: 252.1 kB / 0.5448 GB, free: 6.473 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002918/1.037, allocations: 109.9 kB / 0.5449 GB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.066e-05/1.037, allocations: 4 kB / 0.5449 GB, free: 6.383 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005106/1.038, allocations: 193.9 kB / 0.545 GB, free: 6.203 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.976e-06/1.038, allocations: 0 / 0.545 GB, free: 6.203 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.001173/1.039, allocations: 344.7 kB / 0.5454 GB, free: 5.934 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001888/1.039, allocations: 144.4 kB / 0.5455 GB, free: 5.766 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003314/1.039, allocations: 181.3 kB / 0.5457 GB, free: 5.602 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.915e-05/1.04, allocations: 45.38 kB / 0.5457 GB, free: 5.559 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002743/1.04, allocations: 187.1 kB / 0.5459 GB, free: 5.395 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/1.04, allocations: 66.97 kB / 0.546 GB, free: 5.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/1.04, allocations: 15.5 kB / 0.546 GB, free: 5.332 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002529/1.04, allocations: 330.6 kB / 0.5463 GB, free: 5.008 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/1.041, allocations: 79.86 kB / 0.5464 GB, free: 4.953 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004227/1.041, allocations: 222.3 kB / 0.5466 GB, free: 4.703 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003398/1.041, allocations: 126.1 kB / 0.5467 GB, free: 4.613 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/1.041, allocations: 0 / 0.5467 GB, free: 4.613 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008898/1.042, allocations: 350.1 kB / 0.547 GB, free: 4.332 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.808e-05/1.042, allocations: 11.95 kB / 0.5471 GB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/1.042, allocations: 4 kB / 0.5471 GB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.625e-05/1.042, allocations: 8 kB / 0.5471 GB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003687/1.043, allocations: 63.66 kB / 0.5471 GB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.821e-05/1.043, allocations: 11.92 kB / 0.5471 GB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/1.043, allocations: 20.16 kB / 0.5472 GB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.374e-05/1.043, allocations: 19.25 kB / 0.5472 GB, free: 4.207 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.0002756/1.043, allocations: 163.1 kB / 0.5473 GB, free: 4.051 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.257e-05/1.043, allocations: 27.66 kB / 0.5474 GB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.648e-05/1.044, allocations: 23.44 kB / 0.5474 GB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/1.044, allocations: 4 kB / 0.5474 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/1.044, allocations: 0 / 0.5474 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-06/1.044, allocations: 4 kB / 0.5474 GB, free: 4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001856/1.045, allocations: 0.7333 MB / 0.5481 GB, free: 3.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/1.046, allocations: 0 / 0.5481 GB, free: 3.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.236e-05/1.046, allocations: 11.98 kB / 0.5481 GB, free: 3.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-06/1.046, allocations: 0 / 0.5481 GB, free: 3.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.241e-05/1.046, allocations: 11.98 kB / 0.5481 GB, free: 3.328 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/1.046, allocations: 0 / 0.5481 GB, free: 3.328 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/1.046, allocations: 0 / 0.5481 GB, free: 3.328 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/1.047, allocations: 0.499 MB / 0.5486 GB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/1.047, allocations: 96.86 kB / 0.5487 GB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.86e-05/1.047, allocations: 11.67 kB / 0.5487 GB, free: 2.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/1.047, allocations: 4 kB / 0.5487 GB, free: 2.742 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/1.048, allocations: 23.22 kB / 0.5487 GB, free: 2.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.148e-05/1.048, allocations: 19.23 kB / 0.5488 GB, free: 2.707 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002069/1.048, allocations: 117 kB / 0.5489 GB, free: 2.602 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.8e-07/1.048, allocations: 0 / 0.5489 GB, free: 2.602 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001056/1.049, allocations: 115.9 kB / 0.549 GB, free: 2.5 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.002495/1.051, allocations: 1.347 MB / 0.5503 GB, free: 1.203 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008264/1.052, allocations: 244.6 kB / 0.5505 GB, free: 1.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/1.052, allocations: 0 / 0.5505 GB, free: 1.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000324/1.053, allocations: 107.9 kB / 0.5506 GB, free: 0.9453 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007012/1.053, allocations: 51.22 kB / 0.5507 GB, free: 0.9062 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/1.056, allocations: 480.3 kB / 0.5511 GB, free: 460 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007632/1.056, allocations: 0.7869 MB / 0.5519 GB, free: 15.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001939/1.057, allocations: 26.34 kB / 0.5519 GB, free: 15.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00019/1.057, allocations: 88.66 kB / 0.552 GB, free: 15.57 MB / 378.7 MB Notification: Performance of SimCode: time 2.174e-06/1.057, allocations: 0 / 0.552 GB, free: 15.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03622/1.093, allocations: 5.69 MB / 0.5576 GB, free: 10.11 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004027/1.094, allocations: 196.9 kB / 0.5578 GB, free: 9.879 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.131/4.224, allocations: 5.312 kB / 0.5578 GB, free: 9.879 MB / 378.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)