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.01038/0.01038, allocations: 330.6 kB / 15.82 MB, free: 5.996 MB / 14.72 MB Notification: Performance of FrontEnd - loaded program: time 0.0004624/0.0004624, allocations: 7.984 kB / 22.84 MB, free: 92 kB / 14.72 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.005739/0.006221, allocations: 94 kB / 22.93 MB, free: 6.121 MB / 14.72 MB Notification: Performance of NFInst.instantiate(MessagePack.Examples.TestCreateAndReadFile): time 0.001768/0.008013, allocations: 372.1 kB / 23.29 MB, free: 6.051 MB / 14.72 MB Notification: Performance of NFInst.instExpressions: time 0.000909/0.008941, allocations: 348.5 kB / 23.63 MB, free: 5.887 MB / 14.72 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.293e-05/0.008982, allocations: 0 / 23.63 MB, free: 5.887 MB / 14.72 MB Notification: Performance of NFTyping.typeComponents: time 1.491e-05/0.00902, allocations: 0 / 23.63 MB, free: 5.887 MB / 14.72 MB Notification: Performance of NFTyping.typeBindings: time 2.234e-05/0.009052, allocations: 1.469 kB / 23.64 MB, free: 5.887 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.000471/0.009533, allocations: 109 kB / 23.74 MB, free: 5.828 MB / 14.72 MB Notification: Performance of NFFlatten.flatten: time 3.178e-05/0.009578, allocations: 1.312 kB / 23.74 MB, free: 5.828 MB / 14.72 MB Notification: Performance of NFFlatten.resolveConnections: time 4.337e-05/0.009632, allocations: 3.984 kB / 23.75 MB, free: 5.824 MB / 14.72 MB Notification: Performance of NFEvalConstants.evaluate: time 1.31e-05/0.009656, allocations: 1.344 kB / 23.75 MB, free: 5.824 MB / 14.72 MB Notification: Performance of NFSimplifyModel.simplify: time 1.243e-05/0.009676, allocations: 0 / 23.75 MB, free: 5.824 MB / 14.72 MB Notification: Performance of NFPackage.collectConstants: time 5.2e-06/0.00969, allocations: 0 / 23.75 MB, free: 5.824 MB / 14.72 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002504/0.00995, allocations: 146.5 kB / 23.89 MB, free: 5.777 MB / 14.72 MB Notification: Performance of NFScalarize.scalarize: time 3.563e-05/0.01, allocations: 0 / 23.89 MB, free: 5.777 MB / 14.72 MB Notification: Performance of NFVerifyModel.verify: time 1.557e-05/0.01004, allocations: 3.375 kB / 23.89 MB, free: 5.777 MB / 14.72 MB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.01022, allocations: 115.5 kB / 24.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.01024, allocations: 3.938 kB / 24.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of FrontEnd: time 1.273e-06/0.01025, allocations: 0 / 24.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.01025, allocations: 0 / 24.01 MB, free: 5.73 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.0002142/0.01047, allocations: 383.2 kB / 24.39 MB, free: 5.316 MB / 14.72 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.01052, allocations: 10.89 kB / 24.4 MB, free: 5.316 MB / 14.72 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.972e-05/0.01054, allocations: 30.75 kB / 24.43 MB, free: 5.277 MB / 14.72 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.309e-05/0.01057, allocations: 5.094 kB / 24.43 MB, free: 5.273 MB / 14.72 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.154e-05/0.01062, allocations: 160.4 kB / 24.59 MB, free: 5.078 MB / 14.72 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.01064, allocations: 2.438 kB / 24.59 MB, free: 5.078 MB / 14.72 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-06/0.01065, allocations: 6.625 kB / 24.6 MB, free: 5.074 MB / 14.72 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.1e-05/0.01072, allocations: 30.25 kB / 24.63 MB, free: 5.039 MB / 14.72 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.01074, allocations: 10.52 kB / 24.64 MB, free: 5.035 MB / 14.72 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.312e-06/0.01075, allocations: 0 / 24.64 MB, free: 5.035 MB / 14.72 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.01076, allocations: 0 / 24.64 MB, free: 5.035 MB / 14.72 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.428e-05/0.01078, allocations: 0 / 24.64 MB, free: 5.035 MB / 14.72 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001839/0.01097, allocations: 378.2 kB / 25.01 MB, free: 4.621 MB / 14.72 MB Notification: Performance of preOpt comSubExp (simulation): time 3.575e-05/0.01101, allocations: 184.2 kB / 25.19 MB, free: 4.438 MB / 14.72 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.318e-05/0.01103, allocations: 80.14 kB / 25.26 MB, free: 4.355 MB / 14.72 MB Notification: Performance of preOpt evalFunc (simulation): time 8.126e-06/0.01105, allocations: 75.28 kB / 25.34 MB, free: 4.281 MB / 14.72 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.346e-05/0.01106, allocations: 109.8 kB / 25.44 MB, free: 4.164 MB / 14.72 MB Notification: Performance of pre-optimization done (n=0): time 1.533e-06/0.01107, allocations: 0 / 25.44 MB, free: 4.164 MB / 14.72 MB Notification: Performance of matching and sorting (n=0): time 5.821e-05/0.01113, allocations: 29.8 kB / 25.47 MB, free: 4.129 MB / 14.72 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.073e-05/0.01116, allocations: 130.6 kB / 25.6 MB, free: 3.992 MB / 14.72 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.097e-05/0.0112, allocations: 97.33 kB / 25.7 MB, free: 3.891 MB / 14.72 MB Notification: Performance of collectPreVariables (initialization): time 5.12e-06/0.01122, allocations: 25.7 kB / 25.72 MB, free: 3.859 MB / 14.72 MB Notification: Performance of collectInitialEqns (initialization): time 2.085e-05/0.01124, allocations: 82.8 kB / 25.8 MB, free: 3.777 MB / 14.72 MB Notification: Performance of collectInitialBindings (initialization): time 1.763e-06/0.01125, allocations: 4.125 kB / 25.81 MB, free: 3.773 MB / 14.72 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.277e-05/0.01128, allocations: 17.67 kB / 25.82 MB, free: 3.754 MB / 14.72 MB Notification: Performance of setup shared object (initialization): time 3.085e-05/0.01131, allocations: 314.2 kB / 26.13 MB, free: 3.441 MB / 14.72 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.231e-06/0.01132, allocations: 0 / 26.13 MB, free: 3.441 MB / 14.72 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.442e-05/0.01134, allocations: 13.72 kB / 26.14 MB, free: 3.426 MB / 14.72 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.442e-05/0.01136, allocations: 8.859 kB / 26.15 MB, free: 3.414 MB / 14.72 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.01137, allocations: 3.938 kB / 26.16 MB, free: 3.41 MB / 14.72 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.349e-05/0.01145, allocations: 37.39 kB / 26.19 MB, free: 3.371 MB / 14.72 MB Notification: Performance of prepare postOptimizeDAE: time 9.909e-06/0.01146, allocations: 7.938 kB / 26.2 MB, free: 3.363 MB / 14.72 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.01147, allocations: 0 / 26.2 MB, free: 3.363 MB / 14.72 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.01148, allocations: 0 / 26.2 MB, free: 3.363 MB / 14.72 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.916e-05/0.01153, allocations: 7.984 kB / 26.21 MB, free: 3.355 MB / 14.72 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.566e-06/0.01154, allocations: 0 / 26.21 MB, free: 3.355 MB / 14.72 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.362e-05/0.01155, allocations: 3.062 kB / 26.21 MB, free: 3.355 MB / 14.72 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-06/0.01156, allocations: 0 / 26.21 MB, free: 3.355 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 4.077e-05/0.01161, allocations: 197 kB / 26.4 MB, free: 3.156 MB / 14.72 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.779e-05/0.01165, allocations: 104.9 kB / 26.51 MB, free: 3.047 MB / 14.72 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.926e-05/0.01168, allocations: 108.4 kB / 26.61 MB, free: 2.926 MB / 14.72 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/0.0117, allocations: 180.2 kB / 26.79 MB, free: 2.742 MB / 14.72 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.338e-05/0.01173, allocations: 185 kB / 26.97 MB, free: 2.559 MB / 14.72 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/0.01176, allocations: 180.2 kB / 27.15 MB, free: 2.375 MB / 14.72 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/0.0119, allocations: 401.2 kB / 27.54 MB, free: 1.926 MB / 14.72 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.01192, allocations: 108.9 kB / 27.64 MB, free: 1.812 MB / 14.72 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.293e-05/0.01194, allocations: 105 kB / 27.75 MB, free: 1.703 MB / 14.72 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.418e-05/0.01197, allocations: 179.5 kB / 27.92 MB, free: 1.523 MB / 14.72 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.012, allocations: 180.2 kB / 28.1 MB, free: 1.34 MB / 14.72 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.117e-05/0.01202, allocations: 176.3 kB / 28.27 MB, free: 1.16 MB / 14.72 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-05/0.01205, allocations: 188.2 kB / 28.45 MB, free: 0.9688 MB / 14.72 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.918e-05/0.01212, allocations: 306.8 kB / 28.75 MB, free: 0.6484 MB / 14.72 MB Notification: Performance of postOpt removeConstants (simulation): time 2.911e-05/0.01215, allocations: 185.9 kB / 28.93 MB, free: 452 kB / 14.72 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.279e-05/0.01219, allocations: 191.5 kB / 29.12 MB, free: 256 kB / 14.72 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.298e-05/0.01225, allocations: 112.9 kB / 29.23 MB, free: 136 kB / 14.72 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004276/0.01653, allocations: 177.5 kB / 29.4 MB, free: 4.906 MB / 14.72 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.01655, allocations: 104.6 kB / 29.51 MB, free: 4.801 MB / 14.72 MB Notification: Performance of sorting global known variables: time 2.103e-05/0.01658, allocations: 76.12 kB / 29.58 MB, free: 4.727 MB / 14.72 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01658, allocations: 0 / 29.58 MB, free: 4.727 MB / 14.72 MB Notification: Performance of remove unused functions: time 0.0002951/0.01688, allocations: 45.14 kB / 29.63 MB, free: 4.727 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.001239/0.01813, allocations: 1.197 MB / 30.82 MB, free: 3.699 MB / 14.72 MB Notification: Performance of simCode: created initialization part: time 7.352e-05/0.01821, allocations: 13.72 kB / 30.84 MB, free: 3.699 MB / 14.72 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.01822, allocations: 0 / 30.84 MB, free: 3.699 MB / 14.72 MB Notification: Performance of simCode: created simulation system equations: time 1.673e-06/0.01823, allocations: 0 / 30.84 MB, free: 3.699 MB / 14.72 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.01849, allocations: 453.2 kB / 31.28 MB, free: 3.254 MB / 14.72 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003009/0.0188, allocations: 206.2 kB / 31.48 MB, free: 3.043 MB / 14.72 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.394e-05/0.01888, allocations: 0.6743 MB / 32.15 MB, free: 2.348 MB / 14.72 MB Notification: Performance of simCode: alias equations: time 1.179e-05/0.0189, allocations: 0 / 32.15 MB, free: 2.348 MB / 14.72 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.799e-06/0.01892, allocations: 8.594 kB / 32.16 MB, free: 2.34 MB / 14.72 MB Notification: Performance of SimCode: time 2.1e-07/0.01892, allocations: 0 / 32.16 MB, free: 2.34 MB / 14.72 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01692/0.03585, allocations: 2.502 MB / 34.66 MB, free: 108 kB / 14.72 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.618/7.654, allocations: 6 kB / 34.67 MB, free: 104 kB / 14.72 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 & python3 -m fmpy simulate --output-file MessagePack_MessagePack.Examples.TestCreateAndReadFile_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 MessagePack_MessagePack_Examples_TestCreateAndReadFile.fmu > MessagePack_MessagePack.Examples.TestCreateAndReadFile.pipe 2>&1)