Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",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.0009393/0.0009393, allocations: 180.5 kB / 8.133 MB, free: 2.215 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.085/1.085, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0008581/0.0008582, allocations: 95.11 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08873/0.08961, allocations: 55.81 MB / 336.6 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1927/0.2823, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07632/0.3587, allocations: 74.14 MB / 461.1 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001794/0.3589, allocations: 63.91 kB / 461.2 MB, free: 12.61 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.001911/0.3609, allocations: 0.87 MB / 462.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.3609, allocations: 8 kB / 462.1 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.472e-05/0.3609, allocations: 9.531 kB / 462.1 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.4e-05/0.361, allocations: 163.8 kB / 462.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.3611, allocations: 5.5 kB / 462.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.3611, allocations: 0 / 462.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.439e-05/0.3612, allocations: 36.66 kB / 462.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.349e-05/0.3613, allocations: 75.03 kB / 462.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.3613, allocations: 0 / 462.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.3613, allocations: 3.938 kB / 462.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.3613, allocations: 0 / 462.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001156/0.3614, allocations: 139.6 kB / 462.5 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.144e-05/0.3615, allocations: 58.55 kB / 462.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.892e-05/0.3616, allocations: 42.14 kB / 462.6 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.563e-06/0.3616, allocations: 0 / 462.6 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.68e-05/0.3616, allocations: 68.16 kB / 462.7 MB, free: 11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.3616, allocations: 0 / 462.7 MB, free: 11 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002009/0.3618, allocations: 109.6 kB / 462.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.3619, allocations: 77.11 kB / 462.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.36e-05/0.362, allocations: 109.9 kB / 462.9 MB, free: 10.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.362, allocations: 29.73 kB / 463 MB, free: 10.64 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.156e-05/0.362, allocations: 84.14 kB / 463.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.362, allocations: 7.906 kB / 463.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-06/0.3621, allocations: 0 / 463.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.65e-05/0.3622, allocations: 322.7 kB / 463.4 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.699e-05/0.3622, allocations: 34.97 kB / 463.4 MB, free: 10.19 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.142e-05/0.3623, allocations: 37.94 kB / 463.5 MB, free: 10.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.127e-05/0.3623, allocations: 39.97 kB / 463.5 MB, free: 10.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3623, allocations: 0 / 463.5 MB, free: 10.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001524/0.3625, allocations: 121.7 kB / 463.6 MB, free: 9.992 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.3625, allocations: 4 kB / 463.6 MB, free: 9.988 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.3625, allocations: 4 kB / 463.6 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.3625, allocations: 0 / 463.6 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.463e-06/0.3625, allocations: 0 / 463.6 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.3625, allocations: 0 / 463.6 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.902e-05/0.3626, allocations: 7.844 kB / 463.6 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.833e-05/0.3626, allocations: 9.438 kB / 463.6 MB, free: 9.969 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (success1,success2,success3,success4) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 9.273e-05/0.3627, allocations: 134.7 kB / 463.8 MB, free: 9.824 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.414e-05/0.3627, allocations: 4.031 kB / 463.8 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.03e-05/0.3627, allocations: 15.84 kB / 463.8 MB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.3628, allocations: 0 / 463.8 MB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.3628, allocations: 0 / 463.8 MB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.3628, allocations: 0 / 463.8 MB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.954e-05/0.3629, allocations: 142.2 kB / 463.9 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3629, allocations: 0 / 463.9 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.3629, allocations: 0 / 463.9 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3629, allocations: 0 / 463.9 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.3629, allocations: 10.95 kB / 463.9 MB, free: 9.617 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3629, allocations: 0 / 463.9 MB, free: 9.617 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3629, allocations: 4 kB / 463.9 MB, free: 9.613 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001817/0.3631, allocations: 149 kB / 464.1 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004417/0.3636, allocations: 0.6418 MB / 464.7 MB, free: 8.785 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.068e-05/0.3636, allocations: 81.02 kB / 464.8 MB, free: 8.688 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.3636, allocations: 4.031 kB / 464.8 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.415e-05/0.3637, allocations: 4.062 kB / 464.8 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.434e-05/0.3637, allocations: 0 / 464.8 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.3637, allocations: 8.844 kB / 464.8 MB, free: 8.672 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.351e-05/0.3638, allocations: 91.27 kB / 464.9 MB, free: 8.582 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007695/0.3645, allocations: 8 kB / 464.9 MB, free: 8.574 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 (success1,success2,success3,success4) * Number of discrete states: 4 (success4,success3,success2,success1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0002985/0.3648, allocations: 127 kB / 465 MB, free: 8.453 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001283/0.365, allocations: 81.69 kB / 465.1 MB, free: 8.367 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.365, allocations: 0 / 465.1 MB, free: 8.367 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.682e-05/0.365, allocations: 69.69 kB / 465.2 MB, free: 8.293 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000106/0.3652, allocations: 6.828 kB / 465.2 MB, free: 8.289 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002313/0.3654, allocations: 107.7 kB / 465.3 MB, free: 8.16 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002894/0.3657, allocations: 0.6993 MB / 466 MB, free: 7.438 MB / 346.7 MB Notification: Performance of SimCode: time 3.61e-07/0.3657, allocations: 3.938 kB / 466 MB, free: 7.434 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1)