Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",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.001055/0.001055, allocations: 199.7 kB / 8.538 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.168/1.168, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008839/0.0008839, allocations: 90.33 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1725/0.1725, allocations: 45.14 MB / 383.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1884/0.3609, allocations: 69.37 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08332/0.4442, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2566/0.7009, allocations: 87.88 MB / 0.5897 GB, free: 15.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.7011, allocations: 64.56 kB / 0.5897 GB, free: 14.98 MB / 394.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 4.34/5.041, allocations: 1.735 GB / 2.325 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/5.041, allocations: 11.97 kB / 2.325 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.949e-05/5.041, allocations: 8 kB / 2.325 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.863e-05/5.041, allocations: 159.1 kB / 2.325 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/5.041, allocations: 0 / 2.325 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.041e-06/5.041, allocations: 0 / 2.325 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.667e-05/5.041, allocations: 3.984 kB / 2.325 GB, free: 127 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.285e-05/5.041, allocations: 29.7 kB / 2.325 GB, free: 127 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/5.041, allocations: 3.906 kB / 2.325 GB, free: 127 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-06/5.041, allocations: 0 / 2.325 GB, free: 127 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/5.041, allocations: 0 / 2.325 GB, free: 127 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.499e-05/5.042, allocations: 130.1 kB / 2.325 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 2.639e-05/5.042, allocations: 18.61 kB / 2.325 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.335e-05/5.042, allocations: 4.859 kB / 2.325 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 8.646e-06/5.042, allocations: 5.969 kB / 2.325 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/5.042, allocations: 60.25 kB / 2.326 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/5.042, allocations: 0 / 2.326 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1): time 0.0001213/5.042, allocations: 37.69 kB / 2.326 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.025e-05/5.042, allocations: 77.11 kB / 2.326 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.556e-05/5.042, allocations: 89 kB / 2.326 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.74e-06/5.042, allocations: 25.7 kB / 2.326 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 1.078e-05/5.042, allocations: 84.08 kB / 2.326 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.626e-05/5.042, allocations: 3.906 kB / 2.326 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.683e-06/5.042, allocations: 0 / 2.326 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 3.83e-05/5.042, allocations: 310.8 kB / 2.326 GB, free: 126.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.282e-06/5.042, allocations: 4 kB / 2.326 GB, free: 126.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.749e-06/5.042, allocations: 7.906 kB / 2.326 GB, free: 126.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.052e-05/5.042, allocations: 0 / 2.326 GB, free: 126.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/5.042, allocations: 0 / 2.326 GB, free: 126.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1) (initialization): time 3.64e-05/5.042, allocations: 33.69 kB / 2.326 GB, free: 126 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.267e-06/5.042, allocations: 4 kB / 2.326 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/5.042, allocations: 0 / 2.326 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/5.042, allocations: 7.719 kB / 2.326 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/5.042, allocations: 0.8438 kB / 2.326 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/5.042, allocations: 3.906 kB / 2.326 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.191e-05/5.042, allocations: 3.906 kB / 2.326 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-06/5.042, allocations: 0 / 2.326 GB, free: 126 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * 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 4.31e-05/5.042, allocations: 130.7 kB / 2.326 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.352e-06/5.042, allocations: 0 / 2.326 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.747e-06/5.042, allocations: 6.953 kB / 2.326 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/5.042, allocations: 3.984 kB / 2.326 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/5.042, allocations: 0 / 2.326 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/5.042, allocations: 4.781 kB / 2.326 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.773e-05/5.042, allocations: 130 kB / 2.326 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/5.042, allocations: 4 kB / 2.326 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-07/5.042, allocations: 0 / 2.326 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/5.042, allocations: 0 / 2.326 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.19e-06/5.042, allocations: 0 / 2.326 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.01e-07/5.042, allocations: 0 / 2.326 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/5.042, allocations: 0 / 2.326 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 4.679e-05/5.042, allocations: 65.03 kB / 2.327 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001063/5.042, allocations: 461.4 kB / 2.327 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 1.155e-05/5.042, allocations: 77.11 kB / 2.327 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.265e-05/5.042, allocations: 4 kB / 2.327 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.258e-06/5.043, allocations: 3.906 kB / 2.327 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.323e-05/5.043, allocations: 0 / 2.327 GB, free: 125 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-06/5.043, allocations: 7.969 kB / 2.327 GB, free: 125 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.108e-05/5.043, allocations: 75.28 kB / 2.327 GB, free: 125 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0008496/5.043, allocations: 4 kB / 2.327 GB, free: 125 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * 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 6.412e-05/5.043, allocations: 91.25 kB / 2.327 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 4.798e-05/5.044, allocations: 29.69 kB / 2.327 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/5.044, allocations: 4 kB / 2.327 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 1.019e-05/5.044, allocations: 25.7 kB / 2.327 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.353e-05/5.044, allocations: 7.938 kB / 2.327 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001114/5.044, allocations: 50.75 kB / 2.327 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/5.044, allocations: 0.6841 MB / 2.328 GB, free: 140 MB / 0.5417 GB Notification: Performance of SimCode: time 2.8e-07/5.044, allocations: 0 / 2.328 GB, free: 140 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat does not exist to compare? outputFormat=mat