Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariable.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+X/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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: translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008935/0.0008936, allocations: 103 kB / 15.71 MB, free: 460 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.0008427/0.0008427, allocations: 171.8 kB / 16.58 MB, free: 6.402 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.384/1.384, allocations: 223.3 MB / 240.6 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005471/0.005471, allocations: 0.9924 MB / 292.7 MB, free: 1.164 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003176/0.0003176, allocations: 8 kB / 353.8 MB, free: 2.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3497, allocations: 50.63 MB / 404.4 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002257/0.352, allocations: 1.073 MB / 405.5 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00175/0.3538, allocations: 0.7582 MB / 406.3 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.473e-05/0.3539, allocations: 1.438 kB / 406.3 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.696e-05/0.3539, allocations: 0.75 kB / 406.3 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.3541, allocations: 6.734 kB / 406.3 MB, free: 9.496 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/writeRealVariable.mo:2:1-14:22:writable] Warning: Pure function ‘KeyWordIO.writeRealVariable‘ contains a call to impure function ‘Modelica.Utilities.Files.removeFile‘. Notification: Performance of NFTyping.typeClassSections: time 0.0003253/0.3545, allocations: 41.84 kB / 406.3 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.545e-05/0.3545, allocations: 16.44 kB / 406.3 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.293e-05/0.3546, allocations: 2.25 kB / 406.3 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.862e-05/0.3546, allocations: 5.375 kB / 406.4 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.3548, allocations: 17.16 kB / 406.4 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.3548, allocations: 0.6562 kB / 406.4 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.355, allocations: 40.02 kB / 406.4 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.366e-05/0.355, allocations: 1.031 kB / 406.4 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.215e-05/0.355, allocations: 32.41 kB / 406.4 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.3552, allocations: 32.33 kB / 406.5 MB, free: 9.414 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3552, allocations: 4 kB / 406.5 MB, free: 9.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3552, allocations: 0 / 406.5 MB, free: 9.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.3552, allocations: 0 / 406.5 MB, free: 9.41 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004742/0.3557, allocations: 358 kB / 406.8 MB, free: 9.027 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.261e-05/0.3558, allocations: 9.094 kB / 406.8 MB, free: 9.027 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.17e-05/0.3558, allocations: 13.69 kB / 406.8 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.356, allocations: 170 kB / 407 MB, free: 8.816 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.356, allocations: 6.156 kB / 407 MB, free: 8.812 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.356, allocations: 2.172 kB / 407 MB, free: 8.812 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001387/0.3562, allocations: 40.53 kB / 407.1 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.3562, allocations: 0 / 407.1 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.3562, allocations: 0.5 kB / 407.1 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.3562, allocations: 0.75 kB / 407.1 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.835e-05/0.3563, allocations: 22.92 kB / 407.1 MB, free: 8.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001941/0.3565, allocations: 157.8 kB / 407.2 MB, free: 8.574 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.632e-05/0.3566, allocations: 27.91 kB / 407.3 MB, free: 8.547 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.279e-05/0.3567, allocations: 12.86 kB / 407.3 MB, free: 8.539 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.182e-05/0.3567, allocations: 6.203 kB / 407.3 MB, free: 8.535 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001646/0.3569, allocations: 112.4 kB / 407.4 MB, free: 8.418 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.453e-06/0.3569, allocations: 0 / 407.4 MB, free: 8.418 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002694/0.3571, allocations: 91.53 kB / 407.5 MB, free: 8.348 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.3572, allocations: 81.11 kB / 407.6 MB, free: 8.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.536e-05/0.3573, allocations: 107.6 kB / 407.7 MB, free: 8.148 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.3573, allocations: 26.58 kB / 407.7 MB, free: 8.117 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.968e-05/0.3573, allocations: 81.95 kB / 407.8 MB, free: 8.035 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.688e-05/0.3574, allocations: 9.828 kB / 407.8 MB, free: 8.027 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-06/0.3574, allocations: 0 / 407.8 MB, free: 8.027 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.961e-05/0.3574, allocations: 313.5 kB / 408.1 MB, free: 7.715 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.079e-05/0.3575, allocations: 15.45 kB / 408.1 MB, free: 7.711 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.341e-05/0.3575, allocations: 23.86 kB / 408.1 MB, free: 7.691 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.938e-05/0.3576, allocations: 34.64 kB / 408.2 MB, free: 7.66 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3576, allocations: 0 / 408.2 MB, free: 7.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001533/0.3578, allocations: 92.81 kB / 408.3 MB, free: 7.582 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.3578, allocations: 31.66 kB / 408.3 MB, free: 7.551 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.3578, allocations: 5.562 kB / 408.3 MB, free: 7.547 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.3578, allocations: 1.062 kB / 408.3 MB, free: 7.547 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.365e-05/0.3579, allocations: 5.484 kB / 408.3 MB, free: 7.547 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.3579, allocations: 1.5 kB / 408.3 MB, free: 7.547 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.625e-05/0.358, allocations: 5.438 kB / 408.3 MB, free: 7.547 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-06/0.358, allocations: 1.766 kB / 408.3 MB, free: 7.547 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.866e-05/0.3581, allocations: 143.4 kB / 408.4 MB, free: 7.395 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.699e-05/0.3581, allocations: 2.703 kB / 408.4 MB, free: 7.395 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.785e-05/0.3581, allocations: 13.39 kB / 408.5 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.3581, allocations: 3.953 kB / 408.5 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3582, allocations: 1.781 kB / 408.5 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.3582, allocations: 0 / 408.5 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.3583, allocations: 156.4 kB / 408.6 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3583, allocations: 4.906 kB / 408.6 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.216e-05/0.3583, allocations: 4.734 kB / 408.6 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.3583, allocations: 5.094 kB / 408.6 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.3583, allocations: 0.8438 kB / 408.6 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.3584, allocations: 1 kB / 408.6 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.3584, allocations: 3.953 kB / 408.6 MB, free: 7.172 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001978/0.3586, allocations: 104.1 kB / 408.7 MB, free: 7.074 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.454e-05/0.3586, allocations: 87.94 kB / 408.8 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.836e-05/0.3586, allocations: 0 / 408.8 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.656e-05/0.3587, allocations: 6.125 kB / 408.8 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.3587, allocations: 10.42 kB / 408.8 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.3587, allocations: 11.61 kB / 408.9 MB, free: 6.957 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.639e-05/0.3588, allocations: 84.3 kB / 408.9 MB, free: 6.883 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3588, allocations: 1.312 kB / 408.9 MB, free: 6.883 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002811/0.3591, allocations: 20.2 kB / 409 MB, free: 6.875 MB / 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: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004867/0.3596, allocations: 197 kB / 409.1 MB, free: 6.758 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002101/0.3598, allocations: 77.33 kB / 409.2 MB, free: 6.691 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3598, allocations: 0 / 409.2 MB, free: 6.691 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.364e-05/0.3599, allocations: 64.72 kB / 409.3 MB, free: 6.629 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001757/0.3601, allocations: 4.141 kB / 409.3 MB, free: 6.629 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003206/0.3604, allocations: 138.3 kB / 409.4 MB, free: 6.484 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001287/0.3606, allocations: 0.6766 MB / 410.1 MB, free: 5.789 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.89e-05/0.3606, allocations: 8.938 kB / 410.1 MB, free: 5.781 MB / 286.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3606, allocations: 0 / 410.1 MB, free: 5.781 MB / 286.1 MB Notification: Performance of Templates: time 0.00362/0.3642, allocations: 0.8675 MB / 411 MB, free: 5.688 MB / 286.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.makefile make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppKeyWordIO_KeyWordIO.Examples.WriteRealVariableCalcHelperMain.o OMCppKeyWordIO_KeyWordIO.Examples.WriteRealVariableCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppKeyWordIO_KeyWordIO.Examples.WriteRealVariableCalcHelperMain.o] Error 1