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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 117.4 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 214.3 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.398/1.398, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.006511/0.006511, allocations: 1.014 MB / 310.6 MB, free: 3.242 MB / 238.1 MB " [Timeout remaining time 180] Using package KeyWordIO with version 0.12.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariables,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariables",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariables,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariables",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: KeyWordIO requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 65.66 kB / 431.3 MB, free: 40.86 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08614/0.08807, allocations: 53.54 MB / 484.8 MB, free: 18.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.00249/0.09056, allocations: 1.371 MB / 486.2 MB, free: 17.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.0917, allocations: 0.8221 MB / 487 MB, free: 16.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.961e-05/0.09173, allocations: 4 kB / 487 MB, free: 16.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.061e-05/0.09176, allocations: 3.938 kB / 487 MB, free: 16.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001848/0.09194, allocations: 11.09 kB / 487 MB, free: 16.59 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.0002532/0.0922, allocations: 49.55 kB / 487.1 MB, free: 16.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.209e-05/0.09228, allocations: 22.5 kB / 487.1 MB, free: 16.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.006e-05/0.09232, allocations: 5.141 kB / 487.1 MB, free: 16.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.968e-05/0.09235, allocations: 8.531 kB / 487.1 MB, free: 16.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.09245, allocations: 17.48 kB / 487.1 MB, free: 16.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.09246, allocations: 1.281 kB / 487.1 MB, free: 16.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.09257, allocations: 44.39 kB / 487.2 MB, free: 16.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.487e-05/0.09258, allocations: 13.12 kB / 487.2 MB, free: 16.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.154e-05/0.09261, allocations: 11.84 kB / 487.2 MB, free: 16.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.09276, allocations: 64.41 kB / 487.2 MB, free: 16.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.09276, allocations: 1.094 kB / 487.2 MB, free: 16.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.09276, allocations: 0 / 487.2 MB, free: 16.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.09277, allocations: 0 / 487.2 MB, free: 16.44 MB / 350.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.0003669/0.09313, allocations: 381.1 kB / 487.6 MB, free: 16.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.09317, allocations: 10.34 kB / 487.6 MB, free: 16.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.175e-05/0.09319, allocations: 8.188 kB / 487.6 MB, free: 16.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.759e-05/0.09321, allocations: 39.81 kB / 487.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.637e-05/0.09324, allocations: 5 kB / 487.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.798e-05/0.09332, allocations: 170.7 kB / 487.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.09334, allocations: 5.438 kB / 487.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.09335, allocations: 1.625 kB / 487.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001243/0.09347, allocations: 44.12 kB / 487.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.09348, allocations: 0 / 487.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.09349, allocations: 1.531 kB / 487.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.09349, allocations: 3.938 kB / 487.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.086e-05/0.09357, allocations: 22.58 kB / 487.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.09369, allocations: 154.9 kB / 488.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.141e-05/0.09376, allocations: 34.45 kB / 488.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.704e-05/0.09381, allocations: 16.02 kB / 488.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.159e-05/0.09382, allocations: 0 / 488.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000137/0.09395, allocations: 150.4 kB / 488.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.09396, allocations: 0 / 488.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002813/0.09424, allocations: 124.3 kB / 488.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.09428, allocations: 134.3 kB / 488.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.352e-05/0.09435, allocations: 115.2 kB / 488.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.606e-06/0.09436, allocations: 26.89 kB / 488.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.098e-05/0.09438, allocations: 81.64 kB / 488.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.0944, allocations: 14.69 kB / 488.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.92e-05/0.09443, allocations: 22.61 kB / 488.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.574e-05/0.09448, allocations: 316.2 kB / 489.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.434e-05/0.09452, allocations: 14.39 kB / 489.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.286e-05/0.09456, allocations: 16.75 kB / 489.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/0.09471, allocations: 109.9 kB / 489.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.09471, allocations: 1.219 kB / 489.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001481/0.09485, allocations: 109.2 kB / 489.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.09488, allocations: 32.48 kB / 489.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.09488, allocations: 1.438 kB / 489.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.0949, allocations: 0 / 489.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.551e-05/0.09496, allocations: 4.562 kB / 489.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.09497, allocations: 5.359 kB / 489.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.888e-05/0.09501, allocations: 11.25 kB / 489.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.09502, allocations: 2.188 kB / 489.4 MB, free: 14.21 MB / 350.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,y_start,$whenCondition2,$whenCondition1) * 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.0001127/0.09513, allocations: 150.5 kB / 489.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.669e-05/0.09515, allocations: 7.312 kB / 489.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.67e-05/0.09517, allocations: 5 kB / 489.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.09517, allocations: 5.031 kB / 489.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.09517, allocations: 0 / 489.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.09517, allocations: 5.219 kB / 489.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.107e-05/0.09525, allocations: 168.3 kB / 489.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.09525, allocations: 5.188 kB / 489.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.665e-05/0.09527, allocations: 10 kB / 489.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.09528, allocations: 1.188 kB / 489.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.09529, allocations: 6.109 kB / 489.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.09529, allocations: 0 / 489.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.09529, allocations: 1.062 kB / 489.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001864/0.09548, allocations: 144.2 kB / 489.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.935e-05/0.09549, allocations: 90.34 kB / 490 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/0.09551, allocations: 6.453 kB / 490 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.393e-05/0.09555, allocations: 3.812 kB / 490 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.255e-05/0.09558, allocations: 6.469 kB / 490 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.09559, allocations: 2.781 kB / 490 MB, free: 13.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.033e-05/0.09562, allocations: 89.61 kB / 490.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.09562, allocations: 0 / 490.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002116/0.09583, allocations: 21.31 kB / 490.1 MB, free: 13.49 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: 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.0006173/0.09645, allocations: 0.7746 MB / 490.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001667/0.09662, allocations: 93.06 kB / 491 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.09662, allocations: 0 / 491 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.282e-05/0.09669, allocations: 72.98 kB / 491 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.09683, allocations: 7.812 kB / 491 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009125/0.09775, allocations: 1.299 MB / 492.3 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.675e-05/0.09783, allocations: 0.6831 MB / 493 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.621e-05/0.09785, allocations: 3.188 kB / 493 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.598e-05/0.09788, allocations: 12.59 kB / 493 MB, free: 10.69 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.09788, allocations: 0 / 493 MB, free: 10.69 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:790:13-790:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/../output.txt to KeyWordIO_KeyWordIO_Examples_WriteRealVariables.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01763/0.1155, allocations: 2.004 MB / 495 MB, free: 9.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.02/8.136, allocations: 12.19 kB / 495.1 MB, free: 9.555 MB / 350.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_WriteRealVariables_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_WriteRealVariables.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.658353203965817] Failed to read output from testmodel.py, exit status != 0: 8.433333953958936 8.277924066 8.181289212 Calling exit ...