Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.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.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Visualizers_Torus",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.001234/0.001234, allocations: 199.3 kB / 8.535 MB, free: 1.688 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009307/0.0009307, allocations: 91.64 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1757/0.1757, allocations: 45.13 MB / 383.3 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1904/0.3662, allocations: 69.37 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08072/0.4469, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2562/0.7032, allocations: 98.14 MB / 0.5997 GB, free: 4.844 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001823/0.7034, allocations: 78.52 kB / 0.5998 GB, free: 4.805 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: 1443 * Number of variables: 1443 Notification: Performance of Generate backend data structure: time 0.1744/0.8778, allocations: 70.68 MB / 0.6688 GB, free: 6.383 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.8778, allocations: 12 kB / 0.6688 GB, free: 6.371 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01343/0.8913, allocations: 2.647 MB / 0.6714 GB, free: 3.715 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005296/0.8966, allocations: 2.086 MB / 0.6734 GB, free: 1.578 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.8968, allocations: 120 kB / 0.6735 GB, free: 1.461 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00131/0.8981, allocations: 204 kB / 0.6737 GB, free: 1.262 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01094/0.9091, allocations: 6.512 MB / 0.6801 GB, free: 10.75 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01465/0.9238, allocations: 8.573 MB / 0.6885 GB, free: 1.809 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.597e-05/0.9239, allocations: 19.81 kB / 0.6885 GB, free: 1.789 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000463/0.9243, allocations: 12 kB / 0.6885 GB, free: 1.777 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001136/0.9255, allocations: 1.12 MB / 0.6896 GB, free: 0.6523 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03508/0.9606, allocations: 26.72 MB / 0.7157 GB, free: 5.293 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002957/0.9636, allocations: 2.671 MB / 0.7183 GB, free: 2.398 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/0.9647, allocations: 0.8984 MB / 0.7192 GB, free: 1.496 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001248/0.966, allocations: 1.626 MB / 0.7208 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.966, allocations: 47.59 kB / 0.7208 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 3.657e-06/0.966, allocations: 0 / 0.7208 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162): time 0.004489/0.9705, allocations: 2.235 MB / 0.723 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.9706, allocations: 66.81 kB / 0.723 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002903/0.9735, allocations: 2.094 MB / 0.7251 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.659e-05/0.9736, allocations: 25.7 kB / 0.7251 GB, free: 11.06 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00143/0.975, allocations: 2.555 MB / 0.7276 GB, free: 8.465 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004853/0.9755, allocations: 0.6014 MB / 0.7282 GB, free: 7.855 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.9757, allocations: 0 / 0.7282 GB, free: 7.855 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003518/0.976, allocations: 0.5564 MB / 0.7287 GB, free: 7.289 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001955/0.978, allocations: 1.396 MB / 0.7301 GB, free: 5.887 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003616/0.9816, allocations: 4.369 MB / 0.7344 GB, free: 16.01 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003329/0.9849, allocations: 2.561 MB / 0.7369 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.435e-05/0.985, allocations: 28 kB / 0.7369 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of matching and sorting (n=642) (initialization): time 0.007672/0.9927, allocations: 5.084 MB / 0.7419 GB, free: 8.324 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.9927, allocations: 11.91 kB / 0.7419 GB, free: 8.312 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.782e-05/0.9928, allocations: 104 kB / 0.742 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001399/0.993, allocations: 156 kB / 0.7421 GB, free: 8.059 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003225/0.9962, allocations: 1.069 MB / 0.7432 GB, free: 6.988 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001348/0.9963, allocations: 207.2 kB / 0.7434 GB, free: 6.785 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002831/0.9992, allocations: 0.5286 MB / 0.7439 GB, free: 6.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000397/0.9996, allocations: 304 kB / 0.7442 GB, free: 5.953 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 488 * Number of states: 0 () * Number of discrete variables: 21 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (594): * Single equations (assignments): 588 * Array equations: 6 * Algorithm blocks: 0 * 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 0.0004788/1, allocations: 360.9 kB / 0.7445 GB, free: 5.594 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003089/1, allocations: 221.1 kB / 0.7447 GB, free: 5.375 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003138/1.004, allocations: 2.115 MB / 0.7468 GB, free: 3.242 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.875e-05/1.004, allocations: 12 kB / 0.7468 GB, free: 3.23 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/1.004, allocations: 0 / 0.7468 GB, free: 3.23 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/1.004, allocations: 7.969 kB / 0.7468 GB, free: 3.223 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1388/1.142, allocations: 6.414 MB / 0.7531 GB, free: 210.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/1.142, allocations: 7.062 kB / 0.7531 GB, free: 210.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008322/1.143, allocations: 196.8 kB / 0.7533 GB, free: 210.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-05/1.143, allocations: 18.38 kB / 0.7533 GB, free: 210.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.891e-05/1.143, allocations: 14.69 kB / 0.7533 GB, free: 210.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.151e-05/1.143, allocations: 22.19 kB / 0.7533 GB, free: 210.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.245e-06/1.143, allocations: 13.62 kB / 0.7533 GB, free: 210.6 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002342/1.146, allocations: 3.029 MB / 0.7563 GB, free: 209.2 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002266/1.148, allocations: 3.422 MB / 0.7596 GB, free: 207.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003362/1.148, allocations: 300.3 kB / 0.7599 GB, free: 207.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002876/1.149, allocations: 10.88 kB / 0.7599 GB, free: 207.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007151/1.149, allocations: 32.78 kB / 0.76 GB, free: 207.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/1.15, allocations: 82.45 kB / 0.76 GB, free: 207.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/1.15, allocations: 62.73 kB / 0.7601 GB, free: 207.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001589/1.151, allocations: 1.37 MB / 0.7614 GB, free: 206.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003796/1.155, allocations: 0.9281 MB / 0.7623 GB, free: 206.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 106 * Array equations: 6 * Algorithm blocks: 0 * 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.0002947/1.155, allocations: 153.4 kB / 0.7625 GB, free: 206.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003651/1.159, allocations: 3.33 MB / 0.7657 GB, free: 206.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/1.159, allocations: 0 / 0.7657 GB, free: 206.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009009/1.16, allocations: 0.9454 MB / 0.7667 GB, free: 206.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006753/1.161, allocations: 178.7 kB / 0.7668 GB, free: 206.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009133/1.17, allocations: 6.429 MB / 0.7731 GB, free: 205.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003278/1.173, allocations: 3.278 MB / 0.7763 GB, free: 204.4 MB / 0.5261 GB Notification: Performance of SimCode: time 4.51e-07/1.173, allocations: 0 / 0.7763 GB, free: 204.4 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Visualizers_Torus_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1)