Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariables.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.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008955/0.0008955, allocations: 102.7 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.001077/0.001078, allocations: 173.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.416/1.416, allocations: 223.3 MB / 240.6 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005611/0.005611, allocations: 0.9926 MB / 292.7 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004246/0.0004246, allocations: 11.98 kB / 353.8 MB, free: 2.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3862/0.3867, allocations: 50.62 MB / 404.4 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002189/0.3889, allocations: 1.085 MB / 405.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.3905, allocations: 0.7742 MB / 406.3 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.045e-05/0.3906, allocations: 0 / 406.3 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.707e-05/0.3906, allocations: 0.7969 kB / 406.3 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002113/0.3908, allocations: 7.406 kB / 406.3 MB, free: 9.48 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/writeRealVariables.mo:2:1-21:23:writable] Warning: Pure function ‘KeyWordIO.writeRealVariables‘ contains a call to impure function ‘Modelica.Utilities.Files.removeFile‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002975/0.3911, allocations: 36.12 kB / 406.4 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.891e-05/0.3912, allocations: 23.16 kB / 406.4 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.843e-05/0.3913, allocations: 2.578 kB / 406.4 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.156e-05/0.3913, allocations: 13.95 kB / 406.4 MB, free: 9.453 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.3915, allocations: 13.62 kB / 406.4 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.3915, allocations: 4.609 kB / 406.4 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001458/0.3916, allocations: 44.22 kB / 406.5 MB, free: 9.438 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.714e-05/0.3917, allocations: 8.25 kB / 406.5 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.705e-05/0.3917, allocations: 28.11 kB / 406.5 MB, free: 9.402 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.3919, allocations: 39 kB / 406.5 MB, free: 9.391 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.3919, allocations: 0.75 kB / 406.5 MB, free: 9.391 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.3919, allocations: 0.9375 kB / 406.5 MB, free: 9.391 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.3919, allocations: 0 / 406.5 MB, free: 9.391 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004487/0.3923, allocations: 371.5 kB / 406.9 MB, free: 8.996 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.3924, allocations: 9.062 kB / 406.9 MB, free: 8.996 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.942e-05/0.3924, allocations: 6.516 kB / 406.9 MB, free: 8.992 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.3926, allocations: 163.3 kB / 407.1 MB, free: 8.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.3926, allocations: 1.5 kB / 407.1 MB, free: 8.797 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.783e-05/0.3926, allocations: 9.719 kB / 407.1 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000158/0.3928, allocations: 49.55 kB / 407.1 MB, free: 8.754 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.3928, allocations: 0 / 407.1 MB, free: 8.754 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.3928, allocations: 5.875 kB / 407.1 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.3928, allocations: 0 / 407.1 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.467e-05/0.3929, allocations: 17.58 kB / 407.1 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001906/0.3931, allocations: 161.9 kB / 407.3 MB, free: 8.555 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.3932, allocations: 31.89 kB / 407.3 MB, free: 8.527 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.26e-05/0.3933, allocations: 26.34 kB / 407.4 MB, free: 8.512 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.097e-05/0.3933, allocations: 0.5156 kB / 407.4 MB, free: 8.512 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001881/0.3935, allocations: 156.7 kB / 407.5 MB, free: 8.352 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.3935, allocations: 0 / 407.5 MB, free: 8.352 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003495/0.3939, allocations: 124.5 kB / 407.6 MB, free: 8.277 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.3939, allocations: 139.6 kB / 407.8 MB, free: 8.113 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.468e-05/0.394, allocations: 108.4 kB / 407.9 MB, free: 8.012 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.036e-05/0.3941, allocations: 26.95 kB / 407.9 MB, free: 7.98 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.286e-05/0.3941, allocations: 90.12 kB / 408 MB, free: 7.891 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.634e-05/0.3941, allocations: 10.97 kB / 408 MB, free: 7.883 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/0.3941, allocations: 0 / 408 MB, free: 7.883 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 6.531e-05/0.3942, allocations: 317.6 kB / 408.3 MB, free: 7.57 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.544e-05/0.3942, allocations: 14.16 kB / 408.3 MB, free: 7.566 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.765e-05/0.3943, allocations: 26.28 kB / 408.4 MB, free: 7.547 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.617e-05/0.3944, allocations: 52.66 kB / 408.4 MB, free: 7.504 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3944, allocations: 0 / 408.4 MB, free: 7.504 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000156/0.3945, allocations: 105.5 kB / 408.5 MB, free: 7.43 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.272e-05/0.3946, allocations: 32.47 kB / 408.5 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3946, allocations: 5.422 kB / 408.5 MB, free: 7.395 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3946, allocations: 2.25 kB / 408.5 MB, free: 7.395 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.112e-05/0.3947, allocations: 9.156 kB / 408.6 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.3947, allocations: 2.188 kB / 408.6 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.674e-05/0.3948, allocations: 6.734 kB / 408.6 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.3948, allocations: 3.094 kB / 408.6 MB, free: 7.391 MB / 286.1 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = true ) "End value of step.y right after switching" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.y_end,y_end,$whenCondition1,$whenCondition2,y_start) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * 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 0.0001323/0.3949, allocations: 148.9 kB / 408.7 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.456e-05/0.395, allocations: 11.25 kB / 408.7 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.442e-05/0.395, allocations: 6.281 kB / 408.7 MB, free: 7.227 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.395, allocations: 8.922 kB / 408.7 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.395, allocations: 0 / 408.7 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.395, allocations: 0.75 kB / 408.7 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.3951, allocations: 167 kB / 408.9 MB, free: 7.023 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3951, allocations: 0 / 408.9 MB, free: 7.023 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.818e-05/0.3952, allocations: 8.031 kB / 408.9 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3952, allocations: 2.438 kB / 408.9 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.3952, allocations: 2.109 kB / 408.9 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3952, allocations: 0 / 408.9 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3952, allocations: 5.453 kB / 408.9 MB, free: 7.016 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002224/0.3954, allocations: 150.9 kB / 409.1 MB, free: 6.902 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.941e-05/0.3955, allocations: 83.3 kB / 409.1 MB, free: 6.805 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.3955, allocations: 3.062 kB / 409.2 MB, free: 6.805 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.767e-05/0.3955, allocations: 10.84 kB / 409.2 MB, free: 6.801 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.279e-05/0.3956, allocations: 6.281 kB / 409.2 MB, free: 6.797 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.3956, allocations: 13 kB / 409.2 MB, free: 6.789 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.602e-05/0.3957, allocations: 83.91 kB / 409.3 MB, free: 6.715 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3957, allocations: 0 / 409.3 MB, free: 6.715 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002398/0.3959, allocations: 23.27 kB / 409.3 MB, free: 6.711 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: 4 ($whenCondition1,$whenCondition2,y_start,y_end) * Number of discrete states: 4 ($whenCondition2,y_end,$whenCondition1,y_start) * 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.0004583/0.3964, allocations: 204.6 kB / 409.5 MB, free: 6.59 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002001/0.3966, allocations: 110.2 kB / 409.6 MB, free: 6.508 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3966, allocations: 0 / 409.6 MB, free: 6.508 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.3967, allocations: 94.98 kB / 409.7 MB, free: 6.43 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000154/0.3969, allocations: 6.016 kB / 409.7 MB, free: 6.43 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003085/0.3972, allocations: 159.7 kB / 409.8 MB, free: 6.277 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001403/0.3973, allocations: 0.6839 MB / 410.5 MB, free: 5.578 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.681e-05/0.3974, allocations: 9.719 kB / 410.5 MB, free: 5.57 MB / 286.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3974, allocations: 0 / 410.5 MB, free: 5.57 MB / 286.1 MB Notification: Performance of Templates: time 0.003039/0.4004, allocations: 0.9947 MB / 411.5 MB, free: 5.469 MB / 286.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.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.WriteRealVariablesCalcHelperMain.o OMCppKeyWordIO_KeyWordIO.Examples.WriteRealVariablesCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppKeyWordIO_KeyWordIO.Examples.WriteRealVariablesCalcHelperMain.o] Error 1