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.001607/0.001607, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001738/0.001738, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006106/0.006105, allocations: 1.002 MB / 291.4 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 59.91 kB / 352.2 MB, free: 6.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08129/0.08248, allocations: 49.65 MB / 401.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadReal_m): time 0.002098/0.08462, allocations: 1.2 MB / 403 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002943/0.08758, allocations: 2.077 MB / 405.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.947e-05/0.08761, allocations: 0 / 405.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.934e-05/0.08764, allocations: 3.938 kB / 405.1 MB, free: 1.801 MB / 334.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.001233/0.08889, allocations: 490 kB / 405.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.447e-06/0.0889, allocations: 0 / 405.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.553e-05/0.08895, allocations: 11.94 kB / 405.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.458e-05/0.089, allocations: 11.94 kB / 405.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.28e-05/0.08903, allocations: 7.922 kB / 405.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003601/0.0894, allocations: 11.98 kB / 405.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.346e-06/0.08942, allocations: 0 / 405.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006799/0.0901, allocations: 467.5 kB / 406.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.287e-06/0.09012, allocations: 7.922 kB / 406.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.906e-05/0.09015, allocations: 4 kB / 406.1 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000497/0.09065, allocations: 379.3 kB / 406.4 MB, free: 452 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.09066, allocations: 0 / 406.4 MB, free: 452 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.09067, allocations: 0 / 406.4 MB, free: 452 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.09068, allocations: 0 / 406.4 MB, free: 452 kB / 334.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.0004568/0.09114, allocations: 415.7 kB / 406.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.09118, allocations: 12.03 kB / 406.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.796e-05/0.09124, allocations: 106 kB / 407 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.581e-05/0.09131, allocations: 88.11 kB / 407.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/0.09146, allocations: 239.7 kB / 407.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.375e-05/0.09151, allocations: 150.9 kB / 407.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.944e-05/0.09157, allocations: 158.5 kB / 407.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.103e-05/0.09162, allocations: 105 kB / 407.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.09166, allocations: 75.28 kB / 407.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.496e-05/0.09173, allocations: 158.5 kB / 407.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.057e-05/0.09179, allocations: 154.5 kB / 408.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.333e-05/0.09185, allocations: 158.6 kB / 408.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002474/0.0921, allocations: 446 kB / 408.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.333e-05/0.09218, allocations: 173.1 kB / 408.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.692e-05/0.09222, allocations: 80.14 kB / 408.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.09225, allocations: 79.22 kB / 409 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.863e-05/0.0923, allocations: 113.8 kB / 409.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.012e-06/0.0923, allocations: 3.938 kB / 409.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.733e-05/0.0924, allocations: 29.7 kB / 409.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.09246, allocations: 126.7 kB / 409.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.09258, allocations: 105.8 kB / 409.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.11e-05/0.09259, allocations: 25.7 kB / 409.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.264e-05/0.09263, allocations: 84.14 kB / 409.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.503e-06/0.09264, allocations: 7.938 kB / 409.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.262e-05/0.09267, allocations: 13.72 kB / 409.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.09281, allocations: 310.8 kB / 409.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.619e-06/0.09282, allocations: 0 / 409.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.369e-06/0.09283, allocations: 3.938 kB / 409.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.358e-05/0.09285, allocations: 75.28 kB / 409.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-05/0.09288, allocations: 75.28 kB / 409.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.383e-05/0.09294, allocations: 33.64 kB / 410 MB, free: 12.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.407e-05/0.09299, allocations: 87.27 kB / 410.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.697e-05/0.09302, allocations: 79.28 kB / 410.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.775e-05/0.09312, allocations: 158.5 kB / 410.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.267e-05/0.09315, allocations: 75.53 kB / 410.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.227e-05/0.0932, allocations: 154.5 kB / 410.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.772e-05/0.09328, allocations: 79.28 kB / 410.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.329e-05/0.09331, allocations: 83.28 kB / 410.7 MB, free: 11.96 MB / 350.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 0.000105/0.09342, allocations: 264.3 kB / 410.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.778e-05/0.09351, allocations: 112.9 kB / 411 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.206e-05/0.09356, allocations: 108.1 kB / 411.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.019e-05/0.09363, allocations: 180.2 kB / 411.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-05/0.0937, allocations: 184.3 kB / 411.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.059e-05/0.09378, allocations: 188.2 kB / 411.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002409/0.09402, allocations: 401.2 kB / 412.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.978e-05/0.09406, allocations: 105 kB / 412.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.118e-05/0.0941, allocations: 108.9 kB / 412.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.685e-05/0.09416, allocations: 176.3 kB / 412.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.09427, allocations: 184.2 kB / 412.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.764e-05/0.09434, allocations: 180.3 kB / 412.8 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.177e-05/0.09439, allocations: 180.3 kB / 413 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/0.09452, allocations: 308.1 kB / 413.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.823e-05/0.09462, allocations: 190 kB / 413.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.964e-05/0.09469, allocations: 176.3 kB / 413.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.268e-05/0.09477, allocations: 113 kB / 413.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.077e-05/0.09484, allocations: 180.2 kB / 413.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.402e-05/0.09488, allocations: 101 kB / 414 MB, free: 8.371 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.228e-05/0.09493, allocations: 83.28 kB / 414.1 MB, free: 8.289 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.515e-06/0.09497, allocations: 4 kB / 414.1 MB, free: 8.285 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004695/0.09545, allocations: 151.8 kB / 414.3 MB, free: 8.137 MB / 350.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.001294/0.09675, allocations: 1.222 MB / 415.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 3.867e-05/0.0968, allocations: 0 / 415.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.09681, allocations: 0 / 415.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.222e-06/0.09682, allocations: 4 kB / 415.5 MB, free: 6.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003525/0.09717, allocations: 455.7 kB / 415.9 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.09841, allocations: 1.654 MB / 417.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002436/0.09867, allocations: 0.6766 MB / 418.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.608e-06/0.09869, allocations: 7.938 kB / 418.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.959e-05/0.09872, allocations: 15.42 kB / 418.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.09873, allocations: 4 kB / 418.3 MB, free: 4.051 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1557/0.2544, allocations: 4.153 MB / 422.4 MB, free: 53.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.558/7.812, allocations: 4.938 kB / 422.5 MB, free: 53.57 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)