Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread.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: "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001074, allocations: 101.8 kB / 16.31 MB, free: 6.391 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.001083/0.001083, allocations: 188.5 kB / 17.24 MB, free: 5.922 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.333/1.333, allocations: 222.9 MB / 240.9 MB, free: 15.26 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.05766/0.05766, allocations: 12.03 MB / 303.1 MB, free: 3.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 68.11 kB / 366.6 MB, free: 3.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.1942, allocations: 52.34 MB / 418.9 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread): time 0.003372/0.1976, allocations: 2.275 MB / 421.2 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.1989, allocations: 0.9497 MB / 422.1 MB, free: 17.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.1991, allocations: 15.88 kB / 422.1 MB, free: 17.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002188/0.1993, allocations: 79.2 kB / 422.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000189/0.1995, allocations: 58.7 kB / 422.3 MB, free: 17.7 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:32:9-41:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.addReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addReal'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Communication.mo:292:7-303:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Communication.Internal.DummyFunctions.sendToUDP' contains a call to impure function 'Modelica_DeviceDrivers.Communication.UDPSocket_.sendTo'. [/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/Communication.mo:272:7-290:30:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Communication.Internal.DummyFunctions.readUDP_Conditional' contains a call to impure function 'Modelica_DeviceDrivers.Communication.UDPSocket_.read'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Packaging.mo:76:9-86:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.getReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getReal'. [/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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Packaging.mo:43:9-52:27:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.addRealAsFloat' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addRealAsFloat'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Packaging.mo:88:9-98:29:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.getRealFromFloat' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getRealFromFloat'. Notification: Performance of NFTyping.typeClassSections: time 0.0006933/0.2002, allocations: 322.5 kB / 422.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002624/0.2005, allocations: 379.9 kB / 423 MB, free: 17.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002688/0.2007, allocations: 258.1 kB / 423.2 MB, free: 16.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.2009, allocations: 183.4 kB / 423.4 MB, free: 16.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.2011, allocations: 230.9 kB / 423.6 MB, free: 16.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.182e-05/0.2011, allocations: 40 kB / 423.7 MB, free: 16.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002094/0.2013, allocations: 199.8 kB / 423.9 MB, free: 16.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.2015, allocations: 147.6 kB / 424 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.2016, allocations: 210.7 kB / 424.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004495/0.202, allocations: 0.6254 MB / 424.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.202, allocations: 0 / 424.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2021, allocations: 0 / 424.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.2021, allocations: 0 / 424.8 MB, free: 15.14 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: getFloat.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addFloat.pkgIn.pkg getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg getReal.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addFloat.pkgIn.pkg uDPReceive.pkgOut.pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = uDPSend.pkgIn.pkg packager.pkgOut.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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001112/0.2032, allocations: 1.111 MB / 425.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.2032, allocations: 8.031 kB / 426 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.361e-05/0.2033, allocations: 90.7 kB / 426 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.4e-05/0.2034, allocations: 52.38 kB / 426.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002584/0.2036, allocations: 323.5 kB / 426.4 MB, free: 13.43 MB / 302.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: uDPReceive.initialized = previous(uDPReceive.initialized) to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: packager.initialized = previous(packager.initialized) to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.058e-05/0.2037, allocations: 100.9 kB / 426.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.2038, allocations: 44.38 kB / 426.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.2051, allocations: 1.141 MB / 427.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.2051, allocations: 4 kB / 427.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.181e-05/0.2052, allocations: 20 kB / 427.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.125e-05/0.2052, allocations: 23.98 kB / 427.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004242/0.2056, allocations: 296 kB / 428 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009488/0.2066, allocations: 1.393 MB / 429.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008333/0.2074, allocations: 1.342 MB / 430.8 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003977/0.2079, allocations: 417.9 kB / 431.2 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.356e-05/0.208, allocations: 43.95 kB / 431.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001637/0.2081, allocations: 170.1 kB / 431.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of pre-optimization done (n=78): time 2.685e-06/0.2081, allocations: 0 / 431.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=78): time 0.001106/0.2092, allocations: 0.8218 MB / 432.2 MB, free: 7.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.479e-05/0.2094, allocations: 322.7 kB / 432.5 MB, free: 6.797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.2095, allocations: 216.1 kB / 432.7 MB, free: 6.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.214e-05/0.2095, allocations: 37.7 kB / 432.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.771e-05/0.2096, allocations: 177.3 kB / 432.9 MB, free: 6.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.99e-05/0.2097, allocations: 71.42 kB / 433 MB, free: 6.289 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.2098, allocations: 138.7 kB / 433.1 MB, free: 6.148 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.357e-05/0.2098, allocations: 350.8 kB / 433.5 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001753/0.21, allocations: 117.9 kB / 433.6 MB, free: 5.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002849/0.2103, allocations: 0.5781 MB / 434.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005511/0.2109, allocations: 0.7719 MB / 434.9 MB, free: 3.875 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.952e-06/0.2109, allocations: 4 kB / 435 MB, free: 3.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.000765/0.2117, allocations: 0.6811 MB / 435.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2117, allocations: 14.34 kB / 435.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.2117, allocations: 23.94 kB / 435.7 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.539e-05/0.2117, allocations: 20 kB / 435.7 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003319/0.2121, allocations: 147.9 kB / 435.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.2121, allocations: 27.92 kB / 435.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002586/0.2124, allocations: 63.53 kB / 435.9 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/0.2124, allocations: 47.98 kB / 436 MB, free: 2.848 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: trigger.y:DISCRETE(flow=false fixed = true ) "Value of Boolean output" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.trigger.y,$whenCondition2,pre_trigger.y,$whenCondition1,trigger.y,integerExpression.y,getFloat.pkgOut[1].autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,assignClock2.y,assignClock2.u,getInteger.y[1],getInteger.pkgIn.autoPkgBitSize,getReal.pkgOut[1].autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,$CLKPRE.uDPReceive.initialized,uDPReceive.initialized,$CLKPRE.uDPReceive.bufferSize,uDPReceive.bufferSize,uDPReceive.nRecvbufOverwrites,uDPReceive.nRecvBytes,uDPReceive.pkgOut.autoPkgBitSize,sample1.y,addInteger.u[1],uDPSend.bufferSize,getInteger.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,addFloat.pkgOut[1].autoPkgBitSize,addReal.pkgOut[1].autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,packager.initialized,packager.pkgOut.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 4 (uDPReceive.dummy,uDPReceive.initialized,uDPReceive.bufferSize,packager.dummy) * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002236/0.2126, allocations: 254.4 kB / 436.2 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005935/0.2132, allocations: 0.4903 MB / 436.7 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006505/0.2139, allocations: 467.5 kB / 437.2 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.534e-05/0.2139, allocations: 23.95 kB / 437.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2139, allocations: 0 / 437.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.214, allocations: 4 kB / 437.2 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005379/0.2145, allocations: 0.6304 MB / 437.8 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.288e-05/0.2145, allocations: 11.98 kB / 437.8 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002917/0.2148, allocations: 103.9 kB / 437.9 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.2148, allocations: 8 kB / 437.9 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.183e-05/0.2149, allocations: 23.98 kB / 438 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.2149, allocations: 4 kB / 438 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.2149, allocations: 7.938 kB / 438 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008189/0.2157, allocations: 0.7742 MB / 438.8 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.203e-05/0.2158, allocations: 124.5 kB / 438.9 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.036e-05/0.2159, allocations: 27.94 kB / 438.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.2161, allocations: 19.97 kB / 438.9 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.841e-05/0.2161, allocations: 31.86 kB / 439 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.835e-05/0.2162, allocations: 27.98 kB / 439 MB, free: 15.69 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001678/0.2163, allocations: 151.5 kB / 439.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2163, allocations: 0 / 439.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006628/0.217, allocations: 163.7 kB / 439.3 MB, free: 15.38 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 (uDPSend.bufferSize,addInteger.u[1],sample1.y,$cse6,$cse7,uDPReceive.pkgOut.autoPkgBitSize,uDPReceive.nRecvBytes,uDPReceive.nRecvbufOverwrites,uDPReceive.bufferSize,uDPReceive.initialized,getReal.pkgIn.autoPkgBitSize,getReal.pkgOut[1].autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getInteger.y[1],assignClock2.u,assignClock2.y,getFloat.pkgIn.autoPkgBitSize,getFloat.pkgOut[1].autoPkgBitSize,$cse5,packager.pkgOut.autoPkgBitSize,packager.initialized,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgOut[1].autoPkgBitSize,integerExpression.y,pre_trigger.y,trigger.y,$whenCondition1,$whenCondition2) * Number of discrete states: 1 (trigger.y) * Number of clocked states: 4 (packager.dummy,uDPReceive.bufferSize,uDPReceive.initialized,uDPReceive.dummy) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 62 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 2 * 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.002307/0.2193, allocations: 1.921 MB / 441.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.2207, allocations: 1.326 MB / 442.5 MB, free: 12.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2208, allocations: 0 / 442.5 MB, free: 12.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004937/0.2213, allocations: 0.7703 MB / 443.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001581/0.2229, allocations: 1.211 MB / 444.5 MB, free: 10.08 MB / 318.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1962:3-1962:101:writable] Error: Internal error function createFMIModelDerivativesForInitialization failed Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003906/0.2268, allocations: 3.274 MB / 447.8 MB, free: 6.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.2272, allocations: 0.8792 MB / 448.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001682/0.2274, allocations: 60.25 kB / 448.7 MB, free: 5.301 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.2276, allocations: 139.4 kB / 448.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2276, allocations: 0 / 448.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03914/0.2668, allocations: 10.73 MB / 459.6 MB, free: 10.64 MB / 334.1 MB Error: Error building simulator. Build log: cmd: cd 'Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.fmutmp/sources/' && mkdir build_cmake_dynamic && cd build_cmake_dynamic && "cmake" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER='clang' -DCMAKE_CXX_COMPILER='clang++ -std=c++17' .. && "cmake" --build . --parallel -j1 --target install && cd .. && rm -rf build_cmake_dynamic -- The C compiler identification is Clang 14.0.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- FMI2 include directory: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Building for FMI platform linux64 -- Install directory: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.fmutmp/sources/../binaries/linux64 -- Linking /usr/lib/x86_64-linux-gnu/libpthread.a -- Linking /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Library/linux64/libWs2_32.a -- Linking /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelicaExternalC.a -- CVODE: Not linked -- Not using FMI2_FUNCTION_PREFIX -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_CXX_COMPILER -- Build files have been written to: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.fmutmp/sources/build_cmake_dynamic [ 1%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/gc/memory_pool.c.o [ 2%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/gc/omc_gc.c.o [ 4%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/math-support/pivot.c.o [ 5%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/meta/meta_modelica_catch.c.o [ 7%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/jacobian_util.c.o [ 8%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/omc_simulation_util.c.o [ 10%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/options.c.o [ 11%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/simulation_info_json.c.o [ 13%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/simulation_omc_assert.c.o [ 14%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/solver/delay.c.o [ 16%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/solver/fmi_events.c.o [ 17%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/solver/initialization/initialization.c.o [ 19%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/solver/model_help.c.o [ 20%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/solver/omc_math.c.o [ 22%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/solver/spatialDistribution.c.o [ 23%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/solver/stateset.c.o [ 25%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/simulation/solver/synchronous.c.o [ 26%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/ModelicaUtilities.c.o [ 28%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/base_array.c.o [ 29%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/boolean_array.c.o [ 31%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/context.c.o [ 32%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/division.c.o [ 34%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/doubleEndedList.c.o [ 35%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/generic_array.c.o [ 37%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/index_spec.c.o [ 38%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/integer_array.c.o [ 40%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/list.c.o [ 41%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/modelica_string.c.o [ 43%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/modelica_string_lit.c.o [ 44%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/omc_error.c.o [ 46%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/omc_file.c.o [ 47%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/omc_init.c.o [ 49%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/omc_mmap.c.o [ 50%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/omc_msvc.c.o [ 52%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/omc_numbers.c.o [ 53%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/parallel_helper.c.o [ 55%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/rational.c.o [ 56%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/real_array.c.o [ 58%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/ringbuffer.c.o [ 59%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/simulation_options.c.o [ 61%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/string_array.c.o [ 62%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/utility.c.o [ 64%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/util/varinfo.c.o [ 65%] Building C object CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.c.o /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.fmutmp/sources/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.c:345:96: error: use of undeclared identifier '_omcQ_24CLKPRE' (data->localData[0]->integerVars[17] /* packager.backwardPropagatedBufferSize DISCRETE */) = _omcQ_24CLKPRE._packager._backwardPropagatedBufferSize; ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.fmutmp/sources/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.c:358:78: error: use of undeclared identifier '_omcQ_24CLKPRE' (data->localData[0]->integerVars[18] /* packager.bufferSize DISCRETE */) = _omcQ_24CLKPRE._packager._bufferSize; ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.fmutmp/sources/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.c:371:78: error: use of undeclared identifier '_omcQ_24CLKPRE' (data->localData[0]->booleanVars[3] /* packager.initialized DISCRETE */) = _omcQ_24CLKPRE._packager._initialized; ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.fmutmp/sources/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.c:397:8: error: use of undeclared identifier '_omcQ_24CLKPRE' if((!_omcQ_24CLKPRE._packager._initialized)) ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.fmutmp/sources/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.c:426:5: warning: implicit declaration of function 'handleBaseClock' is invalid in C99 [-Wimplicit-function-declaration] handleBaseClock(data, threadData, 0, data->localData[0]->timeValue); ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.fmutmp/sources/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.c:444:5: warning: implicit declaration of function 'handleBaseClock' is invalid in C99 [-Wimplicit-function-declaration] handleBaseClock(data, threadData, 1, data->localData[0]->timeValue); ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_UDPWithoutReceiveThread/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.fmutmp/sources/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.c:465:8: error: use of undeclared identifier '_omcQ_24CLKPRE' if((!_omcQ_24CLKPRE._packager._initialized)) ^ 2 warnings and 5 errors generated. gmake[2]: *** [CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/build.make:678: CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.c.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestSerialPackager_UDPWithoutReceiveThread.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2