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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 106.2 kB / 16.4 MB, free: 6.488 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 192.6 kB / 19.36 MB, free: 3.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.69/1.69, allocations: 222.9 MB / 245.1 MB, free: 15.01 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.008098/0.008098, allocations: 1.021 MB / 298.2 MB, free: 11.62 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.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.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 67.89 kB / 411.2 MB, free: 31.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1203, allocations: 49.65 MB / 460.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.003306/0.1236, allocations: 1.344 MB / 462.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001749/0.1254, allocations: 0.8053 MB / 463 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.392e-05/0.1255, allocations: 4 kB / 463 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.227e-05/0.1255, allocations: 3.938 kB / 463 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003815/0.1259, allocations: 11.92 kB / 463 MB, free: 11.15 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.0001954/0.1261, allocations: 35.89 kB / 463.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.861e-05/0.1262, allocations: 23.94 kB / 463.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.494e-05/0.1262, allocations: 7.984 kB / 463.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.297e-05/0.1263, allocations: 11.92 kB / 463.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.1265, allocations: 8 kB / 463.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.42e-05/0.1265, allocations: 11.94 kB / 463.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.1266, allocations: 35.95 kB / 463.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.879e-05/0.1266, allocations: 4 kB / 463.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.509e-05/0.1267, allocations: 7.938 kB / 463.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001648/0.1268, allocations: 52.03 kB / 463.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1269, allocations: 0 / 463.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1269, allocations: 4 kB / 463.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1269, allocations: 0 / 463.2 MB, free: 10.95 MB / 334.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.0006781/0.1276, allocations: 369 kB / 463.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1276, allocations: 12.03 kB / 463.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.88e-05/0.1277, allocations: 34.75 kB / 463.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.211e-05/0.1277, allocations: 4.938 kB / 463.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.1279, allocations: 176.3 kB / 463.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.1279, allocations: 384 / 463.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.671e-06/0.1279, allocations: 384 / 463.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.128, allocations: 34.27 kB / 463.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.1281, allocations: 7.922 kB / 463.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.1281, allocations: 0 / 463.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1281, allocations: 0 / 463.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.559e-05/0.1282, allocations: 15.94 kB / 463.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001987/0.1284, allocations: 157.7 kB / 464 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.683e-05/0.1284, allocations: 22.58 kB / 464 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.304e-05/0.1285, allocations: 12.91 kB / 464.1 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.1285, allocations: 0 / 464.1 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002144/0.1287, allocations: 114.8 kB / 464.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.1287, allocations: 0 / 464.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003275/0.1291, allocations: 87.28 kB / 464.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.1292, allocations: 81.09 kB / 464.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.1293, allocations: 109.8 kB / 464.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.1294, allocations: 37.56 kB / 464.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.114e-05/0.1294, allocations: 88.27 kB / 464.6 MB, free: 9.371 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.414e-05/0.1294, allocations: 3.938 kB / 464.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.307e-05/0.1295, allocations: 13.72 kB / 464.6 MB, free: 9.348 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1296, allocations: 310.8 kB / 464.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.353e-05/0.1297, allocations: 11.98 kB / 464.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.628e-05/0.1297, allocations: 17.72 kB / 464.9 MB, free: 9 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000112/0.1298, allocations: 89.11 kB / 465 MB, free: 8.895 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1299, allocations: 0 / 465 MB, free: 8.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001444/0.13, allocations: 83.27 kB / 465.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/0.1301, allocations: 37.64 kB / 465.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.1301, allocations: 0 / 465.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.1301, allocations: 4 kB / 465.1 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.621e-05/0.1302, allocations: 0 / 465.1 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.1302, allocations: 8.375 kB / 465.1 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.519e-05/0.1302, allocations: 3.984 kB / 465.1 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.1302, allocations: 4 kB / 465.1 MB, free: 8.738 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001221/0.1304, allocations: 139.5 kB / 465.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.322e-05/0.1304, allocations: 3.938 kB / 465.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.151e-05/0.1304, allocations: 3.531 kB / 465.3 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1304, allocations: 4 kB / 465.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1304, allocations: 0 / 465.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1304, allocations: 0 / 465.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.1306, allocations: 165.7 kB / 465.4 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1306, allocations: 0 / 465.4 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.52e-05/0.1306, allocations: 7.984 kB / 465.5 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.205e-05/0.1307, allocations: 3.938 kB / 465.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.1307, allocations: 0 / 465.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.1307, allocations: 0 / 465.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.15e-05/0.1307, allocations: 7.984 kB / 465.5 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002604/0.131, allocations: 114.7 kB / 465.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.045e-05/0.1311, allocations: 85.05 kB / 465.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.1311, allocations: 0 / 465.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.599e-05/0.1311, allocations: 7.984 kB / 465.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.145e-05/0.1312, allocations: 0 / 465.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.1312, allocations: 0 / 465.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.237e-05/0.1312, allocations: 91.22 kB / 465.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1312, allocations: 0 / 465.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002239/0.1315, allocations: 19.98 kB / 465.8 MB, free: 7.984 MB / 334.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 (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.001067/0.1325, allocations: 0.7321 MB / 466.5 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000254/0.1328, allocations: 79.39 kB / 466.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1329, allocations: 128 / 466.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.087e-05/0.133, allocations: 67.41 kB / 466.7 MB, free: 7.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001787/0.1331, allocations: 7.984 kB / 466.7 MB, free: 7.082 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.1347, allocations: 1.203 MB / 467.9 MB, free: 5.785 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.135, allocations: 0.6805 MB / 468.5 MB, free: 5.078 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.972e-05/0.1351, allocations: 4 kB / 468.5 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.736e-05/0.1351, allocations: 11.44 kB / 468.6 MB, free: 5.062 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1351, allocations: 0 / 468.6 MB, free: 5.062 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:787:13-787: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_WriteRealVariable.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03319/0.1683, allocations: 1.736 MB / 470.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.022/9.191, allocations: 13.03 kB / 470.3 MB, free: 3.402 MB / 334.1 MB " [Timeout remaining time 651] (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariable.sim & python3 -m fmpy simulate --output-file KeyWordIO_KeyWordIO.Examples.WriteRealVariable_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.307408859021962] Failed to read output from testmodel.py, exit status != 0: 9.263454857980832 9.28106376 9.150968256 Calling exit ...