Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForces2.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.Forces.FrameForces2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForces2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForces2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForces2",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.001057/0.001057, allocations: 182.3 kB / 8.52 MB, free: 1.832 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.176/1.176, allocations: 221.4 MB / 230.3 MB, free: 7.625 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.0009389/0.0009387, allocations: 86.31 kB / 281.2 MB, free: 5.434 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.1566/0.1566, allocations: 44.15 MB / 376.1 MB, free: 3.199 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1921/0.3487, allocations: 68.04 MB / 444.1 MB, free: 15.47 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09969/0.4484, allocations: 61.9 MB / 0.4942 GB, free: 1.488 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2764/0.7249, allocations: 106.1 MB / 0.5978 GB, free: 6.508 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.7252, allocations: 76.62 kB / 0.5979 GB, free: 6.434 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: 2601 * Number of variables: 2601 Notification: Performance of Generate backend data structure: time 0.5471/1.272, allocations: 158.4 MB / 0.7526 GB, free: 98.55 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/1.272, allocations: 15.28 kB / 0.7526 GB, free: 98.54 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0429/1.315, allocations: 11.49 MB / 0.7638 GB, free: 97.98 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02554/1.341, allocations: 10.06 MB / 0.7737 GB, free: 94.73 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005509/1.342, allocations: 248.4 kB / 0.7739 GB, free: 94.73 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003576/1.345, allocations: 467 kB / 0.7743 GB, free: 94.71 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01945/1.365, allocations: 10.5 MB / 0.7846 GB, free: 91.05 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02202/1.387, allocations: 15.82 MB / 0.8 GB, free: 73.96 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002805/1.387, allocations: 107 kB / 0.8001 GB, free: 73.85 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008434/1.388, allocations: 44 kB / 0.8002 GB, free: 73.81 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001627/1.389, allocations: 1.699 MB / 0.8018 GB, free: 72.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06677/1.456, allocations: 74.76 MB / 0.8748 GB, free: 11.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00722/1.463, allocations: 5.71 MB / 0.8804 GB, free: 6.039 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00474/1.468, allocations: 3.999 MB / 0.8843 GB, free: 2.031 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01878/1.487, allocations: 12.52 MB / 0.8966 GB, free: 5.082 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.283e-05/1.487, allocations: 64.05 kB / 0.8966 GB, free: 5.012 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=233): time 5.139e-06/1.487, allocations: 4 kB / 0.8966 GB, free: 5.008 MB / 0.5261 GB Notification: Performance of matching and sorting (n=261): time 0.3116/1.799, allocations: 27.97 MB / 0.9239 GB, free: 173.1 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.992e-05/1.799, allocations: 286.7 kB / 0.9242 GB, free: 172.8 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006462/1.805, allocations: 5.204 MB / 0.9293 GB, free: 172.3 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0002871/1.806, allocations: 25.7 kB / 0.9293 GB, free: 172.2 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.001882/1.808, allocations: 4.78 MB / 0.934 GB, free: 169.5 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007929/1.808, allocations: 0.9811 MB / 0.9349 GB, free: 168.9 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002984/1.809, allocations: 0 / 0.9349 GB, free: 168.9 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0003378/1.809, allocations: 0.6763 MB / 0.9356 GB, free: 168.6 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003294/1.812, allocations: 2.821 MB / 0.9384 GB, free: 168.6 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004948/1.817, allocations: 8.146 MB / 0.9463 GB, free: 161.7 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005274/1.822, allocations: 4.778 MB / 0.951 GB, free: 161 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.311e-05/1.823, allocations: 57.44 kB / 0.951 GB, free: 161 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1138) (initialization): time 0.01463/1.837, allocations: 10.47 MB / 0.9613 GB, free: 158 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/1.837, allocations: 2.938 kB / 0.9613 GB, free: 158 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001352/1.837, allocations: 191.6 kB / 0.9614 GB, free: 158 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002155/1.84, allocations: 1.001 MB / 0.9624 GB, free: 157.8 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005548/1.845, allocations: 1.954 MB / 0.9643 GB, free: 157.6 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009341/1.855, allocations: 10.37 MB / 0.9745 GB, free: 150.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006083/1.861, allocations: 257.7 kB / 0.9747 GB, free: 150.4 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000716/1.861, allocations: 0.5236 MB / 0.9752 GB, free: 150.4 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 869 * Number of states: 0 () * Number of discrete variables: 74 (frameForce4.arrow.arrowLine.twoHeadedArrow,frameForce4.arrow.headAtOrigin,frameForce4.color[3],frameForce4.color[2],frameForce4.color[1],BodyCylinder4.color[3],BodyCylinder4.color[2],BodyCylinder4.color[1],BodyCylinder4.body.sphereColor[3],BodyCylinder4.body.sphereColor[2],BodyCylinder4.body.sphereColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameForce3.arrow.arrowLine.twoHeadedArrow,frameForce3.arrow.headAtOrigin,frameForce3.color[3],frameForce3.color[2],frameForce3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],frameForce2.arrow.arrowLine.twoHeadedArrow,frameForce2.arrow.headAtOrigin,frameForce2.color[3],frameForce2.color[2],frameForce2.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameForce1.arrow.arrowLine.twoHeadedArrow,frameForce1.arrow.headAtOrigin,frameForce1.color[3],frameForce1.color[2],frameForce1.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (1062): * Single equations (assignments): 1055 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009429/1.862, allocations: 0.5896 MB / 0.9758 GB, free: 149.9 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008221/1.863, allocations: 0.5456 MB / 0.9763 GB, free: 149.6 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006646/1.87, allocations: 4.485 MB / 0.9807 GB, free: 148 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.213e-05/1.87, allocations: 27.5 kB / 0.9807 GB, free: 148 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.602e-05/1.87, allocations: 7.969 kB / 0.9807 GB, free: 148 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-05/1.87, allocations: 17.31 kB / 0.9808 GB, free: 148 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01863/1.889, allocations: 10.86 MB / 0.9914 GB, free: 143.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/1.889, allocations: 4 kB / 0.9914 GB, free: 143.8 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002008/1.891, allocations: 376.6 kB / 0.9917 GB, free: 143.5 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/1.892, allocations: 0.6565 MB / 0.9924 GB, free: 143 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001735/1.893, allocations: 19.12 kB / 0.9924 GB, free: 143 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00809/1.901, allocations: 9.233 MB / 1.001 GB, free: 134.1 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/1.901, allocations: 3.906 kB / 1.001 GB, free: 134.1 MB / 0.5262 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009133/1.91, allocations: 7.898 MB / 1.009 GB, free: 127 MB / 0.5262 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01141/1.921, allocations: 11.04 MB / 1.02 GB, free: 117.1 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/1.922, allocations: 0.561 MB / 1.02 GB, free: 116.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007417/1.923, allocations: 7.938 kB / 1.02 GB, free: 116.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002066/1.925, allocations: 84.08 kB / 1.021 GB, free: 116.4 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002798/1.926, allocations: 114.5 kB / 1.021 GB, free: 116.4 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001812/1.926, allocations: 66.62 kB / 1.021 GB, free: 116.3 MB / 0.5262 GB Notification: Performance of sort global known variables: time 0.004709/1.931, allocations: 3.558 MB / 1.024 GB, free: 113.2 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.00741/1.938, allocations: 1.411 MB / 1.026 GB, free: 111.8 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 198 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004374/1.938, allocations: 152.1 kB / 1.026 GB, free: 111.7 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.008131/1.947, allocations: 7.095 MB / 1.033 GB, free: 105.2 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/1.947, allocations: 4 kB / 1.033 GB, free: 105.2 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.002396/1.949, allocations: 2.432 MB / 1.035 GB, free: 103 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003057/1.952, allocations: 0.7412 MB / 1.036 GB, free: 102.4 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02086/1.973, allocations: 13.13 MB / 1.049 GB, free: 90.61 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006677/1.98, allocations: 5.975 MB / 1.054 GB, free: 86.15 MB / 0.5262 GB Notification: Performance of SimCode: time 7.81e-07/1.98, allocations: 4 kB / 1.054 GB, free: 86.15 MB / 0.5262 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForces2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForces2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForces2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForces2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForces2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForces2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForces2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForces2.pipe 2>&1)