Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001081/0.001081, allocations: 203 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008333/0.0008333, allocations: 94.5 kB / 286.3 MB, free: 5.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09555/0.09641, allocations: 56.89 MB / 343.2 MB, free: 8.691 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08729/0.1837, allocations: 51.47 MB / 394.7 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2371/0.4209, allocations: 74.94 MB / 469.6 MB, free: 15.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/0.4211, allocations: 64.98 kB / 469.7 MB, free: 15.76 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.001894/0.4231, allocations: 0.8676 MB / 470.6 MB, free: 15.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.4231, allocations: 8 kB / 470.6 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.431e-05/0.4232, allocations: 8.875 kB / 470.6 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.652e-05/0.4233, allocations: 169.8 kB / 470.7 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.4233, allocations: 4 kB / 470.8 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.4233, allocations: 2.062 kB / 470.8 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.586e-05/0.4234, allocations: 34.7 kB / 470.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001017/0.4235, allocations: 74.34 kB / 470.9 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.4235, allocations: 0 / 470.9 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.4236, allocations: 0 / 470.9 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.4236, allocations: 0.6562 kB / 470.9 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001169/0.4237, allocations: 140.8 kB / 471 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.571e-05/0.4238, allocations: 59.38 kB / 471.1 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.674e-05/0.4238, allocations: 50.09 kB / 471.1 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.346e-06/0.4239, allocations: 0 / 471.1 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.4239, allocations: 56.27 kB / 471.2 MB, free: 14.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.193e-06/0.4239, allocations: 4 kB / 471.2 MB, free: 14.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002193/0.4241, allocations: 109.9 kB / 471.3 MB, free: 14.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.4242, allocations: 84.61 kB / 471.4 MB, free: 14.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.879e-05/0.4242, allocations: 107.2 kB / 471.5 MB, free: 14.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.4243, allocations: 30.39 kB / 471.5 MB, free: 14.13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.533e-05/0.4243, allocations: 87.39 kB / 471.6 MB, free: 14.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.4243, allocations: 3.906 kB / 471.6 MB, free: 14.04 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-06/0.4243, allocations: 0 / 471.6 MB, free: 14.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.989e-05/0.4244, allocations: 322.3 kB / 471.9 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.475e-05/0.4244, allocations: 33.7 kB / 471.9 MB, free: 13.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.067e-05/0.4245, allocations: 38.56 kB / 472 MB, free: 13.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.296e-05/0.4245, allocations: 38.5 kB / 472 MB, free: 13.63 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4245, allocations: 3.188 kB / 472 MB, free: 13.63 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000154/0.4247, allocations: 116.7 kB / 472.1 MB, free: 13.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.4247, allocations: 4 kB / 472.1 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.4247, allocations: 0 / 472.1 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.4247, allocations: 4 kB / 472.1 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.374e-06/0.4248, allocations: 0 / 472.1 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.4248, allocations: 7.188 kB / 472.1 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.958e-05/0.4248, allocations: 0 / 472.1 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.4248, allocations: 4.062 kB / 472.1 MB, free: 13.52 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 8.523e-05/0.4249, allocations: 142 kB / 472.3 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.524e-05/0.4249, allocations: 7.906 kB / 472.3 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.365e-05/0.425, allocations: 8 kB / 472.3 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.425, allocations: 0 / 472.3 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.425, allocations: 3.938 kB / 472.3 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.425, allocations: 0 / 472.3 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.734e-05/0.4251, allocations: 139.3 kB / 472.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.4251, allocations: 4 kB / 472.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/0.4251, allocations: 0 / 472.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.4251, allocations: 4 kB / 472.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.4251, allocations: 4 kB / 472.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.4251, allocations: 0 / 472.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.4251, allocations: 3.906 kB / 472.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001659/0.4253, allocations: 144 kB / 472.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003478/0.4257, allocations: 0.6426 MB / 473.2 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.791e-05/0.4257, allocations: 84.39 kB / 473.3 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.4257, allocations: 4.031 kB / 473.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.54e-05/0.4257, allocations: 0 / 473.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.25e-05/0.4258, allocations: 0 / 473.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.4258, allocations: 8 kB / 473.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.444e-05/0.4258, allocations: 90.41 kB / 473.4 MB, free: 12.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008117/0.4266, allocations: 11.98 kB / 473.4 MB, free: 12.24 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.0002365/0.4269, allocations: 127.2 kB / 473.5 MB, free: 12.13 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001001/0.427, allocations: 83.77 kB / 473.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.427, allocations: 0 / 473.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.773e-05/0.427, allocations: 64.02 kB / 473.7 MB, free: 11.99 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.939e-05/0.4271, allocations: 11.34 kB / 473.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001903/0.4273, allocations: 108.3 kB / 473.8 MB, free: 11.87 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.4275, allocations: 0.6943 MB / 474.5 MB, free: 11.16 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4275, allocations: 0 / 474.5 MB, free: 11.16 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1)