Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies2",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 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 170.6 kB / 8.513 MB, free: 1.848 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.2/1.2, allocations: 221.4 MB / 230.3 MB, free: 7.672 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000945/0.0009451, allocations: 84.73 kB / 281.2 MB, free: 5.43 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1647/0.1647, allocations: 44.15 MB / 376.1 MB, free: 3.199 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1712/0.336, allocations: 68.03 MB / 444.1 MB, free: 15.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08912/0.4251, allocations: 61.92 MB / 0.4942 GB, free: 1.492 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2539/0.679, allocations: 107.9 MB / 0.5996 GB, free: 4.664 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.6793, allocations: 79.62 kB / 0.5997 GB, free: 4.59 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2624 * Number of variables: 2624 Notification: Performance of Generate backend data structure: time 0.5349/1.214, allocations: 151.4 MB / 0.7476 GB, free: 98.86 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/1.214, allocations: 13.66 kB / 0.7476 GB, free: 98.86 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02862/1.243, allocations: 7.213 MB / 0.7546 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02333/1.266, allocations: 10.47 MB / 0.7648 GB, free: 97.14 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003519/1.267, allocations: 254.2 kB / 0.7651 GB, free: 97.14 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002347/1.269, allocations: 466.7 kB / 0.7655 GB, free: 97.13 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01718/1.286, allocations: 10.94 MB / 0.7762 GB, free: 93.33 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01961/1.306, allocations: 16.08 MB / 0.7919 GB, free: 80.84 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002335/1.306, allocations: 101.6 kB / 0.792 GB, free: 80.75 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008116/1.307, allocations: 48.52 kB / 0.7921 GB, free: 80.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002207/1.309, allocations: 1.809 MB / 0.7938 GB, free: 79.21 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07083/1.38, allocations: 81.68 MB / 0.8736 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006298/1.386, allocations: 4.801 MB / 0.8783 GB, free: 7.727 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004621/1.391, allocations: 3.813 MB / 0.882 GB, free: 3.895 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02048/1.411, allocations: 13.14 MB / 0.8948 GB, free: 6.242 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.294e-05/1.411, allocations: 68.5 kB / 0.8949 GB, free: 6.164 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=301): time 6.242e-06/1.411, allocations: 0 / 0.8949 GB, free: 6.164 MB / 0.5261 GB Notification: Performance of matching and sorting (n=329): time 0.2831/1.695, allocations: 22.79 MB / 0.9172 GB, free: 178.5 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.301e-05/1.695, allocations: 241.7 kB / 0.9174 GB, free: 178.3 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006299/1.701, allocations: 5.186 MB / 0.9225 GB, free: 177.8 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0004157/1.701, allocations: 28.23 kB / 0.9225 GB, free: 177.8 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.001831/1.703, allocations: 4.826 MB / 0.9272 GB, free: 174.9 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001166/1.704, allocations: 1.29 MB / 0.9285 GB, free: 174.2 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004196/1.705, allocations: 5.844 kB / 0.9285 GB, free: 174.2 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0003937/1.705, allocations: 0.7368 MB / 0.9292 GB, free: 173.8 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004532/1.71, allocations: 3.886 MB / 0.933 GB, free: 173.8 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00617/1.716, allocations: 9.799 MB / 0.9425 GB, free: 166.2 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007997/1.724, allocations: 6.25 MB / 0.9486 GB, free: 165.7 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.819e-05/1.724, allocations: 59.62 kB / 0.9487 GB, free: 165.7 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1340) (initialization): time 0.02934/1.753, allocations: 15.2 MB / 0.9635 GB, free: 161.4 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/1.753, allocations: 7.812 kB / 0.9636 GB, free: 161.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01831/1.772, allocations: 7.699 MB / 0.9711 GB, free: 159.2 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01668/1.788, allocations: 3.444 MB / 0.9744 GB, free: 158.6 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00827/1.797, allocations: 2.377 MB / 0.9768 GB, free: 158.4 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01285/1.81, allocations: 12.67 MB / 0.9891 GB, free: 147.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008746/1.818, allocations: 0.5216 MB / 0.9896 GB, free: 147.1 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008823/1.819, allocations: 0.6156 MB / 0.9902 GB, free: 146.5 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * Number of states: 0 () * Number of discrete variables: 78 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (1264): * Single equations (assignments): 1239 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001147/1.82, allocations: 0.6389 MB / 0.9909 GB, free: 145.9 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007344/1.821, allocations: 0.5696 MB / 0.9914 GB, free: 145.3 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01465/1.836, allocations: 7.72 MB / 0.999 GB, free: 139.1 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01304/1.849, allocations: 6.905 MB / 1.006 GB, free: 133.6 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.798e-05/1.849, allocations: 8 kB / 1.006 GB, free: 133.6 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.158e-05/1.849, allocations: 14.53 kB / 1.006 GB, free: 133.6 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02942/1.878, allocations: 18.21 MB / 1.024 GB, free: 119.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.257e-05/1.878, allocations: 4 kB / 1.024 GB, free: 119.2 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003513/1.882, allocations: 0.6318 MB / 1.024 GB, free: 118.7 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009472/1.891, allocations: 2.95 MB / 1.027 GB, free: 116.6 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003474/1.892, allocations: 78.34 kB / 1.027 GB, free: 116.6 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01263/1.904, allocations: 13.47 MB / 1.04 GB, free: 104 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002478/1.907, allocations: 5.665 MB / 1.046 GB, free: 98.04 MB / 0.5262 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01824/1.925, allocations: 12.77 MB / 1.058 GB, free: 85.78 MB / 0.5262 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02162/1.947, allocations: 17.03 MB / 1.075 GB, free: 68.42 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0013/1.948, allocations: 0.603 MB / 1.075 GB, free: 67.79 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009339/1.949, allocations: 43.97 kB / 1.076 GB, free: 67.75 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003225/1.952, allocations: 215.6 kB / 1.076 GB, free: 67.54 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004316/1.953, allocations: 177.7 kB / 1.076 GB, free: 67.36 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003022/1.953, allocations: 103.9 kB / 1.076 GB, free: 67.26 MB / 0.5262 GB Notification: Performance of sort global known variables: time 0.004291/1.957, allocations: 3.493 MB / 1.079 GB, free: 63.77 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.007979/1.965, allocations: 1.934 MB / 1.081 GB, free: 61.85 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 252 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006071/1.966, allocations: 220.3 kB / 1.081 GB, free: 61.64 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01621/1.982, allocations: 11.16 MB / 1.092 GB, free: 50.27 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/1.982, allocations: 4 kB / 1.092 GB, free: 50.27 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.008508/1.991, allocations: 5.22 MB / 1.097 GB, free: 44.81 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003439/1.994, allocations: 0.7022 MB / 1.098 GB, free: 44.13 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02614/2.02, allocations: 17 MB / 1.115 GB, free: 27.22 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006953/2.027, allocations: 6.163 MB / 1.121 GB, free: 21.06 MB / 0.5262 GB Notification: Performance of SimCode: time 6.42e-07/2.027, allocations: 4 kB / 1.121 GB, free: 21.06 MB / 0.5262 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe 2>&1)