Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MessagePack_MessagePack.Examples.TestCreateAndReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MessagePack 0.1.1-master/package.mo", uses=false) Using package MessagePack with version 0.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MessagePack 0.1.1-master/package.mo) Running command: "" <> buildModelFMU(MessagePack.Examples.TestCreateAndReadFile,fileNamePrefix="MessagePack_MessagePack_Examples_TestCreateAndReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MessagePack.Examples.TestCreateAndReadFile,fileNamePrefix="MessagePack_MessagePack_Examples_TestCreateAndReadFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MessagePack 0.1.1-master/package.mo): time 0.01671/0.01671, allocations: 328 kB / 15.95 MB, free: 5.969 MB / 14.72 MB Notification: Performance of FrontEnd - loaded program: time 0.0004829/0.0004831, allocations: 12.36 kB / 23.48 MB, free: 5.098 MB / 14.72 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0004151/0.0009613, allocations: 90.38 kB / 23.57 MB, free: 5.094 MB / 14.72 MB Notification: Performance of NFInst.instantiate(MessagePack.Examples.TestCreateAndReadFile): time 0.002054/0.003036, allocations: 375.5 kB / 23.93 MB, free: 5.051 MB / 14.72 MB Notification: Performance of NFInst.instExpressions: time 0.0007385/0.003793, allocations: 351 kB / 24.27 MB, free: 4.852 MB / 14.72 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.535e-05/0.00384, allocations: 0 / 24.27 MB, free: 4.852 MB / 14.72 MB Notification: Performance of NFTyping.typeComponents: time 1.787e-05/0.003873, allocations: 0 / 24.27 MB, free: 4.852 MB / 14.72 MB Notification: Performance of NFTyping.typeBindings: time 2.483e-05/0.003902, allocations: 0 / 24.27 MB, free: 4.852 MB / 14.72 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/MessagePack 0.1.1-master/Examples.mo:7:3-25:17:writable] Warning: Pure function 'MessagePack.Examples.TestCreateAndReadFile.createFile' contains a call to impure function 'MessagePack.Pack.SimpleBuffer.SimpleBuffer.constructor'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/MessagePack 0.1.1-master/Examples.mo:27:3-48:15:writable] Warning: Pure function 'MessagePack.Examples.TestCreateAndReadFile.readFile' contains a call to impure function 'MessagePack.Unpack.Deserializer.constructor'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/MessagePack 0.1.1-master/Examples.mo:50:3-61:24:writable] Warning: Pure function 'MessagePack.Examples.TestCreateAndReadFile.createAndReadFile' contains a call to impure function 'MessagePack.Examples.TestCreateAndReadFile.createFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0003944/0.004301, allocations: 116.7 kB / 24.39 MB, free: 4.77 MB / 14.72 MB Notification: Performance of NFFlatten.flatten: time 3.966e-05/0.004348, allocations: 0 / 24.39 MB, free: 4.77 MB / 14.72 MB Notification: Performance of NFFlatten.resolveConnections: time 6.385e-05/0.004418, allocations: 7.938 kB / 24.4 MB, free: 4.762 MB / 14.72 MB Notification: Performance of NFEvalConstants.evaluate: time 2.046e-05/0.004444, allocations: 0 / 24.4 MB, free: 4.762 MB / 14.72 MB Notification: Performance of NFSimplifyModel.simplify: time 1.597e-05/0.004464, allocations: 0 / 24.4 MB, free: 4.762 MB / 14.72 MB Notification: Performance of NFPackage.collectConstants: time 5.21e-06/0.004473, allocations: 0 / 24.4 MB, free: 4.762 MB / 14.72 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001965/0.004675, allocations: 140.7 kB / 24.53 MB, free: 4.656 MB / 14.72 MB Notification: Performance of NFScalarize.scalarize: time 9.588e-06/0.004691, allocations: 0 / 24.53 MB, free: 4.656 MB / 14.72 MB Notification: Performance of NFVerifyModel.verify: time 1.958e-05/0.004715, allocations: 0 / 24.53 MB, free: 4.656 MB / 14.72 MB Notification: Performance of NFConvertDAE.convert: time 0.0001995/0.004919, allocations: 127.6 kB / 24.66 MB, free: 4.555 MB / 14.72 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.00493, allocations: 0 / 24.66 MB, free: 4.555 MB / 14.72 MB Notification: Performance of FrontEnd: time 1.553e-06/0.004936, allocations: 0 / 24.66 MB, free: 4.555 MB / 14.72 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.004946, allocations: 0 / 24.66 MB, free: 4.555 MB / 14.72 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003033/0.005254, allocations: 384.6 kB / 25.03 MB, free: 4.129 MB / 14.72 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.005303, allocations: 8.328 kB / 25.04 MB, free: 4.121 MB / 14.72 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.456e-05/0.005332, allocations: 30.75 kB / 25.07 MB, free: 4.082 MB / 14.72 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.57e-05/0.005364, allocations: 5.094 kB / 25.08 MB, free: 4.078 MB / 14.72 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.933e-05/0.005428, allocations: 164.4 kB / 25.24 MB, free: 3.879 MB / 14.72 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.203e-06/0.005441, allocations: 384 / 25.24 MB, free: 3.879 MB / 14.72 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.005457, allocations: 384 / 25.24 MB, free: 3.879 MB / 14.72 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.33e-05/0.005544, allocations: 29.39 kB / 25.27 MB, free: 3.848 MB / 14.72 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.005557, allocations: 3.938 kB / 25.27 MB, free: 3.844 MB / 14.72 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.874e-06/0.005569, allocations: 4 kB / 25.28 MB, free: 3.84 MB / 14.72 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.005578, allocations: 0.5469 kB / 25.28 MB, free: 3.84 MB / 14.72 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.857e-05/0.005601, allocations: 3.938 kB / 25.28 MB, free: 3.836 MB / 14.72 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002913/0.005898, allocations: 383.4 kB / 25.65 MB, free: 3.414 MB / 14.72 MB Notification: Performance of preOpt comSubExp (simulation): time 5.127e-05/0.005957, allocations: 169.1 kB / 25.82 MB, free: 3.238 MB / 14.72 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.039e-05/0.005983, allocations: 80.14 kB / 25.9 MB, free: 3.156 MB / 14.72 MB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.006007, allocations: 79.22 kB / 25.97 MB, free: 3.078 MB / 14.72 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.006036, allocations: 117 kB / 26.09 MB, free: 2.957 MB / 14.72 MB Notification: Performance of pre-optimization done (n=0): time 1.563e-06/0.006042, allocations: 3.094 kB / 26.09 MB, free: 2.957 MB / 14.72 MB Notification: Performance of matching and sorting (n=0): time 6.988e-05/0.006116, allocations: 37.88 kB / 26.13 MB, free: 2.914 MB / 14.72 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.006155, allocations: 126.7 kB / 26.25 MB, free: 2.777 MB / 14.72 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.222e-05/0.006223, allocations: 90.02 kB / 26.34 MB, free: 2.68 MB / 14.72 MB Notification: Performance of collectPreVariables (initialization): time 7.634e-06/0.006237, allocations: 25.7 kB / 26.37 MB, free: 2.648 MB / 14.72 MB Notification: Performance of collectInitialEqns (initialization): time 3.232e-05/0.006274, allocations: 86.77 kB / 26.45 MB, free: 2.562 MB / 14.72 MB Notification: Performance of collectInitialBindings (initialization): time 2.935e-06/0.006283, allocations: 7.562 kB / 26.46 MB, free: 2.559 MB / 14.72 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/0.006314, allocations: 9.719 kB / 26.47 MB, free: 2.543 MB / 14.72 MB Notification: Performance of setup shared object (initialization): time 4.956e-05/0.006368, allocations: 310.8 kB / 26.77 MB, free: 2.23 MB / 14.72 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.046e-05/0.006383, allocations: 4 kB / 26.77 MB, free: 2.227 MB / 14.72 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.798e-05/0.006406, allocations: 13.7 kB / 26.79 MB, free: 2.207 MB / 14.72 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.044e-05/0.006431, allocations: 12.8 kB / 26.8 MB, free: 2.191 MB / 14.72 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.006438, allocations: 8.031 kB / 26.81 MB, free: 2.184 MB / 14.72 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001065/0.006549, allocations: 32.95 kB / 26.84 MB, free: 2.148 MB / 14.72 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.00657, allocations: 7.938 kB / 26.85 MB, free: 2.141 MB / 14.72 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.00658, allocations: 0 / 26.85 MB, free: 2.141 MB / 14.72 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.006598, allocations: 0 / 26.85 MB, free: 2.141 MB / 14.72 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.846e-05/0.006652, allocations: 4 kB / 26.85 MB, free: 2.137 MB / 14.72 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.006662, allocations: 2.266 kB / 26.85 MB, free: 2.137 MB / 14.72 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.313e-05/0.006679, allocations: 0 / 26.85 MB, free: 2.137 MB / 14.72 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.006689, allocations: 0 / 26.85 MB, free: 2.137 MB / 14.72 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 7.002e-05/0.006763, allocations: 197.6 kB / 27.05 MB, free: 1.934 MB / 14.72 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.166e-05/0.00681, allocations: 108.9 kB / 27.15 MB, free: 1.82 MB / 14.72 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.858e-05/0.006844, allocations: 107.8 kB / 27.26 MB, free: 1.707 MB / 14.72 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-05/0.00688, allocations: 184.2 kB / 27.44 MB, free: 1.52 MB / 14.72 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.635e-05/0.006921, allocations: 176.3 kB / 27.61 MB, free: 1.34 MB / 14.72 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-05/0.006956, allocations: 180.2 kB / 27.79 MB, free: 1.156 MB / 14.72 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001752/0.007136, allocations: 408.4 kB / 28.19 MB, free: 0.7031 MB / 14.72 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.076e-05/0.007163, allocations: 105 kB / 28.29 MB, free: 0.5938 MB / 14.72 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.943e-05/0.007187, allocations: 104.9 kB / 28.39 MB, free: 496 kB / 14.72 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.299e-05/0.007225, allocations: 180.2 kB / 28.57 MB, free: 308 kB / 14.72 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.597e-05/0.007276, allocations: 176.4 kB / 28.74 MB, free: 124 kB / 14.72 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007687/0.01497, allocations: 188.9 kB / 28.92 MB, free: 4.418 MB / 14.72 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.548e-05/0.01505, allocations: 177.7 kB / 29.1 MB, free: 4.238 MB / 14.72 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001118/0.01517, allocations: 310.9 kB / 29.4 MB, free: 3.93 MB / 14.72 MB Notification: Performance of postOpt removeConstants (simulation): time 5.27e-05/0.01523, allocations: 189.8 kB / 29.59 MB, free: 3.73 MB / 14.72 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.923e-05/0.01528, allocations: 182.3 kB / 29.76 MB, free: 3.551 MB / 14.72 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.184e-05/0.01535, allocations: 102.4 kB / 29.86 MB, free: 3.445 MB / 14.72 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.29e-05/0.01542, allocations: 181.9 kB / 30.04 MB, free: 3.266 MB / 14.72 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.01545, allocations: 103.6 kB / 30.14 MB, free: 3.16 MB / 14.72 MB Notification: Performance of sorting global known variables: time 5.846e-05/0.01551, allocations: 77.56 kB / 30.22 MB, free: 3.086 MB / 14.72 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01552, allocations: 1.25 kB / 30.22 MB, free: 3.086 MB / 14.72 MB Notification: Performance of remove unused functions: time 0.0003533/0.01588, allocations: 47.55 kB / 30.27 MB, free: 3.086 MB / 14.72 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.002212/0.0181, allocations: 1.197 MB / 31.46 MB, free: 2.062 MB / 14.72 MB Notification: Performance of simCode: created initialization part: time 0.0001043/0.01822, allocations: 3.781 kB / 31.47 MB, free: 2.062 MB / 14.72 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.01824, allocations: 0 / 31.47 MB, free: 2.062 MB / 14.72 MB Notification: Performance of simCode: created simulation system equations: time 4.268e-06/0.01825, allocations: 1.094 kB / 31.47 MB, free: 2.062 MB / 14.72 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.01867, allocations: 457 kB / 31.91 MB, free: 1.617 MB / 14.72 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005023/0.01919, allocations: 210.4 kB / 32.12 MB, free: 1.406 MB / 14.72 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001208/0.01933, allocations: 0.6736 MB / 32.79 MB, free: 0.7109 MB / 14.72 MB Notification: Performance of simCode: alias equations: time 2.195e-05/0.01936, allocations: 0 / 32.79 MB, free: 0.7109 MB / 14.72 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.781e-05/0.01938, allocations: 14.36 kB / 32.81 MB, free: 0.7031 MB / 14.72 MB Notification: Performance of SimCode: time 3.91e-07/0.01939, allocations: 0 / 32.81 MB, free: 0.7031 MB / 14.72 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02804/0.04744, allocations: 2.532 MB / 35.34 MB, free: 3.473 MB / 19.63 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.134/8.182, allocations: 5.625 kB / 35.35 MB, free: 3.469 MB / 19.63 MB (rm -f MessagePack_MessagePack.Examples.TestCreateAndReadFile.pipe ; mkfifo MessagePack_MessagePack.Examples.TestCreateAndReadFile.pipe ; head -c 1048576 < MessagePack_MessagePack.Examples.TestCreateAndReadFile.pipe >> ../files/MessagePack_MessagePack.Examples.TestCreateAndReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MessagePack_MessagePack_Examples_TestCreateAndReadFile_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 MessagePack_MessagePack_Examples_TestCreateAndReadFile.fmu > MessagePack_MessagePack.Examples.TestCreateAndReadFile.pipe 2>&1)