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/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.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"}) [: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.002229/0.002229, allocations: 179.3 kB / 7.461 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.004605/0.004605, allocations: 0.9725 MB / 8.843 MB, free: 1.402 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.111/1.111, allocations: 221.4 MB / 230.9 MB, free: 1.746 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.0009716/0.0009717, allocations: 95.73 kB / 281.9 MB, free: 15.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1053/0.1063, allocations: 56.76 MB / 338.7 MB, free: 7.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1867/0.2931, allocations: 50.61 MB / 389.3 MB, free: 37.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0778/0.3709, allocations: 75.81 MB / 465.1 MB, free: 9.645 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001692/0.3711, allocations: 76.64 kB / 465.2 MB, free: 9.57 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.008595/0.3797, allocations: 3.35 MB / 468.5 MB, free: 6.191 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.3798, allocations: 8 kB / 468.5 MB, free: 6.184 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.077e-05/0.3798, allocations: 8 kB / 468.6 MB, free: 6.176 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.38, allocations: 175 kB / 468.7 MB, free: 5.965 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.38, allocations: 0 / 468.7 MB, free: 5.965 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.246e-06/0.38, allocations: 0 / 468.7 MB, free: 5.965 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.793e-05/0.38, allocations: 4 kB / 468.7 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.189e-05/0.3801, allocations: 33.64 kB / 468.8 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.85e-06/0.3801, allocations: 0 / 468.8 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.3801, allocations: 3.938 kB / 468.8 MB, free: 5.918 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.3801, allocations: 0 / 468.8 MB, free: 5.918 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001299/0.3803, allocations: 138.1 kB / 468.9 MB, free: 5.746 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.203e-05/0.3803, allocations: 22.61 kB / 468.9 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.633e-05/0.3803, allocations: 4.859 kB / 468.9 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.251e-06/0.3803, allocations: 0 / 468.9 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.218e-05/0.3804, allocations: 102.9 kB / 469 MB, free: 5.582 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3804, allocations: 0 / 469 MB, free: 5.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001126/0.3805, allocations: 41.55 kB / 469.1 MB, free: 5.535 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.3806, allocations: 85.14 kB / 469.1 MB, free: 5.434 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.385e-05/0.3807, allocations: 101 kB / 469.2 MB, free: 5.328 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.3807, allocations: 25.7 kB / 469.3 MB, free: 5.297 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.261e-05/0.3807, allocations: 80.14 kB / 469.3 MB, free: 5.215 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.3808, allocations: 7.938 kB / 469.4 MB, free: 5.207 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-06/0.3808, allocations: 0 / 469.4 MB, free: 5.207 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.248e-05/0.3809, allocations: 314.8 kB / 469.7 MB, free: 4.891 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.297e-05/0.3809, allocations: 4 kB / 469.7 MB, free: 4.887 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.308e-05/0.3809, allocations: 17.72 kB / 469.7 MB, free: 4.863 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.455e-05/0.3809, allocations: 7.984 kB / 469.7 MB, free: 4.855 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.3809, allocations: 0 / 469.7 MB, free: 4.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.239e-05/0.381, allocations: 41.64 kB / 469.7 MB, free: 4.809 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.381, allocations: 4 kB / 469.7 MB, free: 4.805 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.381, allocations: 0 / 469.7 MB, free: 4.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.3811, allocations: 4 kB / 469.7 MB, free: 4.801 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.437e-05/0.3811, allocations: 12.06 kB / 469.8 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.3811, allocations: 3.984 kB / 469.8 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.595e-05/0.3812, allocations: 7.906 kB / 469.8 MB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-06/0.3812, allocations: 0 / 469.8 MB, free: 4.777 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.62e-05/0.3813, allocations: 130.7 kB / 469.9 MB, free: 4.637 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.3813, allocations: 0 / 469.9 MB, free: 4.637 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.579e-05/0.3813, allocations: 11.53 kB / 469.9 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3813, allocations: 0 / 469.9 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3813, allocations: 4 kB / 469.9 MB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3814, allocations: 3.984 kB / 469.9 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.773e-05/0.3815, allocations: 134.2 kB / 470 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3815, allocations: 0 / 470 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.227e-05/0.3815, allocations: 4 kB / 470 MB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.3815, allocations: 7.938 kB / 470.1 MB, free: 4.438 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.3815, allocations: 0 / 470.1 MB, free: 4.438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-06/0.3815, allocations: 0 / 470.1 MB, free: 4.438 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3815, allocations: 0 / 470.1 MB, free: 4.438 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.385e-05/0.3816, allocations: 73.03 kB / 470.1 MB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001897/0.3818, allocations: 453.4 kB / 470.6 MB, free: 3.883 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.53e-05/0.3819, allocations: 81.02 kB / 470.6 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.3819, allocations: 4 kB / 470.7 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.917e-05/0.3819, allocations: 12.05 kB / 470.7 MB, free: 3.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.12e-05/0.382, allocations: 4 kB / 470.7 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.382, allocations: 3.938 kB / 470.7 MB, free: 3.762 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.738e-05/0.382, allocations: 84.69 kB / 470.8 MB, free: 3.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007612/0.3828, allocations: 31.97 kB / 470.8 MB, free: 3.648 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: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * 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.0003542/0.3832, allocations: 180.3 kB / 471 MB, free: 3.496 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.621e-05/0.3833, allocations: 37.7 kB / 471 MB, free: 3.453 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3833, allocations: 0 / 471 MB, free: 3.453 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.935e-05/0.3833, allocations: 33.64 kB / 471 MB, free: 3.414 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.936e-05/0.3834, allocations: 3.906 kB / 471 MB, free: 3.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001899/0.3836, allocations: 63.91 kB / 471.1 MB, free: 3.324 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003094/0.3839, allocations: 0.6918 MB / 471.8 MB, free: 2.605 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3839, allocations: 192 / 471.8 MB, free: 2.605 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_WriteRealVariable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1)