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.12.0/package.mo", uses=false) 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.WriteRealVariables,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariables",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariables,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariables",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007106/0.007106, allocations: 95.7 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00192/0.00192, allocations: 203.5 kB / 16.68 MB, free: 5.969 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.01064/0.01064, allocations: 1.008 MB / 291.6 MB, free: 1.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 65.19 kB / 402.5 MB, free: 9.172 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08849/0.09033, allocations: 49.65 MB / 452.1 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002415/0.09278, allocations: 1.37 MB / 453.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.09402, allocations: 0.8089 MB / 454.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.14e-05/0.09407, allocations: 0 / 454.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.352e-05/0.09411, allocations: 3.938 kB / 454.3 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001704/0.09429, allocations: 15.92 kB / 454.3 MB, free: 2.645 MB / 318.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.00023/0.09453, allocations: 43.83 kB / 454.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.166e-05/0.09462, allocations: 23.92 kB / 454.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.884e-05/0.09467, allocations: 7.938 kB / 454.4 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.172e-05/0.0947, allocations: 7.984 kB / 454.4 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.09481, allocations: 15.92 kB / 454.4 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.254e-05/0.09483, allocations: 8 kB / 454.4 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.09495, allocations: 35.97 kB / 454.5 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.631e-05/0.09497, allocations: 7.984 kB / 454.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.495e-05/0.09501, allocations: 23.86 kB / 454.5 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.09516, allocations: 55.39 kB / 454.6 MB, free: 2.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.09517, allocations: 3.984 kB / 454.6 MB, free: 2.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09518, allocations: 0 / 454.6 MB, free: 2.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.09519, allocations: 0 / 454.6 MB, free: 2.418 MB / 318.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.0004586/0.09565, allocations: 380.9 kB / 454.9 MB, free: 1.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.0957, allocations: 15.97 kB / 455 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.527e-05/0.09574, allocations: 38.73 kB / 455 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.872e-05/0.09578, allocations: 8.891 kB / 455 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001334/0.09592, allocations: 160.4 kB / 455.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.09593, allocations: 4.375 kB / 455.2 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.885e-06/0.09595, allocations: 384 / 455.2 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001291/0.09608, allocations: 46.25 kB / 455.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.0961, allocations: 3.938 kB / 455.2 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.09611, allocations: 3.984 kB / 455.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.09612, allocations: 0 / 455.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.478e-05/0.0962, allocations: 23.92 kB / 455.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001734/0.09638, allocations: 157.7 kB / 455.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.764e-05/0.09647, allocations: 30.56 kB / 455.4 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.292e-05/0.09653, allocations: 16.89 kB / 455.4 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.09655, allocations: 3.984 kB / 455.4 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001934/0.09675, allocations: 164.4 kB / 455.6 MB, free: 1.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 2.885e-06/0.09676, allocations: 0 / 455.6 MB, free: 1.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003087/0.09707, allocations: 127.2 kB / 455.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.535e-05/0.09717, allocations: 132.5 kB / 455.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.693e-05/0.09726, allocations: 109.8 kB / 456 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.09728, allocations: 25.7 kB / 456 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.426e-05/0.09733, allocations: 92.12 kB / 456.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.09737, allocations: 11.94 kB / 456.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.68e-05/0.09741, allocations: 21.72 kB / 456.1 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.09754, allocations: 314.8 kB / 456.4 MB, free: 292 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.579e-05/0.09759, allocations: 8 kB / 456.4 MB, free: 284 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5e-05/0.09765, allocations: 25.7 kB / 456.5 MB, free: 252 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001603/0.09782, allocations: 105 kB / 456.6 MB, free: 128 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.09783, allocations: 0 / 456.6 MB, free: 128 kB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000169/0.098, allocations: 99.31 kB / 456.7 MB, free: 16 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.15e-05/0.09807, allocations: 41.62 kB / 456.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.09808, allocations: 0 / 456.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.09809, allocations: 0 / 456.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.074e-05/0.09816, allocations: 8 kB / 456.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.09817, allocations: 0 / 456.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.52e-05/0.09822, allocations: 16.02 kB / 456.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.09824, allocations: 0 / 456.7 MB, free: 15.95 MB / 334.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.0001428/0.09838, allocations: 147.5 kB / 456.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.69e-05/0.09841, allocations: 7.938 kB / 456.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.252e-05/0.09844, allocations: 7.969 kB / 456.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.09844, allocations: 0 / 456.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.09845, allocations: 3.984 kB / 456.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.09846, allocations: 3.938 kB / 456.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001237/0.09859, allocations: 165.7 kB / 457 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.0986, allocations: 0 / 457 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.638e-05/0.09863, allocations: 4 kB / 457.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.09864, allocations: 3.938 kB / 457.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.09866, allocations: 4 kB / 457.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.09866, allocations: 256 / 457.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.09867, allocations: 0 / 457.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002355/0.09891, allocations: 162.7 kB / 457.2 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.573e-05/0.09897, allocations: 85.08 kB / 457.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.09899, allocations: 4 kB / 457.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.577e-05/0.09903, allocations: 7.938 kB / 457.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.512e-05/0.09908, allocations: 3.984 kB / 457.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.0991, allocations: 4 kB / 457.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.574e-05/0.09916, allocations: 87.27 kB / 457.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09916, allocations: 0 / 457.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002316/0.0994, allocations: 23.98 kB / 457.4 MB, free: 15.12 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: 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.0008649/0.1003, allocations: 0.7861 MB / 458.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001959/0.1005, allocations: 99.38 kB / 458.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.1005, allocations: 4 kB / 458.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.1006, allocations: 95.52 kB / 458.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001397/0.1008, allocations: 4 kB / 458.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.1021, allocations: 1.293 MB / 459.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.1024, allocations: 0.6844 MB / 460.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.733e-05/0.1024, allocations: 0 / 460.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.468e-05/0.1024, allocations: 19.42 kB / 460.4 MB, free: 12 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1024, allocations: 4 kB / 460.4 MB, free: 12 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_WriteRealVariables.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02409/0.1265, allocations: 1.947 MB / 462.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.491/7.617, allocations: 3.938 kB / 462.4 MB, free: 10.12 MB / 334.1 MB (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 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_WriteRealVariables.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1)