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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004071/0.004071, allocations: 177.8 kB / 7.455 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.01054/0.01054, allocations: 0.9728 MB / 8.839 MB, free: 1.398 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.148/1.148, allocations: 221.4 MB / 230.9 MB, free: 1.738 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009305/0.0009308, allocations: 93.22 kB / 281.9 MB, free: 15.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08947/0.09044, allocations: 56.75 MB / 338.7 MB, free: 7.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.2691, allocations: 50.62 MB / 389.3 MB, free: 37.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07582/0.345, allocations: 75.86 MB / 465.2 MB, free: 9.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001762/0.3452, allocations: 68.72 kB / 465.2 MB, free: 9.496 MB / 346.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.008961/0.3542, allocations: 3.44 MB / 468.7 MB, free: 6.039 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.3542, allocations: 9.125 kB / 468.7 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.977e-05/0.3543, allocations: 3.906 kB / 468.7 MB, free: 6.027 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.3544, allocations: 171 kB / 468.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.3544, allocations: 5.312 kB / 468.8 MB, free: 5.816 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-06/0.3544, allocations: 0 / 468.8 MB, free: 5.816 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.359e-05/0.3545, allocations: 8 kB / 468.9 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.652e-05/0.3546, allocations: 42.72 kB / 468.9 MB, free: 5.762 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.231e-06/0.3546, allocations: 0 / 468.9 MB, free: 5.762 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.3546, allocations: 7.891 kB / 468.9 MB, free: 5.754 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.3546, allocations: 4 kB / 468.9 MB, free: 5.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001283/0.3547, allocations: 134.2 kB / 469 MB, free: 5.582 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.619e-05/0.3548, allocations: 30.52 kB / 469.1 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.646e-05/0.3548, allocations: 12.89 kB / 469.1 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-06/0.3548, allocations: 4.031 kB / 469.1 MB, free: 5.523 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.648e-05/0.3549, allocations: 136.5 kB / 469.2 MB, free: 5.359 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.355, allocations: 4 kB / 469.2 MB, free: 5.355 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001589/0.3551, allocations: 53.61 kB / 469.3 MB, free: 5.297 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.3552, allocations: 136.5 kB / 469.4 MB, free: 5.133 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.159e-05/0.3553, allocations: 104 kB / 469.5 MB, free: 5.027 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.092e-05/0.3553, allocations: 25.7 kB / 469.5 MB, free: 4.996 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.174e-05/0.3553, allocations: 80.14 kB / 469.6 MB, free: 4.914 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.267e-05/0.3553, allocations: 15.8 kB / 469.6 MB, free: 4.898 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-06/0.3553, allocations: 0 / 469.6 MB, free: 4.898 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.404e-05/0.3554, allocations: 322.8 kB / 469.9 MB, free: 4.574 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.807e-05/0.3554, allocations: 4 kB / 469.9 MB, free: 4.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.137e-05/0.3555, allocations: 17.72 kB / 470 MB, free: 4.547 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.672e-05/0.3555, allocations: 11.98 kB / 470 MB, free: 4.535 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3555, allocations: 0 / 470 MB, free: 4.535 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 8.366e-05/0.3556, allocations: 57.59 kB / 470 MB, free: 4.473 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/0.3556, allocations: 4 kB / 470 MB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.3556, allocations: 3.938 kB / 470 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.478e-06/0.3556, allocations: 8.062 kB / 470.1 MB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.902e-05/0.3557, allocations: 7.938 kB / 470.1 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.427e-06/0.3557, allocations: 0 / 470.1 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.154e-05/0.3558, allocations: 4 kB / 470.1 MB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.3558, allocations: 7.984 kB / 470.1 MB, free: 4.438 MB / 346.7 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = false ) "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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.3559, allocations: 138.6 kB / 470.2 MB, free: 4.289 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.361e-05/0.3559, allocations: 8 kB / 470.2 MB, free: 4.281 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.891e-05/0.356, allocations: 8.062 kB / 470.2 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.356, allocations: 0 / 470.2 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.356, allocations: 4 kB / 470.2 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.356, allocations: 3.906 kB / 470.2 MB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.952e-05/0.3561, allocations: 138.2 kB / 470.4 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.3561, allocations: 0 / 470.4 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.176e-05/0.3561, allocations: 7.984 kB / 470.4 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3561, allocations: 4 kB / 470.4 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.3561, allocations: 4 kB / 470.4 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3561, allocations: 0 / 470.4 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3561, allocations: 4.062 kB / 470.4 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001221/0.3563, allocations: 92.97 kB / 470.5 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001989/0.3565, allocations: 473.4 kB / 470.9 MB, free: 3.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.252e-05/0.3565, allocations: 93.02 kB / 471 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/0.3565, allocations: 4 kB / 471 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.405e-05/0.3566, allocations: 4 kB / 471 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.646e-05/0.3566, allocations: 7.984 kB / 471 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.3567, allocations: 3.938 kB / 471 MB, free: 3.352 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.699e-05/0.3567, allocations: 87.28 kB / 471.1 MB, free: 3.266 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007809/0.3575, allocations: 27.98 kB / 471.2 MB, free: 3.238 MB / 346.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003533/0.3578, allocations: 198.7 kB / 471.4 MB, free: 3.066 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.358, allocations: 53.7 kB / 471.4 MB, free: 3.008 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.358, allocations: 3.938 kB / 471.4 MB, free: 3.004 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.535e-05/0.358, allocations: 61.69 kB / 471.5 MB, free: 2.938 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.053e-05/0.3581, allocations: 3.906 kB / 471.5 MB, free: 2.934 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001882/0.3583, allocations: 75.72 kB / 471.5 MB, free: 2.836 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000198/0.3585, allocations: 0.696 MB / 472.2 MB, free: 2.113 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3585, allocations: 0 / 472.2 MB, free: 2.113 MB / 346.7 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/linux/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)