Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager.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.ClockedBlocks.Examples.TestSerialPackager,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001715/0.001721, allocations: 105.3 kB / 16.98 MB, free: 6.137 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.001918/0.001918, allocations: 189.3 kB / 17.91 MB, free: 5.234 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.443/1.443, allocations: 222.9 MB / 241.6 MB, free: 15.17 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.1036/0.1036, allocations: 12.06 MB / 303.8 MB, free: 3.164 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 67.89 kB / 367.1 MB, free: 3.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1814, allocations: 52.33 MB / 419.5 MB, free: 21.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager): time 0.00365/0.1851, allocations: 2.874 MB / 422.3 MB, free: 18.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.1865, allocations: 1.07 MB / 423.4 MB, free: 17.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.1866, allocations: 7.938 kB / 423.4 MB, free: 17.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002195/0.1868, allocations: 75.27 kB / 423.5 MB, free: 17.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.187, allocations: 43.53 kB / 423.5 MB, free: 16.99 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Packaging.mo:132:9-139:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:141:7-156:25:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:65:9-74:23:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:100:9-107:25:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:158:7-173:27:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:109:9-119:23:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.getInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getInteger'. Notification: Performance of NFTyping.typeClassSections: time 0.0007106/0.1877, allocations: 302.6 kB / 423.8 MB, free: 16.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002917/0.188, allocations: 395.8 kB / 424.2 MB, free: 16.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002447/0.1883, allocations: 218.7 kB / 424.4 MB, free: 16.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.1884, allocations: 191.3 kB / 424.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.1886, allocations: 215.1 kB / 424.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.425e-05/0.1887, allocations: 44 kB / 424.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001654/0.1888, allocations: 127.9 kB / 425 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.189, allocations: 139.6 kB / 425.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.1891, allocations: 198.9 kB / 425.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003905/0.1895, allocations: 0.5433 MB / 425.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1895, allocations: 0 / 425.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1895, allocations: 0 / 425.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1895, allocations: 0 / 425.9 MB, free: 14.64 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: addBoolean.pkgOut[1].pkg = addBoolean.pkgIn.pkg unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg getInteger.pkgOut[1].pkg = getInteger.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 addBoolean.pkgOut[1].pkg = resetPointer.pkgIn.pkg getInteger.pkgOut[1].pkg = getBoolean.pkgIn.pkg addInteger.pkgOut[1].pkg = addBoolean.pkgIn.pkg unpackInt1.pkgOut[1].pkg = getInteger.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.001302/0.1908, allocations: 1.203 MB / 427.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.1909, allocations: 8.031 kB / 427.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.633e-05/0.191, allocations: 44.47 kB / 427.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.1912, allocations: 321.3 kB / 427.4 MB, free: 12.93 MB / 302.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: packager.initialized = previous(packager.initialized) to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.953e-05/0.1913, allocations: 63.25 kB / 427.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.865e-05/0.1914, allocations: 36.38 kB / 427.5 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.1928, allocations: 1.235 MB / 428.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.1928, allocations: 0 / 428.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.347e-05/0.1928, allocations: 12 kB / 428.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.1928, allocations: 8 kB / 428.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003729/0.1932, allocations: 258.4 kB / 429 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006451/0.1939, allocations: 0.8325 MB / 429.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008876/0.1948, allocations: 0.984 MB / 430.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004627/0.1952, allocations: 427.7 kB / 431.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.36e-05/0.1953, allocations: 36.7 kB / 431.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.932e-05/0.1954, allocations: 107.4 kB / 431.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.494e-06/0.1954, allocations: 0 / 431.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.001141/0.1966, allocations: 0.783 MB / 432.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.156e-05/0.1967, allocations: 212.7 kB / 432.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.1968, allocations: 202.7 kB / 432.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.1969, allocations: 37.7 kB / 432.6 MB, free: 7.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.147e-05/0.1969, allocations: 145.7 kB / 432.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.285e-05/0.197, allocations: 59.59 kB / 432.8 MB, free: 7.234 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.1971, allocations: 134.7 kB / 433 MB, free: 7.094 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.971e-05/0.1971, allocations: 354.9 kB / 433.3 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.1973, allocations: 101.9 kB / 433.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002611/0.1976, allocations: 0.6143 MB / 434 MB, free: 5.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004454/0.198, allocations: 0.7833 MB / 434.8 MB, free: 4.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.198, allocations: 8 kB / 434.8 MB, free: 4.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.0007158/0.1987, allocations: 0.6658 MB / 435.5 MB, free: 4.051 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1988, allocations: 16.03 kB / 435.5 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.1988, allocations: 24 kB / 435.5 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.787e-05/0.1988, allocations: 24 kB / 435.6 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000362/0.1992, allocations: 159.7 kB / 435.7 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.094e-05/0.1992, allocations: 39.8 kB / 435.8 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002853/0.1995, allocations: 59.53 kB / 435.8 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.175e-05/0.1995, allocations: 44 kB / 435.9 MB, free: 3.691 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 63 ($whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,sample4.u,integerExpression1.y,integerExpression2.y,integerExpression.y,getBoolean.y_int[1],getBoolean.y[1],getBoolean.pkgIn.autoPkgBitSize,getBoolean.pkgIn.userPkgBitSize,sample4.y,addBoolean.u_int[1],addBoolean.u[1],addBoolean.pkgOut[1].autoPkgBitSize,addBoolean.pkgOut[1].userPkgBitSize,addBoolean.pkgIn.autoPkgBitSize,addBoolean.pkgIn.userPkgBitSize,sample3.y,sample2.y,sample1.y,unpackInt1.y,unpackInt1.pkgOut[1].autoPkgBitSize,unpackInt1.pkgOut[1].userPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.userPkgBitSize,getInteger.y[1],getInteger.pkgOut[1].autoPkgBitSize,getInteger.pkgOut[1].userPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getInteger.pkgIn.userPkgBitSize,unpackInt.y,unpackInt.pkgOut[1].autoPkgBitSize,unpackInt.pkgOut[1].userPkgBitSize,unpackInt.pkgIn.autoPkgBitSize,unpackInt.pkgIn.userPkgBitSize,resetPointer.pkgOut[1].autoPkgBitSize,resetPointer.pkgOut[1].userPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,resetPointer.pkgIn.userPkgBitSize,packInt1.u,packInt1.pkgOut[1].autoPkgBitSize,packInt1.pkgOut[1].userPkgBitSize,packInt1.pkgIn.autoPkgBitSize,packInt1.pkgIn.userPkgBitSize,addInteger.u[1],addInteger.pkgOut[1].autoPkgBitSize,addInteger.pkgOut[1].userPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addInteger.pkgIn.userPkgBitSize,packInt.u,packInt.pkgOut[1].autoPkgBitSize,packInt.pkgOut[1].userPkgBitSize,packInt.pkgIn.autoPkgBitSize,packInt.pkgIn.userPkgBitSize,$CLKPRE.packager.bufferSize,packager.bufferSize,$CLKPRE.packager.backwardPropagatedBufferSize,packager.backwardPropagatedBufferSize,$CLKPRE.packager.initialized,packager.initialized,packager.pkgOut.autoPkgBitSize,packager.pkgOut.userPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 4 (packager.bufferSize,packager.backwardPropagatedBufferSize,packager.dummy,packager.initialized) * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 89 * 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.000204/0.1998, allocations: 273.4 kB / 436.1 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006993/0.2005, allocations: 0.532 MB / 436.7 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008377/0.2013, allocations: 0.6075 MB / 437.3 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.186e-06/0.2013, allocations: 8 kB / 437.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.2013, allocations: 7.938 kB / 437.3 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.2014, allocations: 3.984 kB / 437.3 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002466/0.2016, allocations: 408.9 kB / 437.7 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.2016, allocations: 4 kB / 437.7 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003598/0.202, allocations: 123.8 kB / 437.8 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.202, allocations: 4 kB / 437.8 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.069e-05/0.202, allocations: 15.98 kB / 437.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.202, allocations: 4 kB / 437.8 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.2021, allocations: 7.938 kB / 437.8 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000781/0.2028, allocations: 0.669 MB / 438.5 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.095e-05/0.2029, allocations: 120.5 kB / 438.6 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.501e-05/0.203, allocations: 20 kB / 438.6 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.2031, allocations: 23.98 kB / 438.7 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.954e-05/0.2032, allocations: 19.92 kB / 438.7 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.816e-05/0.2032, allocations: 20 kB / 438.7 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.702e-05/0.2033, allocations: 141.1 kB / 438.8 MB, free: 0.582 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2033, allocations: 0 / 438.8 MB, free: 0.582 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005631/0.2039, allocations: 115.9 kB / 439 MB, free: 480 kB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 62 ($whenCondition1,sample4.u,booleanPulse.pulseStart,integerExpression1.y,integerExpression2.y,integerExpression.y,$cse1,$cse2,$cse3,packager.pkgOut.userPkgBitSize,packager.pkgOut.autoPkgBitSize,packager.initialized,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.userPkgBitSize,packInt.pkgIn.autoPkgBitSize,packInt.pkgOut[1].userPkgBitSize,packInt.pkgOut[1].autoPkgBitSize,packInt.u,addInteger.pkgIn.userPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].userPkgBitSize,addInteger.pkgOut[1].autoPkgBitSize,addInteger.u[1],packInt1.pkgIn.userPkgBitSize,packInt1.pkgIn.autoPkgBitSize,packInt1.pkgOut[1].userPkgBitSize,packInt1.pkgOut[1].autoPkgBitSize,packInt1.u,resetPointer.pkgIn.userPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,resetPointer.pkgOut[1].userPkgBitSize,resetPointer.pkgOut[1].autoPkgBitSize,unpackInt.pkgIn.userPkgBitSize,unpackInt.pkgIn.autoPkgBitSize,unpackInt.pkgOut[1].userPkgBitSize,unpackInt.pkgOut[1].autoPkgBitSize,unpackInt.y,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getInteger.pkgOut[1].userPkgBitSize,getInteger.pkgOut[1].autoPkgBitSize,getInteger.y[1],unpackInt1.pkgIn.userPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,unpackInt1.pkgOut[1].userPkgBitSize,unpackInt1.pkgOut[1].autoPkgBitSize,unpackInt1.y,sample1.y,sample2.y,sample3.y,addBoolean.pkgIn.userPkgBitSize,addBoolean.pkgIn.autoPkgBitSize,addBoolean.pkgOut[1].userPkgBitSize,addBoolean.pkgOut[1].autoPkgBitSize,addBoolean.u[1],addBoolean.u_int[1],sample4.y,getBoolean.pkgIn.userPkgBitSize,getBoolean.pkgIn.autoPkgBitSize,getBoolean.y[1],getBoolean.y_int[1]) * Number of discrete states: 0 () * Number of clocked states: 4 (packager.initialized,packager.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize) * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 1 * If-equations: 1 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004261/0.2043, allocations: 268.2 kB / 439.2 MB, free: 220 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001362/0.2057, allocations: 0.6933 MB / 439.9 MB, free: 15.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2057, allocations: 0 / 439.9 MB, free: 15.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.126e-05/0.2058, allocations: 27.92 kB / 439.9 MB, free: 15.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001711/0.2075, allocations: 1.265 MB / 441.2 MB, free: 14.19 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.209, allocations: 0.8558 MB / 442.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005056/0.2095, allocations: 0.8596 MB / 442.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.358e-05/0.2096, allocations: 39.42 kB / 443 MB, free: 12.36 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2096, allocations: 4 kB / 443 MB, free: 12.36 MB / 318.1 MB Notification: Performance of Templates: time 0.00936/0.219, allocations: 5.804 MB / 448.8 MB, free: 6.562 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include""-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:452:5: error: no matching function for call to 'strncpy' strncpy(pkg->data + pkg->pos, u, (size_t)bufferSize); ^~~~~~~ /usr/include/string.h:144:14: note: candidate function not viable: no known conversion from 'unsigned char *' to 'char *__restrict' for 1st argument extern char *strncpy (char *__restrict __dest, ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerFunctions.cpp:297:3: error: no matching function for call to 'MDD_SerialPackagerAddInteger' MDD_SerialPackagerAddInteger(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:243:16: note: candidate function not viable: 2nd argument ('const int *') would lose const qualifier DllExport void MDD_SerialPackagerAddInteger(void* p_package, int * u, size_t n, int endian) { ^ 2 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerCalcHelperMain.o] Error 1