Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariables.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package KeyWordIO with version 0.11.X (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 175 kB / 15.42 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005488/0.005489, allocations: 1.033 MB / 17.21 MB, free: 4.609 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 225.7 MB / 243.9 MB, free: 7.312 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007473/0.0007473, allocations: 102.6 kB / 295.3 MB, free: 8.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003285/0.0003286, allocations: 8 kB / 356.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2366, allocations: 50.61 MB / 407.3 MB, free: 29.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001226/0.2379, allocations: 1.093 MB / 408.4 MB, free: 28.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.2389, allocations: 1.08 MB / 409.4 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.321e-05/0.239, allocations: 0 / 409.4 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.4e-05/0.239, allocations: 0 / 409.4 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.2392, allocations: 8.906 kB / 409.5 MB, free: 27.65 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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.0002628/0.2394, allocations: 43.88 kB / 409.5 MB, free: 27.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.87e-05/0.2395, allocations: 19.92 kB / 409.5 MB, free: 27.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.299e-05/0.2396, allocations: 4.656 kB / 409.5 MB, free: 27.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.285e-05/0.2396, allocations: 14.66 kB / 409.5 MB, free: 27.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.2397, allocations: 15.86 kB / 409.6 MB, free: 27.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.2398, allocations: 4 kB / 409.6 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.2399, allocations: 43.95 kB / 409.6 MB, free: 27.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.205e-05/0.2399, allocations: 4 kB / 409.6 MB, free: 27.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.406e-05/0.2399, allocations: 41.58 kB / 409.6 MB, free: 27.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.2401, allocations: 63.78 kB / 409.7 MB, free: 27.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.2401, allocations: 0.625 kB / 409.7 MB, free: 27.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2401, allocations: 0 / 409.7 MB, free: 27.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.2401, allocations: 1.219 kB / 409.7 MB, free: 27.4 MB / 298.7 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.0003588/0.2405, allocations: 373 kB / 410.1 MB, free: 26.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.2405, allocations: 8.031 kB / 410.1 MB, free: 26.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.622e-05/0.2406, allocations: 4.938 kB / 410.1 MB, free: 26.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.761e-05/0.2407, allocations: 169 kB / 410.3 MB, free: 26.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.2407, allocations: 4.375 kB / 410.3 MB, free: 26.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-06/0.2407, allocations: 1.844 kB / 410.3 MB, free: 26.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001237/0.2408, allocations: 50.23 kB / 410.3 MB, free: 26.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.2409, allocations: 5.453 kB / 410.3 MB, free: 26.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.2409, allocations: 3.938 kB / 410.3 MB, free: 26.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2409, allocations: 0 / 410.3 MB, free: 26.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.437e-05/0.241, allocations: 30.33 kB / 410.3 MB, free: 26.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001429/0.2411, allocations: 153.7 kB / 410.5 MB, free: 26.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.764e-05/0.2412, allocations: 35.39 kB / 410.5 MB, free: 26.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.283e-05/0.2413, allocations: 22.33 kB / 410.6 MB, free: 26.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.753e-06/0.2413, allocations: 4 kB / 410.6 MB, free: 26.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001659/0.2414, allocations: 140.5 kB / 410.7 MB, free: 26.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.282e-06/0.2415, allocations: 4 kB / 410.7 MB, free: 26.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003068/0.2418, allocations: 131.2 kB / 410.8 MB, free: 26.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.2418, allocations: 136.5 kB / 411 MB, free: 25.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.831e-05/0.2419, allocations: 109.9 kB / 411.1 MB, free: 25.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.242, allocations: 25.7 kB / 411.1 MB, free: 25.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.838e-05/0.242, allocations: 88.14 kB / 411.2 MB, free: 25.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.242, allocations: 15.73 kB / 411.2 MB, free: 25.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-06/0.242, allocations: 0 / 411.2 MB, free: 25.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.289e-05/0.2421, allocations: 322.8 kB / 411.5 MB, free: 25.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.644e-05/0.2422, allocations: 8 kB / 411.5 MB, free: 25.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.542e-05/0.2422, allocations: 29.89 kB / 411.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.2424, allocations: 105 kB / 411.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2424, allocations: 0 / 411.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001586/0.2425, allocations: 111.3 kB / 411.8 MB, free: 25.06 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.063e-05/0.2426, allocations: 37.62 kB / 411.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.2426, allocations: 8.062 kB / 411.8 MB, free: 25.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.2426, allocations: 0 / 411.8 MB, free: 25.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.259e-05/0.2427, allocations: 7.938 kB / 411.8 MB, free: 25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.2427, allocations: 0 / 411.8 MB, free: 25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.361e-05/0.2428, allocations: 11.91 kB / 411.8 MB, free: 24.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.2428, allocations: 0 / 411.8 MB, free: 24.99 MB / 298.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001513/0.243, allocations: 158.4 kB / 412 MB, free: 24.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.243, allocations: 7.938 kB / 412 MB, free: 24.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.025e-05/0.243, allocations: 3.969 kB / 412 MB, free: 24.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.243, allocations: 0 / 412 MB, free: 24.81 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.243, allocations: 0 / 412 MB, free: 24.81 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.243, allocations: 3.984 kB / 412 MB, free: 24.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.425e-05/0.2431, allocations: 165.7 kB / 412.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2431, allocations: 0 / 412.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.69e-05/0.2432, allocations: 4 kB / 412.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.2432, allocations: 7.938 kB / 412.2 MB, free: 24.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.2432, allocations: 4 kB / 412.2 MB, free: 24.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2432, allocations: 0 / 412.2 MB, free: 24.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2432, allocations: 3.938 kB / 412.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001867/0.2434, allocations: 154.7 kB / 412.3 MB, free: 24.4 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.339e-05/0.2434, allocations: 77.11 kB / 412.4 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.2435, allocations: 11.97 kB / 412.4 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.414e-05/0.2435, allocations: 4 kB / 412.4 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.011e-05/0.2435, allocations: 3.984 kB / 412.4 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.2436, allocations: 8 kB / 412.4 MB, free: 24.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.725e-05/0.2436, allocations: 87.27 kB / 412.5 MB, free: 24.19 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.2436, allocations: 0 / 412.5 MB, free: 24.19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002083/0.2438, allocations: 31.92 kB / 412.5 MB, free: 24.16 MB / 298.7 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 (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.0004081/0.2442, allocations: 239.9 kB / 412.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001808/0.2444, allocations: 103.3 kB / 412.9 MB, free: 23.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2444, allocations: 4 kB / 412.9 MB, free: 23.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.311e-05/0.2445, allocations: 91.39 kB / 413 MB, free: 23.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.2447, allocations: 4 kB / 413 MB, free: 23.74 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002616/0.2449, allocations: 136.9 kB / 413.1 MB, free: 23.58 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.862e-05/0.245, allocations: 0.6848 MB / 413.8 MB, free: 22.87 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.799e-05/0.2451, allocations: 3.984 kB / 413.8 MB, free: 22.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.301e-05/0.2451, allocations: 7.438 kB / 413.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2451, allocations: 0 / 413.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of Templates: time 0.002918/0.248, allocations: 0.8227 MB / 414.6 MB, free: 22.04 MB / 298.7 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariables.sim & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariables -abortSlowSimulation -alarm=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1)