Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.ReadReal_m.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/KeyWordIO 0.11.0-master/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-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(KeyWordIO.Examples.ReadReal_m,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_ReadReal_m",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.ReadReal_m,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_ReadReal_m",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.006994/0.006994, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.001175/0.001175, allocations: 197.4 kB / 16.68 MB, free: 5.965 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006347/0.006347, allocations: 1.004 MB / 291.5 MB, free: 1.016 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 64.3 kB / 402.5 MB, free: 9.141 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08561/0.08681, allocations: 49.64 MB / 452.1 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadReal_m): time 0.002173/0.08902, allocations: 1.212 MB / 453.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003132/0.09217, allocations: 2.067 MB / 455.4 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.457e-05/0.09222, allocations: 4 kB / 455.4 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.115e-05/0.09227, allocations: 0 / 455.4 MB, free: 1.574 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readLine.mo:2:1-36:13:writable] Warning: Pure function 'KeyWordIO.readLine' contains a call to impure function 'KeyWordIO.readLineWithoutCache'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readReal_m.mo:2:1-79:15:writable] Warning: Pure function 'KeyWordIO.readReal_m' contains a call to impure function 'KeyWordIO.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.00148/0.09376, allocations: 498.4 kB / 455.9 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.198e-06/0.09377, allocations: 0 / 455.9 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.518e-05/0.09384, allocations: 11.94 kB / 455.9 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.335e-05/0.09389, allocations: 3.984 kB / 455.9 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.509e-05/0.09392, allocations: 11.94 kB / 455.9 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002994/0.09422, allocations: 7.984 kB / 455.9 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.456e-06/0.09424, allocations: 4 kB / 455.9 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008565/0.0951, allocations: 0.5111 MB / 456.4 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.748e-06/0.09513, allocations: 4 kB / 456.4 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.228e-05/0.09515, allocations: 11.88 kB / 456.4 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006906/0.09585, allocations: 379.4 kB / 456.8 MB, free: 152 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.09587, allocations: 0 / 456.8 MB, free: 152 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.09588, allocations: 0 / 456.8 MB, free: 152 kB / 318.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.09589, allocations: 0 / 456.8 MB, free: 152 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.000557/0.09645, allocations: 417.4 kB / 457.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.0965, allocations: 16.03 kB / 457.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.992e-05/0.09656, allocations: 106 kB / 457.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.494e-05/0.09663, allocations: 76.22 kB / 457.4 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001815/0.09682, allocations: 247.6 kB / 457.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.22e-05/0.09688, allocations: 154.9 kB / 457.8 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.625e-05/0.09694, allocations: 154.5 kB / 458 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.648e-05/0.09701, allocations: 108.9 kB / 458.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.404e-05/0.09706, allocations: 75.28 kB / 458.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.536e-05/0.09712, allocations: 154.6 kB / 458.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.897e-05/0.09718, allocations: 150.6 kB / 458.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.635e-05/0.09724, allocations: 150.6 kB / 458.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002988/0.09755, allocations: 457.9 kB / 459 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.765e-05/0.09762, allocations: 169.1 kB / 459.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.352e-05/0.09766, allocations: 80.14 kB / 459.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.09769, allocations: 75.28 kB / 459.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.09773, allocations: 109.8 kB / 459.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 1.242e-06/0.09774, allocations: 4 kB / 459.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 7.719e-05/0.09782, allocations: 33.64 kB / 459.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.09787, allocations: 126.7 kB / 459.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.946e-05/0.09798, allocations: 105.8 kB / 459.7 MB, free: 13.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.506e-06/0.098, allocations: 25.7 kB / 459.7 MB, free: 13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.822e-05/0.09803, allocations: 80.14 kB / 459.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.342e-06/0.09803, allocations: 0 / 459.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.149e-05/0.09806, allocations: 13.72 kB / 459.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.005e-05/0.09816, allocations: 326.8 kB / 460.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.566e-06/0.09817, allocations: 4 kB / 460.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.455e-06/0.09818, allocations: 0 / 460.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.225e-05/0.0982, allocations: 75.53 kB / 460.2 MB, free: 12.49 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.962e-05/0.09823, allocations: 75.28 kB / 460.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.096e-05/0.09829, allocations: 45.48 kB / 460.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.23e-05/0.09833, allocations: 79.28 kB / 460.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/0.09836, allocations: 75.28 kB / 460.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.714e-05/0.09842, allocations: 158.6 kB / 460.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.034e-05/0.09845, allocations: 79.22 kB / 460.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.441e-05/0.09849, allocations: 158.5 kB / 460.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.916e-05/0.09857, allocations: 83.22 kB / 461 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.0986, allocations: 79.28 kB / 461 MB, free: 11.66 MB / 334.1 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 (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 prepare postOptimizeDAE: time 9.059e-05/0.09869, allocations: 264.3 kB / 461.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.702e-05/0.09876, allocations: 104.9 kB / 461.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.804e-05/0.0988, allocations: 108.1 kB / 461.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.943e-05/0.09885, allocations: 180.2 kB / 461.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.508e-05/0.09891, allocations: 184.2 kB / 461.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-05/0.09897, allocations: 180.3 kB / 462 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.09916, allocations: 409.1 kB / 462.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.373e-05/0.0992, allocations: 105 kB / 462.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.134e-05/0.09924, allocations: 105 kB / 462.6 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.543e-05/0.0993, allocations: 184.2 kB / 462.8 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.506e-05/0.09936, allocations: 180.2 kB / 463 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.327e-05/0.09942, allocations: 188.1 kB / 463.2 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.932e-05/0.09947, allocations: 180.3 kB / 463.4 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/0.0996, allocations: 307.7 kB / 463.7 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.46e-05/0.09967, allocations: 182.1 kB / 463.8 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.147e-05/0.09974, allocations: 184.2 kB / 464 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.697e-05/0.09982, allocations: 101.4 kB / 464.1 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.529e-05/0.0999, allocations: 184.3 kB / 464.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.09993, allocations: 104.9 kB / 464.4 MB, free: 8.078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.461e-05/0.09998, allocations: 83.27 kB / 464.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.09999, allocations: 0 / 464.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005224/0.1005, allocations: 143.9 kB / 464.6 MB, free: 7.855 MB / 334.1 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.001356/0.1019, allocations: 1.228 MB / 465.9 MB, free: 6.684 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 4.388e-05/0.1019, allocations: 7.875 kB / 465.9 MB, free: 6.676 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.1019, allocations: 0 / 465.9 MB, free: 6.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.936e-06/0.102, allocations: 4 kB / 465.9 MB, free: 6.672 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.1023, allocations: 459.7 kB / 466.3 MB, free: 6.219 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.1036, allocations: 1.642 MB / 468 MB, free: 4.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.1039, allocations: 0.6805 MB / 468.6 MB, free: 3.793 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.222e-05/0.1039, allocations: 4 kB / 468.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.35e-05/0.1039, allocations: 15.38 kB / 468.7 MB, free: 3.773 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1039, allocations: 0 / 468.7 MB, free: 3.773 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02141/0.1253, allocations: 4.199 MB / 472.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.293/7.418, allocations: 4.281 kB / 472.9 MB, free: 15.62 MB / 350.1 MB (rm -f KeyWordIO_KeyWordIO.Examples.ReadReal_m.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.ReadReal_m.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.ReadReal_m.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.ReadReal_m.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_ReadReal_m_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_ReadReal_m.fmu > KeyWordIO_KeyWordIO.Examples.ReadReal_m.pipe 2>&1)