Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001583/0.001583, allocations: 179.4 kB / 8.477 MB, free: 0.5156 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.095/1.095, allocations: 205.2 MB / 214.1 MB, free: 8.516 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009078/0.000908, allocations: 85.36 kB / 262.1 MB, free: 5.121 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 0.08921/0.09015, allocations: 52.98 MB / 315.1 MB, free: 1.922 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08018/0.1703, allocations: 47.57 MB / 362.6 MB, free: 2.23 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2001/0.3705, allocations: 73.25 MB / 435.9 MB, free: 14.3 MB / 322.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001705/0.3707, allocations: 65.69 kB / 435.9 MB, free: 14.27 MB / 322.8 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.001818/0.3725, allocations: 0.8588 MB / 436.8 MB, free: 13.46 MB / 322.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.3726, allocations: 8 kB / 436.8 MB, free: 13.45 MB / 322.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.883e-05/0.3726, allocations: 8.281 kB / 436.8 MB, free: 13.45 MB / 322.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.762e-05/0.3727, allocations: 170.9 kB / 437 MB, free: 13.24 MB / 322.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.3727, allocations: 1.125 kB / 437 MB, free: 13.24 MB / 322.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.3727, allocations: 4 kB / 437 MB, free: 13.23 MB / 322.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.101e-05/0.3728, allocations: 31.98 kB / 437 MB, free: 13.2 MB / 322.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.658e-05/0.3729, allocations: 78.64 kB / 437.1 MB, free: 13.12 MB / 322.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.3729, allocations: 1.562 kB / 437.1 MB, free: 13.12 MB / 322.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.3729, allocations: 0 / 437.1 MB, free: 13.12 MB / 322.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.373, allocations: 2.125 kB / 437.1 MB, free: 13.12 MB / 322.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.131e-05/0.373, allocations: 134 kB / 437.2 MB, free: 12.96 MB / 322.8 MB Notification: Performance of preOpt comSubExp (simulation): time 6.436e-05/0.3731, allocations: 54.84 kB / 437.3 MB, free: 12.9 MB / 322.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.001e-05/0.3732, allocations: 57.41 kB / 437.3 MB, free: 12.85 MB / 322.8 MB Notification: Performance of preOpt evalFunc (simulation): time 6.773e-06/0.3732, allocations: 0 / 437.3 MB, free: 12.85 MB / 322.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.3732, allocations: 56.27 kB / 437.4 MB, free: 12.78 MB / 322.8 MB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.3732, allocations: 0.5938 kB / 437.4 MB, free: 12.78 MB / 322.8 MB Notification: Performance of matching and sorting (n=4): time 0.0001906/0.3734, allocations: 118.1 kB / 437.5 MB, free: 12.66 MB / 322.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.234e-05/0.3735, allocations: 77.11 kB / 437.6 MB, free: 12.57 MB / 322.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.33e-05/0.3735, allocations: 108.7 kB / 437.7 MB, free: 12.46 MB / 322.8 MB Notification: Performance of collectPreVariables (initialization): time 9.538e-06/0.3735, allocations: 25.7 kB / 437.7 MB, free: 12.43 MB / 322.8 MB Notification: Performance of collectInitialEqns (initialization): time 1.114e-05/0.3735, allocations: 81.27 kB / 437.8 MB, free: 12.35 MB / 322.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.177e-05/0.3736, allocations: 7.906 kB / 437.8 MB, free: 12.34 MB / 322.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.391e-06/0.3736, allocations: 0 / 437.8 MB, free: 12.34 MB / 322.8 MB Notification: Performance of setup shared object (initialization): time 4.056e-05/0.3736, allocations: 322.7 kB / 438.1 MB, free: 12.02 MB / 322.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.989e-05/0.3737, allocations: 36.72 kB / 438.2 MB, free: 11.99 MB / 322.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.599e-05/0.3737, allocations: 37.98 kB / 438.2 MB, free: 11.95 MB / 322.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.657e-05/0.3738, allocations: 41.66 kB / 438.2 MB, free: 11.92 MB / 322.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3738, allocations: 0 / 438.2 MB, free: 11.92 MB / 322.8 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001287/0.3739, allocations: 113.6 kB / 438.3 MB, free: 11.8 MB / 322.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.3739, allocations: 4 kB / 438.3 MB, free: 11.8 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.3739, allocations: 0 / 438.3 MB, free: 11.8 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.374, allocations: 0 / 438.3 MB, free: 11.8 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.114e-06/0.374, allocations: 8.422 kB / 438.4 MB, free: 11.79 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.374, allocations: 9.188 kB / 438.4 MB, free: 11.79 MB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.846e-05/0.374, allocations: 0 / 438.4 MB, free: 11.79 MB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/0.374, allocations: 7.312 kB / 438.4 MB, free: 11.78 MB / 322.8 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 5.667e-05/0.3741, allocations: 131.2 kB / 438.5 MB, free: 11.64 MB / 322.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.396e-05/0.3741, allocations: 8.688 kB / 438.5 MB, free: 11.63 MB / 322.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.541e-05/0.3741, allocations: 7.984 kB / 438.5 MB, free: 11.62 MB / 322.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3741, allocations: 8.094 kB / 438.5 MB, free: 11.62 MB / 322.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.3742, allocations: 3.391 kB / 438.5 MB, free: 11.62 MB / 322.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3742, allocations: 0 / 438.5 MB, free: 11.62 MB / 322.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.742e-05/0.3742, allocations: 133.7 kB / 438.7 MB, free: 11.45 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3742, allocations: 3.984 kB / 438.7 MB, free: 11.45 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.352e-06/0.3742, allocations: 4 kB / 438.7 MB, free: 11.45 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3742, allocations: 0 / 438.7 MB, free: 11.45 MB / 322.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.3743, allocations: 0 / 438.7 MB, free: 11.45 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3743, allocations: 4 kB / 438.7 MB, free: 11.44 MB / 322.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3743, allocations: 3.906 kB / 438.7 MB, free: 11.44 MB / 322.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001523/0.3744, allocations: 152.8 kB / 438.8 MB, free: 11.28 MB / 322.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000299/0.3747, allocations: 0.6366 MB / 439.5 MB, free: 10.64 MB / 322.8 MB Notification: Performance of postOpt removeConstants (simulation): time 1.796e-05/0.3748, allocations: 84.27 kB / 439.5 MB, free: 10.54 MB / 322.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.3748, allocations: 3.984 kB / 439.5 MB, free: 10.54 MB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.53e-05/0.3748, allocations: 4.031 kB / 439.5 MB, free: 10.54 MB / 322.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.199e-05/0.3748, allocations: 4.062 kB / 439.6 MB, free: 10.53 MB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.3749, allocations: 8 kB / 439.6 MB, free: 10.52 MB / 322.8 MB Notification: Performance of sort global known variables: time 2.378e-05/0.3749, allocations: 87.09 kB / 439.6 MB, free: 10.44 MB / 322.8 MB Notification: Performance of remove unused functions: time 0.0007862/0.3757, allocations: 15.98 kB / 439.7 MB, free: 10.43 MB / 322.8 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.000249/0.3759, allocations: 117 kB / 439.8 MB, free: 10.32 MB / 322.8 MB Notification: Performance of simCode: created initialization part: time 0.0001044/0.376, allocations: 85.3 kB / 439.9 MB, free: 10.23 MB / 322.8 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3761, allocations: 4.062 kB / 439.9 MB, free: 10.23 MB / 322.8 MB Notification: Performance of simCode: created simulation system equations: time 3.73e-05/0.3761, allocations: 64.31 kB / 439.9 MB, free: 10.16 MB / 322.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.657e-05/0.3762, allocations: 12.31 kB / 439.9 MB, free: 10.16 MB / 322.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002081/0.3764, allocations: 97.52 kB / 440 MB, free: 10.04 MB / 322.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.3766, allocations: 0.6965 MB / 440.7 MB, free: 9.324 MB / 322.8 MB Notification: Performance of SimCode: time 2.154e-06/0.3766, allocations: 1.125 kB / 440.7 MB, free: 9.324 MB / 322.8 MB (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1)