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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 117.8 kB / 17.14 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 190 kB / 18.07 MB, free: 4.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 241.8 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05811/0.05811, allocations: 12.04 MB / 304 MB, free: 3.07 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 63.91 kB / 420.8 MB, free: 17.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07888/0.08016, allocations: 52.32 MB / 473.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger): time 0.003766/0.08396, allocations: 2.635 MB / 475.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.0851, allocations: 0.6889 MB / 476.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.08522, allocations: 7.938 kB / 476.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002219/0.08545, allocations: 67.33 kB / 476.5 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.0856, allocations: 43.59 kB / 476.5 MB, free: 9.352 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:130:7-137:16:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.clear' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.clear'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:139:5-153:23:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.integerBitPack' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.integerBitPack'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:63:7-72:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:98:7-105:23:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.resetPointer' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.resetPointer'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:155:5-169:25:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.integerBitUnpack' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.integerBitUnpack'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:107:7-117:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getInteger'. Notification: Performance of NFTyping.typeClassSections: time 0.0005971/0.08621, allocations: 243.3 kB / 476.8 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003453/0.08656, allocations: 335.2 kB / 477.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002837/0.08685, allocations: 202.8 kB / 477.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.08702, allocations: 175.4 kB / 477.5 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002202/0.08725, allocations: 191.2 kB / 477.6 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.655e-05/0.08731, allocations: 40 kB / 477.7 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001944/0.08752, allocations: 127.9 kB / 477.8 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.08766, allocations: 135.6 kB / 477.9 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000149/0.08781, allocations: 179.1 kB / 478.1 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000524/0.08834, allocations: 0.5563 MB / 478.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.08836, allocations: 0 / 478.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.08836, allocations: 0 / 478.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.08837, allocations: 0 / 478.7 MB, free: 7.195 MB / 350.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: 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 unpackInt1.pkgOut[1].pkg = getInteger.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg packInt1.pkgOut[1].pkg = addInteger.pkgIn.pkg packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg packager.pkgOut.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.001323/0.0897, allocations: 1.054 MB / 479.7 MB, free: 6.051 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.08974, allocations: 8.031 kB / 479.7 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.389e-05/0.08983, allocations: 40.7 kB / 479.8 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.09012, allocations: 285.5 kB / 480 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.09016, allocations: 33.31 kB / 480.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.868e-05/0.09022, allocations: 36.36 kB / 480.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006286/0.09085, allocations: 410.2 kB / 480.5 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.09088, allocations: 192 / 480.5 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.548e-05/0.09092, allocations: 19.92 kB / 480.5 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.09093, allocations: 8 kB / 480.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000392/0.09133, allocations: 223.6 kB / 480.8 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.09256, allocations: 1.089 MB / 481.9 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000424/0.09299, allocations: 266.3 kB / 482.1 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/0.09318, allocations: 119.5 kB / 482.2 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.09321, allocations: 11.98 kB / 482.2 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.09351, allocations: 214.5 kB / 482.4 MB, free: 3.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.693e-06/0.09352, allocations: 0 / 482.4 MB, free: 3.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.0008018/0.09433, allocations: 445.2 kB / 482.9 MB, free: 2.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.837e-05/0.09441, allocations: 144.5 kB / 483 MB, free: 2.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.09459, allocations: 197.2 kB / 483.2 MB, free: 2.312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.09463, allocations: 45.69 kB / 483.3 MB, free: 2.262 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.09475, allocations: 188.8 kB / 483.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.934e-05/0.09482, allocations: 71.52 kB / 483.5 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.09494, allocations: 102 kB / 483.6 MB, free: 1.898 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.09507, allocations: 330.8 kB / 483.9 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.09522, allocations: 84.83 kB / 484 MB, free: 1.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002418/0.09547, allocations: 235.1 kB / 484.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000422/0.0959, allocations: 346.5 kB / 484.6 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.09592, allocations: 3.938 kB / 484.6 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005497/0.09647, allocations: 357.3 kB / 484.9 MB, free: 428 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.0965, allocations: 8 kB / 485 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.09651, allocations: 4 kB / 485 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.09653, allocations: 8 kB / 485 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.09674, allocations: 63.84 kB / 485 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.09675, allocations: 4.562 kB / 485 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.0969, allocations: 39.7 kB / 485.1 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.572e-05/0.09693, allocations: 23.98 kB / 485.1 MB, free: 276 kB / 350.1 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 (unpackInt1.dummy,$PRE.unpackInt1.dummy,unpackInt1.y,$PRE.unpackInt1.y,unpackInt1.pkgOut[1].dummy,$PRE.unpackInt1.pkgOut[1].dummy,getInteger.dummy,$PRE.getInteger.dummy,getInteger.y[1],$PRE.getInteger.y[1],unpackInt.dummy,$PRE.unpackInt.dummy,unpackInt.y,$PRE.unpackInt.y,unpackInt.pkgOut[1].dummy,$PRE.unpackInt.pkgOut[1].dummy,resetPointer.dummy,$PRE.resetPointer.dummy,resetPointer.pkgOut[1].dummy,$PRE.resetPointer.pkgOut[1].dummy,packInt1.pkgOut[1].dummy,$PRE.packInt1.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,packInt.pkgOut[1].dummy,$PRE.packInt.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addInteger.u[1],iExp2.y,unpackInt1.pkgOut[1].trigger,iExp.y,$PRE.iExp.y,$whenCondition1,unpackInt1.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt.pkgIn.autoPkgBitSize,packager.internalTrigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,resetPointer.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002057/0.09715, allocations: 214.8 kB / 485.3 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.926e-05/0.09719, allocations: 15.91 kB / 485.3 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.571e-05/0.09723, allocations: 13.19 kB / 485.3 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.09725, allocations: 11.98 kB / 485.3 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.09725, allocations: 0 / 485.3 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.061e-05/0.09733, allocations: 100.9 kB / 485.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.09737, allocations: 7.984 kB / 485.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.272e-05/0.09745, allocations: 4 kB / 485.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.841e-05/0.0975, allocations: 23.91 kB / 485.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006877/0.0982, allocations: 0.6497 MB / 486.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007/0.09891, allocations: 0.7309 MB / 486.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001833/0.09911, allocations: 122.9 kB / 487 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.334e-05/0.09919, allocations: 115.2 kB / 487.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of Backend: time 4.7e-07/0.0992, allocations: 32 / 487.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.1002, allocations: 332.9 kB / 487.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of SimCode: time 0.0009859/0.1012, allocations: 0.9245 MB / 488.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of Templates: time 0.008209/0.1095, allocations: 3.663 MB / 492 MB, free: 9.324 MB / 366.1 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)