Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.ReadRealParameter.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.ReadRealParameter,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_ReadRealParameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.ReadRealParameter,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_ReadRealParameter",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.0007689/0.000769, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005116/0.005116, allocations: 170.4 kB / 16.26 MB, free: 6.617 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.299/1.299, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005649/0.005649, allocations: 0.9995 MB / 292.4 MB, free: 1.141 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003087/0.0003087, allocations: 8 kB / 353.9 MB, free: 1.961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2383, allocations: 50.63 MB / 404.5 MB, free: 9.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadRealParameter): time 0.001059/0.2393, allocations: 0.9288 MB / 405.5 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002818/0.2422, allocations: 2.009 MB / 407.5 MB, free: 8.828 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.161e-05/0.2422, allocations: 0 / 407.5 MB, free: 8.828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.58e-05/0.2422, allocations: 4 kB / 407.5 MB, free: 8.824 MB / 286.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 ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readRealParameter.mo:2:1-99:22:writable] Warning: Pure function ‘KeyWordIO.readRealParameter‘ contains a call to impure function ‘KeyWordIO.readLine‘. Notification: Performance of NFTyping.typeBindings: time 0.0009827/0.2432, allocations: 346.2 kB / 407.8 MB, free: 8.668 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.645e-06/0.2432, allocations: 0 / 407.8 MB, free: 8.668 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 3.553e-05/0.2433, allocations: 12.98 kB / 407.8 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.635e-05/0.2433, allocations: 1.703 kB / 407.8 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.793e-05/0.2433, allocations: 6.156 kB / 407.8 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.2434, allocations: 6.953 kB / 407.9 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.093e-06/0.2435, allocations: 0 / 407.9 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006309/0.2441, allocations: 445.9 kB / 408.3 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.214e-06/0.2441, allocations: 1.25 kB / 408.3 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.32e-05/0.2441, allocations: 39.89 kB / 408.3 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000499/0.2447, allocations: 349.8 kB / 408.7 MB, free: 8.363 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2447, allocations: 0 / 408.7 MB, free: 8.363 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.2447, allocations: 2.656 kB / 408.7 MB, free: 8.363 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.2447, allocations: 0 / 408.7 MB, free: 8.363 MB / 286.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.0003364/0.245, allocations: 403.2 kB / 409.1 MB, free: 7.965 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.2451, allocations: 7.844 kB / 409.1 MB, free: 7.965 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.704e-05/0.2451, allocations: 106 kB / 409.2 MB, free: 7.852 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.389e-05/0.2451, allocations: 79.91 kB / 409.3 MB, free: 7.777 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.2453, allocations: 246.1 kB / 409.5 MB, free: 7.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.2453, allocations: 159.4 kB / 409.6 MB, free: 7.344 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.2453, allocations: 157.3 kB / 409.8 MB, free: 7.191 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.212e-05/0.2454, allocations: 101.7 kB / 409.9 MB, free: 7.086 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.2454, allocations: 75.28 kB / 410 MB, free: 7.012 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.386e-05/0.2454, allocations: 150.6 kB / 410.1 MB, free: 6.863 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.319e-05/0.2455, allocations: 154.6 kB / 410.3 MB, free: 6.711 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.557e-05/0.2455, allocations: 153.6 kB / 410.4 MB, free: 6.562 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001717/0.2457, allocations: 460.2 kB / 410.9 MB, free: 6.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.991e-05/0.2457, allocations: 169.1 kB / 411 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.826e-05/0.2457, allocations: 84.14 kB / 411.1 MB, free: 5.809 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.336e-05/0.2458, allocations: 76.03 kB / 411.2 MB, free: 5.734 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.2458, allocations: 105.8 kB / 411.3 MB, free: 5.621 MB / 286.1 MB Notification: Performance of pre-optimization done (n=0): time 9.42e-07/0.2458, allocations: 0 / 411.3 MB, free: 5.621 MB / 286.1 MB Notification: Performance of matching and sorting (n=0): time 7.174e-05/0.2459, allocations: 37.72 kB / 411.3 MB, free: 5.582 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.713e-05/0.2459, allocations: 126.7 kB / 411.5 MB, free: 5.445 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.612e-05/0.246, allocations: 105.1 kB / 411.6 MB, free: 5.344 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.328e-06/0.246, allocations: 26.92 kB / 411.6 MB, free: 5.312 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.588e-05/0.246, allocations: 85.03 kB / 411.7 MB, free: 5.227 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-06/0.246, allocations: 1.5 kB / 411.7 MB, free: 5.227 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.398e-05/0.246, allocations: 9.719 kB / 411.7 MB, free: 5.211 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.762e-05/0.2461, allocations: 311.6 kB / 412 MB, free: 4.898 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.086e-06/0.2461, allocations: 1.219 kB / 412 MB, free: 4.898 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.114e-06/0.2461, allocations: 0 / 412 MB, free: 4.898 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.09e-05/0.2461, allocations: 79.28 kB / 412.1 MB, free: 4.82 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.2461, allocations: 76.5 kB / 412.1 MB, free: 4.746 MB / 286.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.658e-05/0.2462, allocations: 36.84 kB / 412.2 MB, free: 4.707 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.2462, allocations: 80.72 kB / 412.3 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.2462, allocations: 81.33 kB / 412.3 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.48e-05/0.2462, allocations: 155.7 kB / 412.5 MB, free: 4.402 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.518e-06/0.2462, allocations: 80.38 kB / 412.6 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.831e-05/0.2463, allocations: 160.5 kB / 412.7 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.336e-05/0.2463, allocations: 79.92 kB / 412.8 MB, free: 4.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-06/0.2463, allocations: 76.56 kB / 412.9 MB, free: 4.016 MB / 286.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 4.619e-05/0.2464, allocations: 263 kB / 413.1 MB, free: 3.75 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.526e-05/0.2464, allocations: 107.1 kB / 413.2 MB, free: 3.641 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.458e-05/0.2465, allocations: 114 kB / 413.3 MB, free: 3.52 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.176e-05/0.2465, allocations: 178.8 kB / 413.5 MB, free: 3.34 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.236e-05/0.2465, allocations: 181.8 kB / 413.7 MB, free: 3.156 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.103e-05/0.2465, allocations: 178.1 kB / 413.9 MB, free: 2.977 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001148/0.2467, allocations: 410.1 kB / 414.3 MB, free: 2.523 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/0.2467, allocations: 106.7 kB / 414.4 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.374e-05/0.2467, allocations: 107.6 kB / 414.5 MB, free: 2.305 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.075e-05/0.2467, allocations: 182 kB / 414.7 MB, free: 2.121 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.2468, allocations: 181.9 kB / 414.8 MB, free: 1.938 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.068e-05/0.2468, allocations: 185.8 kB / 415 MB, free: 1.75 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.036e-05/0.2468, allocations: 182 kB / 415.2 MB, free: 1.566 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.836e-05/0.2469, allocations: 309.6 kB / 415.5 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.124e-05/0.2469, allocations: 185 kB / 415.7 MB, free: 1.043 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.032e-05/0.2469, allocations: 183.7 kB / 415.9 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.424e-05/0.247, allocations: 103.3 kB / 416 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.485e-05/0.247, allocations: 178 kB / 416.1 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.2471, allocations: 109.9 kB / 416.2 MB, free: 472 kB / 286.1 MB Notification: Performance of sorting global known variables: time 2.545e-05/0.2471, allocations: 85.88 kB / 416.3 MB, free: 392 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2471, allocations: 0 / 416.3 MB, free: 392 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.000437/0.2475, allocations: 129.7 kB / 416.5 MB, free: 360 kB / 286.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.001194/0.2487, allocations: 1.203 MB / 417.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 3.246e-05/0.2488, allocations: 3.938 kB / 417.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2488, allocations: 0 / 417.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.434e-06/0.2488, allocations: 6.031 kB / 417.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003661/0.2492, allocations: 0.521 MB / 418.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.2503, allocations: 1.628 MB / 419.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001912/0.2505, allocations: 0.6718 MB / 420.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.006e-05/0.2505, allocations: 6.172 kB / 420.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.841e-05/0.2505, allocations: 19.11 kB / 420.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2505, allocations: 0 / 420.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01849/0.269, allocations: 3.735 MB / 424.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/0.2692, allocations: 225.2 kB / 424.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.776/2.046, allocations: 0 / 424.5 MB, free: 11.89 MB / 302.1 MB (rm -f KeyWordIO_KeyWordIO.Examples.ReadRealParameter.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.ReadRealParameter.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.ReadRealParameter.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.ReadRealParameter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_ReadRealParameter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_ReadRealParameter.fmu > KeyWordIO_KeyWordIO.Examples.ReadRealParameter.pipe 2>&1)