Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",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.001865/0.001865, allocations: 204.2 kB / 8.537 MB, free: 488 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 225.5 MB / 234.4 MB, free: 9.504 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009582/0.0009583, allocations: 97.81 kB / 286.3 MB, free: 5.871 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2301/0.2301, allocations: 45.15 MB / 383.3 MB, free: 4.906 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2699/0.5001, allocations: 69.37 MB / 452.7 MB, free: 48.24 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.6393, allocations: 63.24 MB / 0.5039 GB, free: 0.9297 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3457/0.9851, allocations: 108.6 MB / 0.6099 GB, free: 11.2 MB / 434.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.9854, allocations: 67.97 kB / 0.61 GB, free: 11.13 MB / 434.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.5052/1.491, allocations: 100 MB / 0.7076 GB, free: 113.2 MB / 0.5027 GB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/1.491, allocations: 10.94 kB / 0.7077 GB, free: 113.2 MB / 0.5027 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02396/1.515, allocations: 6.335 MB / 0.7138 GB, free: 112.9 MB / 0.5027 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01329/1.528, allocations: 5.392 MB / 0.7191 GB, free: 112.3 MB / 0.5027 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001966/1.528, allocations: 139.8 kB / 0.7192 GB, free: 112.3 MB / 0.5027 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0017/1.53, allocations: 263 kB / 0.7195 GB, free: 112.3 MB / 0.5027 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01067/1.541, allocations: 6.814 MB / 0.7261 GB, free: 112.2 MB / 0.5027 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01432/1.555, allocations: 9.784 MB / 0.7357 GB, free: 109.6 MB / 0.5027 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001634/1.555, allocations: 73.66 kB / 0.7358 GB, free: 109.5 MB / 0.5027 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005132/1.556, allocations: 29.91 kB / 0.7358 GB, free: 109.5 MB / 0.5027 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001341/1.557, allocations: 1.097 MB / 0.7369 GB, free: 109.5 MB / 0.5027 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04486/1.602, allocations: 46.99 MB / 0.7828 GB, free: 75.83 MB / 0.5027 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004466/1.606, allocations: 3.017 MB / 0.7857 GB, free: 74.25 MB / 0.5027 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002682/1.609, allocations: 1.945 MB / 0.7876 GB, free: 73.42 MB / 0.5027 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01374/1.623, allocations: 8.348 MB / 0.7958 GB, free: 68.28 MB / 0.5027 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.751e-05/1.623, allocations: 52.72 kB / 0.7958 GB, free: 68.23 MB / 0.5027 GB Notification: Performance of pre-optimization done (n=180): time 5.951e-06/1.623, allocations: 0 / 0.7958 GB, free: 68.23 MB / 0.5027 GB Notification: Performance of matching and sorting (n=236): time 0.06889/1.692, allocations: 24.64 MB / 0.8199 GB, free: 54.6 MB / 0.5027 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.637e-05/1.692, allocations: 210.5 kB / 0.8201 GB, free: 54.35 MB / 0.5027 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005447/1.697, allocations: 3.304 MB / 0.8233 GB, free: 51.42 MB / 0.5027 GB Notification: Performance of collectPreVariables (initialization): time 0.0007752/1.698, allocations: 30.36 kB / 0.8233 GB, free: 51.39 MB / 0.5027 GB Notification: Performance of collectInitialEqns (initialization): time 0.001795/1.7, allocations: 2.981 MB / 0.8262 GB, free: 48.7 MB / 0.5027 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009802/1.701, allocations: 0.8498 MB / 0.8271 GB, free: 47.93 MB / 0.5027 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003366/1.701, allocations: 0 / 0.8271 GB, free: 47.93 MB / 0.5027 GB Notification: Performance of setup shared object (initialization): time 0.0003667/1.702, allocations: 0.5792 MB / 0.8276 GB, free: 47.43 MB / 0.5027 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004125/1.706, allocations: 3.393 MB / 0.8309 GB, free: 44.35 MB / 0.5027 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006399/1.712, allocations: 7.135 MB / 0.8379 GB, free: 35.77 MB / 0.5027 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007953/1.72, allocations: 5.008 MB / 0.8428 GB, free: 31.47 MB / 0.5027 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.864e-05/1.72, allocations: 40 kB / 0.8428 GB, free: 31.43 MB / 0.5027 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.03724/1.758, allocations: 14.67 MB / 0.8572 GB, free: 17.13 MB / 0.5027 GB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/1.758, allocations: 6.25 kB / 0.8572 GB, free: 17.13 MB / 0.5027 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001417/1.758, allocations: 136 kB / 0.8573 GB, free: 17 MB / 0.5027 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02295/1.781, allocations: 5.621 MB / 0.8628 GB, free: 11.36 MB / 0.5027 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005457/1.786, allocations: 1.45 MB / 0.8642 GB, free: 9.91 MB / 0.5027 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03333/1.82, allocations: 22.61 MB / 0.8863 GB, free: 3.059 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00601/1.826, allocations: 227.5 kB / 0.8865 GB, free: 2.836 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001413/1.827, allocations: 396 kB / 0.8869 GB, free: 2.449 MB / 0.5183 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 608 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (772): * Single equations (assignments): 767 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001334/1.829, allocations: 452.3 kB / 0.8873 GB, free: 2.004 MB / 0.5183 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009344/1.83, allocations: 367.2 kB / 0.8877 GB, free: 1.641 MB / 0.5183 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03128/1.861, allocations: 10.59 MB / 0.898 GB, free: 7.027 MB / 0.5339 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.927e-05/1.861, allocations: 24 kB / 0.898 GB, free: 7.004 MB / 0.5339 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.25e-05/1.861, allocations: 8 kB / 0.898 GB, free: 6.996 MB / 0.5339 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-05/1.861, allocations: 11.95 kB / 0.8981 GB, free: 6.984 MB / 0.5339 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2418/2.103, allocations: 19.06 MB / 0.9167 GB, free: 187.8 MB / 0.5339 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.024e-05/2.103, allocations: 6.094 kB / 0.9167 GB, free: 187.8 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002162/2.105, allocations: 342.8 kB / 0.917 GB, free: 187.8 MB / 0.5339 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02005/2.125, allocations: 4.685 MB / 0.9216 GB, free: 187.8 MB / 0.5339 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005818/2.126, allocations: 10.62 kB / 0.9216 GB, free: 187.8 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02528/2.151, allocations: 18.6 MB / 0.9397 GB, free: 184.5 MB / 0.5339 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/2.151, allocations: 7.125 kB / 0.9398 GB, free: 184.5 MB / 0.5339 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03063/2.182, allocations: 14.44 MB / 0.9539 GB, free: 179.2 MB / 0.5339 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04556/2.227, allocations: 26.65 MB / 0.9799 GB, free: 168.5 MB / 0.5339 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/2.229, allocations: 406.4 kB / 0.9803 GB, free: 168.3 MB / 0.5339 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009739/2.23, allocations: 11.22 kB / 0.9803 GB, free: 168.3 MB / 0.5339 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002472/2.232, allocations: 89.27 kB / 0.9804 GB, free: 168.3 MB / 0.5339 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004047/2.232, allocations: 117.8 kB / 0.9805 GB, free: 168.3 MB / 0.5339 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000285/2.233, allocations: 69.94 kB / 0.9805 GB, free: 168.3 MB / 0.5339 GB Notification: Performance of sort global known variables: time 0.003853/2.237, allocations: 2.244 MB / 0.9827 GB, free: 167.4 MB / 0.5339 GB Notification: Performance of remove unused functions: time 0.007728/2.244, allocations: 1.158 MB / 0.9839 GB, free: 167.4 MB / 0.5339 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (165): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 47} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007965/2.245, allocations: 170.8 kB / 0.984 GB, free: 167.3 MB / 0.5339 GB Notification: Performance of simCode: created initialization part: time 0.01104/2.256, allocations: 7.71 MB / 0.9916 GB, free: 162 MB / 0.5339 GB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/2.256, allocations: 7.094 kB / 0.9916 GB, free: 162 MB / 0.5339 GB Notification: Performance of simCode: created simulation system equations: time 0.00368/2.26, allocations: 3.01 MB / 0.9945 GB, free: 159.3 MB / 0.5339 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002374/2.262, allocations: 391.9 kB / 0.9949 GB, free: 159 MB / 0.5339 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02022/2.283, allocations: 10.05 MB / 1.005 GB, free: 150 MB / 0.5339 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005942/2.289, allocations: 3.873 MB / 1.008 GB, free: 147 MB / 0.5339 GB Notification: Performance of SimCode: time 1.152e-06/2.289, allocations: 0 / 1.008 GB, free: 147 MB / 0.5339 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1)