Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Bodies.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.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_InitializationConversion_Bodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_InitializationConversion_Bodies",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.001582/0.001582, allocations: 182.8 kB / 8.52 MB, free: 1.742 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.157/1.157, allocations: 221.4 MB / 230.3 MB, free: 7.715 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.0009486/0.0009488, allocations: 84.75 kB / 281.2 MB, free: 5.477 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.1562/0.1562, allocations: 44.15 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1649/0.3211, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08847/0.4096, allocations: 61.91 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2455/0.6552, allocations: 102.7 MB / 0.5945 GB, free: 10.01 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/0.6554, allocations: 72.62 kB / 0.5946 GB, free: 9.938 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: 1498 * Number of variables: 1498 Notification: Performance of Generate backend data structure: time 0.4051/1.061, allocations: 106.6 MB / 0.6987 GB, free: 168.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/1.061, allocations: 11.47 kB / 0.6987 GB, free: 168.8 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02657/1.087, allocations: 6.8 MB / 0.7054 GB, free: 168.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03804/1.125, allocations: 17.76 MB / 0.7227 GB, free: 168 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001736/1.125, allocations: 131.2 kB / 0.7228 GB, free: 168 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001362/1.127, allocations: 272.5 kB / 0.7231 GB, free: 168 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008226/1.135, allocations: 6.543 MB / 0.7295 GB, free: 168 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009414/1.144, allocations: 9.883 MB / 0.7391 GB, free: 165.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001437/1.145, allocations: 84.69 kB / 0.7392 GB, free: 165.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004667/1.145, allocations: 34.22 kB / 0.7393 GB, free: 165.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001289/1.146, allocations: 1.148 MB / 0.7404 GB, free: 165.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04232/1.189, allocations: 51.31 MB / 0.7905 GB, free: 128 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003842/1.193, allocations: 3.616 MB / 0.794 GB, free: 125.3 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002247/1.195, allocations: 2.515 MB / 0.7965 GB, free: 123 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01116/1.206, allocations: 9.239 MB / 0.8055 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/1.206, allocations: 58.64 kB / 0.8055 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=182): time 3.878e-06/1.206, allocations: 4 kB / 0.8056 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=210): time 0.03375/1.24, allocations: 18.65 MB / 0.8238 GB, free: 98.35 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/1.24, allocations: 330.1 kB / 0.8241 GB, free: 97.96 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004613/1.245, allocations: 3.96 MB / 0.8279 GB, free: 94.48 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001809/1.245, allocations: 25.7 kB / 0.828 GB, free: 94.45 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001255/1.246, allocations: 3.119 MB / 0.831 GB, free: 91.63 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008373/1.247, allocations: 0.8776 MB / 0.8319 GB, free: 90.77 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003036/1.247, allocations: 0 / 0.8319 GB, free: 90.77 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002676/1.247, allocations: 0.6239 MB / 0.8325 GB, free: 90.14 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003165/1.251, allocations: 3.005 MB / 0.8354 GB, free: 87.14 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004336/1.255, allocations: 7.404 MB / 0.8426 GB, free: 77.52 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005021/1.26, allocations: 4.816 MB / 0.8474 GB, free: 72.71 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.136e-05/1.26, allocations: 44 kB / 0.8474 GB, free: 72.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=967) (initialization): time 0.04131/1.301, allocations: 13.73 MB / 0.8608 GB, free: 58.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/1.301, allocations: 11.94 kB / 0.8608 GB, free: 58.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03133/1.333, allocations: 7.672 MB / 0.8683 GB, free: 51.18 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03551/1.368, allocations: 5.18 MB / 0.8734 GB, free: 45.95 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005159/1.373, allocations: 1.704 MB / 0.875 GB, free: 44.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01747/1.391, allocations: 14.22 MB / 0.8889 GB, free: 29.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006955/1.398, allocations: 486.9 kB / 0.8894 GB, free: 28.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006082/1.398, allocations: 471.9 kB / 0.8898 GB, free: 28.45 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 716 * Number of states: 0 () * Number of discrete variables: 39 (body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],body1.frameTranslation.color[3],body1.frameTranslation.color[2],body1.frameTranslation.color[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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 (891): * Single equations (assignments): 866 * 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%),(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 prepare postOptimizeDAE: time 0.0007988/1.399, allocations: 0.494 MB / 0.8903 GB, free: 27.95 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000588/1.4, allocations: 426.5 kB / 0.8907 GB, free: 27.53 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/1.401, allocations: 0.5687 MB / 0.8913 GB, free: 26.95 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01335/1.414, allocations: 5.6 MB / 0.8967 GB, free: 21.31 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.565e-05/1.414, allocations: 8 kB / 0.8967 GB, free: 21.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.749e-05/1.414, allocations: 11.97 kB / 0.8968 GB, free: 21.29 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/1.429, allocations: 9.11 MB / 0.9057 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/1.429, allocations: 0 / 0.9057 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002145/1.431, allocations: 395.5 kB / 0.906 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01234/1.443, allocations: 3.266 MB / 0.9092 GB, free: 8.422 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002396/1.443, allocations: 67.91 kB / 0.9093 GB, free: 8.355 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1365/1.58, allocations: 14.43 MB / 0.9234 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002349/1.582, allocations: 5.479 MB / 0.9287 GB, free: 139 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01816/1.6, allocations: 10.32 MB / 0.9388 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02042/1.621, allocations: 13.53 MB / 0.952 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000994/1.622, allocations: 499.5 kB / 0.9525 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006788/1.623, allocations: 47.39 kB / 0.9525 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002709/1.625, allocations: 188.6 kB / 0.9527 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002842/1.626, allocations: 111.4 kB / 0.9528 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002/1.626, allocations: 76.5 kB / 0.9529 GB, free: 136 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003128/1.629, allocations: 2.709 MB / 0.9555 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006029/1.635, allocations: 1.544 MB / 0.957 GB, free: 135.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.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],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.body.frame_a.r_0[1],body1.body.frame_a.r_0[2],body1.body.frame_a.r_0[3],body1.body.w_a[1],body1.body.w_a[2],body1.body.w_a[3],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.body.frame_a.r_0[1],body2.body.frame_a.r_0[2],body2.body.frame_a.r_0[3],body2.body.w_a[1],body2.body.w_a[2],body2.body.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.body.frame_a.r_0[1],body3.body.frame_a.r_0[2],body3.body.frame_a.r_0[3],body3.body.w_a[1],body3.body.w_a[2],body3.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (149): * Single equations (assignments): 131 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(4,100.0%),(3,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: 3 {(2,100.0%) 1,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004911/1.635, allocations: 194.8 kB / 0.9572 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01343/1.649, allocations: 8.933 MB / 0.966 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/1.649, allocations: 3.375 kB / 0.966 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007238/1.656, allocations: 4.431 MB / 0.9703 GB, free: 132.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002608/1.659, allocations: 0.5358 MB / 0.9708 GB, free: 132.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01547/1.674, allocations: 12.23 MB / 0.9828 GB, free: 128.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004265/1.679, allocations: 4.241 MB / 0.9869 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of SimCode: time 7.62e-07/1.679, allocations: 2.531 kB / 0.9869 GB, free: 126.9 MB / 0.4948 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Bodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Bodies_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_InitializationConversion_Bodies_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_InitializationConversion_Bodies.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe 2>&1)