Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.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,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 184.2 kB / 7.843 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 221.4 MB / 229.7 MB, free: 3.066 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 100.9 kB / 280.5 MB, free: 1.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05179/0.05179, allocations: 11.9 MB / 343.2 MB, free: 2.812 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2081/0.2599, allocations: 59.47 MB / 402.7 MB, free: 64.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.3634, allocations: 53.35 MB / 456 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3358/0.6993, allocations: 84.74 MB / 0.5281 GB, free: 1.188 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001684/0.6996, allocations: 69.97 kB / 0.5281 GB, free: 1.156 MB / 346.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: addBoolean.pkgOut[1].pkg = resetPointer.pkgIn.pkg getBoolean.pkgIn.pkg = getInteger.pkgOut[1].pkg addBoolean.pkgIn.pkg = addInteger.pkgOut[1].pkg getInteger.pkgIn.pkg = unpackInt1.pkgOut[1].pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgIn.pkg = packInt1.pkgOut[1].pkg packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg packInt.pkgIn.pkg = packager.pkgOut.pkg 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 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.02651/0.7261, allocations: 10.02 MB / 0.5379 GB, free: 8.664 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.7261, allocations: 8 kB / 0.5379 GB, free: 8.656 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.7263, allocations: 47.44 kB / 0.538 GB, free: 8.609 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00055/0.7268, allocations: 350.7 kB / 0.5383 GB, free: 8.266 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.665e-05/0.7269, allocations: 23.42 kB / 0.5383 GB, free: 8.246 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.314e-05/0.7269, allocations: 34.98 kB / 0.5384 GB, free: 8.215 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005017/0.7274, allocations: 255 kB / 0.5386 GB, free: 8.051 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007011/0.7281, allocations: 446.9 kB / 0.539 GB, free: 7.711 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.7282, allocations: 3.938 kB / 0.539 GB, free: 7.707 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.7282, allocations: 3.688 kB / 0.539 GB, free: 7.707 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.182e-05/0.7282, allocations: 16 kB / 0.539 GB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001543/0.7298, allocations: 1.1 MB / 0.5401 GB, free: 6.715 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005226/0.7303, allocations: 298.6 kB / 0.5404 GB, free: 6.473 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001959/0.7305, allocations: 140.3 kB / 0.5405 GB, free: 6.371 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.703e-05/0.7306, allocations: 8.094 kB / 0.5405 GB, free: 6.363 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000325/0.7309, allocations: 224.8 kB / 0.5408 GB, free: 6.172 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 2.505e-06/0.7309, allocations: 0 / 0.5408 GB, free: 6.172 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.0008453/0.7318, allocations: 333.5 kB / 0.5411 GB, free: 5.906 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.093e-05/0.7319, allocations: 138.4 kB / 0.5412 GB, free: 5.754 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.7321, allocations: 202.8 kB / 0.5414 GB, free: 5.578 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.7321, allocations: 37.2 kB / 0.5414 GB, free: 5.539 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.7322, allocations: 197.5 kB / 0.5416 GB, free: 5.359 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.206e-05/0.7323, allocations: 90.91 kB / 0.5417 GB, free: 5.285 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.532e-05/0.7323, allocations: 0 / 0.5417 GB, free: 5.285 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.7325, allocations: 334.8 kB / 0.542 GB, free: 4.961 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.7326, allocations: 101.5 kB / 0.5421 GB, free: 4.898 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002891/0.7329, allocations: 287.3 kB / 0.5424 GB, free: 4.582 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003009/0.7332, allocations: 159.5 kB / 0.5426 GB, free: 4.469 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.7333, allocations: 4 kB / 0.5426 GB, free: 4.465 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006984/0.734, allocations: 411.8 kB / 0.543 GB, free: 4.129 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.734, allocations: 4 kB / 0.543 GB, free: 4.125 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.108e-06/0.734, allocations: 4 kB / 0.543 GB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.471e-05/0.734, allocations: 12 kB / 0.543 GB, free: 4.109 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.7343, allocations: 74.95 kB / 0.543 GB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.7343, allocations: 12.09 kB / 0.5431 GB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.7346, allocations: 39.58 kB / 0.5431 GB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.513e-05/0.7346, allocations: 27.78 kB / 0.5431 GB, free: 3.965 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.getBoolean.dummy,getBoolean.dummy,$PRE.addBoolean.pkgOut[1].dummy,addBoolean.pkgOut[1].dummy,$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.getInteger.pkgOut[1].dummy,getInteger.pkgOut[1].dummy,$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,$whenCondition2,integerExpression.y,$whenCondition1,addBoolean.pkgOut[1].trigger,addInteger.u[1],integerExpression1.y,getBoolean.y[1],$PRE.getBoolean.y_int[1],getBoolean.y_int[1],addBoolean.u[1],addBoolean.u_int[1],$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,getBoolean.pkgIn.autoPkgBitSize,getBoolean.pkgIn.userPkgBitSize,getBoolean.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addBoolean.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0001666/0.7348, allocations: 164.4 kB / 0.5433 GB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.206e-05/0.7348, allocations: 23.72 kB / 0.5433 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.042e-05/0.7349, allocations: 21.64 kB / 0.5433 GB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.7349, allocations: 8 kB / 0.5433 GB, free: 3.758 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.7349, allocations: 4 kB / 0.5433 GB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.7349, allocations: 0 / 0.5433 GB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00113/0.7361, allocations: 0.7535 MB / 0.5441 GB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.7361, allocations: 4 kB / 0.5441 GB, free: 3.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.265e-05/0.7362, allocations: 11.98 kB / 0.5441 GB, free: 3.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.7362, allocations: 0 / 0.5441 GB, free: 3.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.931e-05/0.7362, allocations: 11.89 kB / 0.5441 GB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.535e-06/0.7362, allocations: 11.92 kB / 0.5441 GB, free: 3.066 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.7362, allocations: 4 kB / 0.5441 GB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007508/0.737, allocations: 476.9 kB / 0.5446 GB, free: 2.645 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009511/0.738, allocations: 0.8561 MB / 0.5454 GB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.255e-05/0.738, allocations: 100.8 kB / 0.5455 GB, free: 1.715 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.329e-05/0.7381, allocations: 15 kB / 0.5455 GB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.7383, allocations: 19.67 kB / 0.5455 GB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.683e-05/0.7383, allocations: 19.97 kB / 0.5456 GB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.816e-05/0.7384, allocations: 19.67 kB / 0.5456 GB, free: 1.652 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.58e-05/0.7385, allocations: 121.3 kB / 0.5457 GB, free: 1.547 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001156/0.7396, allocations: 145.5 kB / 0.5458 GB, free: 1.422 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 39 (unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,getBoolean.pkgIn.autoPkgBitSize,addBoolean.pkgOut[1].trigger,$whenCondition2,$whenCondition1,integerExpression.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],integerExpression1.y,packInt1.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.pkgOut[1].dummy,getInteger.y[1],getInteger.dummy,unpackInt1.pkgOut[1].dummy,unpackInt1.y,unpackInt1.dummy,addBoolean.pkgOut[1].dummy,addBoolean.u[1],addBoolean.u_int[1],getBoolean.y[1],getBoolean.y_int[1],getBoolean.dummy,booleanPulse.pulseStart,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addBoolean.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 26 * 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.0004093/0.7401, allocations: 217.7 kB / 0.546 GB, free: 1.211 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005051/0.7406, allocations: 307.3 kB / 0.5463 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.7406, allocations: 0 / 0.5463 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002474/0.7408, allocations: 149.6 kB / 0.5465 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004539/0.7413, allocations: 68.97 kB / 0.5465 GB, free: 0.8242 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.7425, allocations: 0.5062 MB / 0.547 GB, free: 352 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005314/0.7431, allocations: 0.8522 MB / 0.5479 GB, free: 15.48 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.7431, allocations: 0 / 0.5479 GB, free: 15.48 MB / 378.7 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestSerialPackager.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager.pipe 2>&1)