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.001509/0.001509, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001388/0.001388, allocations: 218 kB / 23.04 MB, free: 5.078 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.345/1.345, allocations: 230.6 MB / 256.8 MB, free: 8.008 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.006879/0.006879, allocations: 1.024 MB / 314.2 MB, free: 2.098 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.001892/0.001892, allocations: 71.89 kB / 436.5 MB, free: 16.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09232/0.09421, allocations: 53.58 MB / 490.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002521/0.09673, allocations: 1.383 MB / 491.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.09808, allocations: 0.9036 MB / 492.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.006e-05/0.09811, allocations: 4 kB / 492.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.109e-05/0.09813, allocations: 4 kB / 492.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001627/0.09829, allocations: 7.875 kB / 492.4 MB, free: 8.66 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.0002358/0.09853, allocations: 51.88 kB / 492.5 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.701e-05/0.09861, allocations: 19.92 kB / 492.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.706e-05/0.09864, allocations: 7.984 kB / 492.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.07e-05/0.09867, allocations: 11.94 kB / 492.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001/0.09877, allocations: 11.92 kB / 492.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.215e-05/0.09879, allocations: 4 kB / 492.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.09889, allocations: 47.95 kB / 492.6 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.304e-05/0.09891, allocations: 3.938 kB / 492.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.568e-05/0.09894, allocations: 19.88 kB / 492.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001521/0.09909, allocations: 64.08 kB / 492.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.0991, allocations: 0 / 492.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.0991, allocations: 0 / 492.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.0991, allocations: 0 / 492.6 MB, free: 8.422 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.0004229/0.09953, allocations: 307.8 kB / 492.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.09956, allocations: 8.031 kB / 492.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.692e-05/0.09958, allocations: 4.188 kB / 493 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.863e-05/0.09961, allocations: 34.73 kB / 493 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.616e-05/0.09963, allocations: 8.938 kB / 493 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.09975, allocations: 118.5 kB / 493.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.877e-06/0.09976, allocations: 4.375 kB / 493.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.385e-06/0.09977, allocations: 384 / 493.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001305/0.0999, allocations: 57.92 kB / 493.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.09991, allocations: 0 / 493.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.09991, allocations: 0 / 493.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.09992, allocations: 0 / 493.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.441e-05/0.09999, allocations: 19.98 kB / 493.2 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001604/0.1002, allocations: 128.8 kB / 493.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.446e-05/0.1002, allocations: 26.61 kB / 493.3 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.517e-05/0.1003, allocations: 20.92 kB / 493.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.06e-06/0.1003, allocations: 0 / 493.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002267/0.1005, allocations: 144.4 kB / 493.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.1005, allocations: 4 kB / 493.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003078/0.1008, allocations: 123.4 kB / 493.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.913e-05/0.1009, allocations: 132.5 kB / 493.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.841e-05/0.101, allocations: 125.7 kB / 493.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.101, allocations: 25.7 kB / 493.9 MB, free: 6.934 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.864e-05/0.1011, allocations: 80.14 kB / 494 MB, free: 6.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.675e-05/0.1011, allocations: 11.95 kB / 494 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-05/0.1011, allocations: 21.69 kB / 494 MB, free: 6.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1013, allocations: 318.8 kB / 494.3 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.254e-05/0.1013, allocations: 8 kB / 494.3 MB, free: 6.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.159e-05/0.1014, allocations: 25.7 kB / 494.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.1015, allocations: 101.1 kB / 494.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1015, allocations: 4 kB / 494.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001786/0.1017, allocations: 111.2 kB / 494.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/0.1017, allocations: 33.69 kB / 494.6 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.1017, allocations: 4 kB / 494.6 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.1017, allocations: 0 / 494.6 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.932e-05/0.1018, allocations: 4 kB / 494.6 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.1018, allocations: 0 / 494.6 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.234e-05/0.1018, allocations: 11.92 kB / 494.6 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.1019, allocations: 4 kB / 494.6 MB, free: 6.148 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.0001527/0.102, allocations: 147.5 kB / 494.8 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.755e-05/0.102, allocations: 7.938 kB / 494.8 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.849e-05/0.102, allocations: 8.047 kB / 494.8 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.102, allocations: 4 kB / 494.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.102, allocations: 256 / 494.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.1021, allocations: 0 / 494.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.1022, allocations: 144.7 kB / 494.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1022, allocations: 0 / 494.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.858e-05/0.1022, allocations: 11.98 kB / 494.9 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.1022, allocations: 3.984 kB / 495 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.425e-06/0.1022, allocations: 0 / 495 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.1022, allocations: 0 / 495 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1022, allocations: 4 kB / 495 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002284/0.1025, allocations: 142.8 kB / 495.1 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.428e-05/0.1025, allocations: 11.89 kB / 495.1 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.1025, allocations: 0 / 495.1 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.725e-05/0.1025, allocations: 12.02 kB / 495.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.104e-05/0.1026, allocations: 4 kB / 495.1 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.1026, allocations: 7.938 kB / 495.1 MB, free: 5.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.882e-05/0.1026, allocations: 91.2 kB / 495.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1026, allocations: 0 / 495.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002161/0.1028, allocations: 23.94 kB / 495.2 MB, free: 5.449 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.0008245/0.1037, allocations: 0.7711 MB / 496 MB, free: 4.676 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001962/0.1038, allocations: 95.31 kB / 496.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1039, allocations: 0 / 496.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.582e-05/0.1039, allocations: 75.39 kB / 496.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001483/0.1041, allocations: 4 kB / 496.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.1054, allocations: 1.309 MB / 497.5 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.1057, allocations: 0.6768 MB / 498.2 MB, free: 2.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.912e-05/0.1057, allocations: 4 kB / 498.2 MB, free: 2.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.347e-05/0.1058, allocations: 15.42 kB / 498.2 MB, free: 2.355 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1058, allocations: 0 / 498.2 MB, free: 2.355 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:791:13-791:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/../output.txt to 652.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02182/0.1276, allocations: 2.135 MB / 0.4886 GB, free: 380 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.02, allocations: 7.938 kB / 0.4886 GB, free: 372 kB / 350.1 MB " [Timeout remaining time 649] (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: 13.39912328205537] Failed to read output from testmodel.py, exit status != 0: 11.179313938017003 11.19366054 11.091828171 Calling exit ...