Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.InitializationConversion.Bodies.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_InitializationConversion_Bodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001179/0.00118, allocations: 185.7 kB / 7.805 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.2 MB / 213.4 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009603/0.0009603, allocations: 82.97 kB / 261.4 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1989/0.1989, allocations: 43.49 MB / 352.8 MB, free: 2.027 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2205/0.4194, allocations: 64.96 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.718, allocations: 58.84 MB / 476.6 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1322/0.8502, allocations: 100.8 MB / 0.5639 GB, free: 14.1 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001736/0.8504, allocations: 75.47 kB / 0.564 GB, free: 14.03 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.5369/1.387, allocations: 105.6 MB / 0.6671 GB, free: 105.3 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.782e-05/1.387, allocations: 18.72 kB / 0.6671 GB, free: 105.3 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03006/1.418, allocations: 6.8 MB / 0.6737 GB, free: 104.9 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04631/1.464, allocations: 18.36 MB / 0.6917 GB, free: 103 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000512/1.464, allocations: 136.1 kB / 0.6918 GB, free: 103 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003171/1.468, allocations: 268.6 kB / 0.6921 GB, free: 103 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01559/1.483, allocations: 6.548 MB / 0.6985 GB, free: 100.8 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02865/1.512, allocations: 9.886 MB / 0.7081 GB, free: 95.34 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005413/1.513, allocations: 87.8 kB / 0.7082 GB, free: 95.3 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002234/1.515, allocations: 33.03 kB / 0.7082 GB, free: 95.3 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002275/1.517, allocations: 1.146 MB / 0.7093 GB, free: 94.88 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05414/1.571, allocations: 51.42 MB / 0.7596 GB, free: 42.31 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004357/1.576, allocations: 3.606 MB / 0.7631 GB, free: 38.54 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002773/1.578, allocations: 2.513 MB / 0.7655 GB, free: 36 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01588/1.594, allocations: 9.305 MB / 0.7746 GB, free: 26.47 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/1.594, allocations: 54.73 kB / 0.7747 GB, free: 26.41 MB / 474.7 MB Notification: Performance of pre-optimization done (n=182): time 6.262e-06/1.594, allocations: 0 / 0.7747 GB, free: 26.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=210): time 0.04138/1.636, allocations: 18.96 MB / 0.7932 GB, free: 7.102 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.757e-05/1.636, allocations: 328.4 kB / 0.7935 GB, free: 6.707 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00653/1.643, allocations: 4.059 MB / 0.7975 GB, free: 2.648 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007145/1.643, allocations: 25.7 kB / 0.7975 GB, free: 2.617 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001795/1.645, allocations: 3.129 MB / 0.8005 GB, free: 15.43 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001694/1.647, allocations: 0.8754 MB / 0.8014 GB, free: 14.55 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004688/1.647, allocations: 4 kB / 0.8014 GB, free: 14.54 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004661/1.648, allocations: 0.6201 MB / 0.802 GB, free: 13.92 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004487/1.652, allocations: 3.005 MB / 0.8049 GB, free: 10.91 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009808/1.662, allocations: 7.4 MB / 0.8122 GB, free: 1.305 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008851/1.671, allocations: 4.794 MB / 0.8169 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001886/1.671, allocations: 44 kB / 0.8169 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of matching and sorting (n=967) (initialization): time 0.3254/1.997, allocations: 13.75 MB / 0.8303 GB, free: 168.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/1.997, allocations: 7.812 kB / 0.8303 GB, free: 168.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03285/2.03, allocations: 7.683 MB / 0.8378 GB, free: 168.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03546/2.065, allocations: 5.181 MB / 0.8429 GB, free: 168.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006337/2.071, allocations: 1.7 MB / 0.8446 GB, free: 168.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01873/2.09, allocations: 14.22 MB / 0.8584 GB, free: 161 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009595/2.1, allocations: 489 kB / 0.8589 GB, free: 161 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002629/2.103, allocations: 468.1 kB / 0.8593 GB, free: 161 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.002301/2.105, allocations: 0.4975 MB / 0.8598 GB, free: 160.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00134/2.106, allocations: 436.7 kB / 0.8603 GB, free: 160.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/2.108, allocations: 0.5692 MB / 0.8608 GB, free: 160.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01373/2.122, allocations: 5.599 MB / 0.8663 GB, free: 160.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.344e-05/2.122, allocations: 7.562 kB / 0.8663 GB, free: 160.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.951e-05/2.122, allocations: 14.61 kB / 0.8663 GB, free: 160.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02065/2.142, allocations: 9.138 MB / 0.8752 GB, free: 159.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.872e-05/2.143, allocations: 3.719 kB / 0.8752 GB, free: 159.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002597/2.145, allocations: 390.8 kB / 0.8756 GB, free: 159.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01259/2.158, allocations: 3.264 MB / 0.8788 GB, free: 158.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006808/2.158, allocations: 70.45 kB / 0.8789 GB, free: 158.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01412/2.173, allocations: 14.42 MB / 0.8929 GB, free: 149 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002952/2.176, allocations: 5.485 MB / 0.8983 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02386/2.2, allocations: 10.33 MB / 0.9084 GB, free: 140 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02612/2.226, allocations: 13.54 MB / 0.9216 GB, free: 131.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001936/2.228, allocations: 0.5018 MB / 0.9221 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001791/2.229, allocations: 43.31 kB / 0.9221 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004633/2.234, allocations: 193.4 kB / 0.9223 GB, free: 130.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007659/2.235, allocations: 108.7 kB / 0.9224 GB, free: 130.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002778/2.235, allocations: 74.98 kB / 0.9225 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.00542/2.241, allocations: 2.78 MB / 0.9252 GB, free: 128.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01014/2.251, allocations: 1.55 MB / 0.9267 GB, free: 126.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.0009487/2.252, allocations: 198.3 kB / 0.9269 GB, free: 126.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01619/2.268, allocations: 8.92 MB / 0.9356 GB, free: 119 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/2.268, allocations: 3.219 kB / 0.9356 GB, free: 119 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008865/2.277, allocations: 4.441 MB / 0.94 GB, free: 115 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004879/2.282, allocations: 0.5328 MB / 0.9405 GB, free: 114.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02685/2.309, allocations: 12.27 MB / 0.9525 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006949/2.316, allocations: 4.267 MB / 0.9566 GB, free: 99.32 MB / 0.4948 GB Notification: Performance of SimCode: time 1.262e-06/2.316, allocations: 0 / 0.9566 GB, free: 99.32 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.InitializationConversion.Bodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.InitializationConversion.Bodies_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_InitializationConversion_Bodies_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_InitializationConversion_Bodies.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe 2>&1)