Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.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.Forces.WorldTorques,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques",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.001093/0.001093, allocations: 205.8 kB / 8.544 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009037/0.0009038, allocations: 89.16 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1681/0.1681, allocations: 45.14 MB / 383.3 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1888/0.3569, allocations: 69.36 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08044/0.4374, allocations: 63.25 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2606/0.698, allocations: 107.2 MB / 0.6085 GB, free: 12.14 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001921/0.6982, allocations: 74.22 kB / 0.6086 GB, free: 12.11 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: 2215 * Number of variables: 2215 Notification: Performance of Generate backend data structure: time 0.3499/1.048, allocations: 138.7 MB / 0.7441 GB, free: 9.172 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/1.048, allocations: 8 kB / 0.7441 GB, free: 9.164 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03663/1.085, allocations: 9.057 MB / 0.7529 GB, free: 84 kB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.151/1.236, allocations: 7.4 MB / 0.7602 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/1.236, allocations: 211 kB / 0.7604 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001416/1.237, allocations: 389.5 kB / 0.7607 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01168/1.249, allocations: 8.759 MB / 0.7693 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01525/1.264, allocations: 13.59 MB / 0.7826 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001944/1.265, allocations: 96.75 kB / 0.7827 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006575/1.265, allocations: 40.72 kB / 0.7827 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001365/1.267, allocations: 1.449 MB / 0.7841 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05278/1.319, allocations: 66.6 MB / 0.8491 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004464/1.324, allocations: 4.411 MB / 0.8535 GB, free: 120.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002811/1.327, allocations: 2.944 MB / 0.8563 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01194/1.339, allocations: 8.531 MB / 0.8647 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/1.339, allocations: 57.97 kB / 0.8647 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=180): time 5.42e-06/1.339, allocations: 3.891 kB / 0.8647 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=201): time 0.03738/1.376, allocations: 21.12 MB / 0.8853 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.352e-05/1.376, allocations: 256.1 kB / 0.8856 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00563/1.382, allocations: 4.725 MB / 0.8902 GB, free: 96.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002503/1.382, allocations: 25.7 kB / 0.8902 GB, free: 96.07 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001643/1.384, allocations: 4.258 MB / 0.8944 GB, free: 92.25 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006744/1.385, allocations: 0.7875 MB / 0.8952 GB, free: 91.55 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002724/1.385, allocations: 0 / 0.8952 GB, free: 91.55 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003029/1.385, allocations: 0.6415 MB / 0.8958 GB, free: 91 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002762/1.388, allocations: 2.362 MB / 0.8981 GB, free: 88.89 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00429/1.392, allocations: 7.4 MB / 0.9053 GB, free: 79.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004389/1.397, allocations: 4.17 MB / 0.9094 GB, free: 75.96 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.325e-05/1.397, allocations: 52 kB / 0.9094 GB, free: 75.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1032) (initialization): time 0.01368/1.41, allocations: 9.111 MB / 0.9183 GB, free: 67.95 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/1.41, allocations: 4 kB / 0.9183 GB, free: 67.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001522/1.411, allocations: 180 kB / 0.9185 GB, free: 67.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001826/1.412, allocations: 0.8207 MB / 0.9193 GB, free: 67.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005584/1.418, allocations: 1.801 MB / 0.9211 GB, free: 65.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007757/1.426, allocations: 8.038 MB / 0.9289 GB, free: 57.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006507/1.432, allocations: 244.9 kB / 0.9292 GB, free: 57.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007253/1.433, allocations: 0.4912 MB / 0.9296 GB, free: 57.13 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.arrowLine.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.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],worldTorque2.arrow.arrowLine.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque2.color[3],worldTorque2.color[2],worldTorque2.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],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldTorque1.color[3],worldTorque1.color[2],worldTorque1.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],fixed2.color[3],fixed2.color[2],fixed2.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 (966): * Single equations (assignments): 960 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007601/1.434, allocations: 0.5619 MB / 0.9302 GB, free: 56.57 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005496/1.434, allocations: 481.7 kB / 0.9306 GB, free: 56.09 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005068/1.44, allocations: 3.287 MB / 0.9338 GB, free: 53.39 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.672e-05/1.44, allocations: 20 kB / 0.9339 GB, free: 53.37 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/1.44, allocations: 8 kB / 0.9339 GB, free: 53.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-05/1.44, allocations: 10.78 kB / 0.9339 GB, free: 53.36 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01293/1.453, allocations: 8.221 MB / 0.9419 GB, free: 46.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/1.453, allocations: 0 / 0.9419 GB, free: 46.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/1.454, allocations: 294.3 kB / 0.9422 GB, free: 46.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001515/1.456, allocations: 0.5223 MB / 0.9427 GB, free: 46.03 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001693/1.456, allocations: 11.23 kB / 0.9427 GB, free: 46.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0067/1.463, allocations: 7.154 MB / 0.9497 GB, free: 39.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.463, allocations: 4.062 kB / 0.9497 GB, free: 39.13 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00722/1.47, allocations: 6.084 MB / 0.9556 GB, free: 33.7 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009081/1.479, allocations: 8.528 MB / 0.964 GB, free: 26.05 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/1.48, allocations: 0.5009 MB / 0.9645 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006777/1.481, allocations: 0 / 0.9645 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001787/1.483, allocations: 69.56 kB / 0.9645 GB, free: 25.49 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002409/1.483, allocations: 94.42 kB / 0.9646 GB, free: 25.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/1.483, allocations: 59.12 kB / 0.9647 GB, free: 25.38 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004261/1.487, allocations: 3.221 MB / 0.9678 GB, free: 22.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006632/1.494, allocations: 1.191 MB / 0.969 GB, free: 21.41 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 144 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004555/1.494, allocations: 161.3 kB / 0.9691 GB, free: 21.27 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007742/1.502, allocations: 5.913 MB / 0.9749 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/1.502, allocations: 4 kB / 0.9749 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002172/1.504, allocations: 1.863 MB / 0.9767 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002886/1.507, allocations: 0.595 MB / 0.9773 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01769/1.525, allocations: 10.92 MB / 0.988 GB, free: 3.668 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1465/1.672, allocations: 5.159 MB / 0.993 GB, free: 150 MB / 0.5261 GB Notification: Performance of SimCode: time 1.012e-06/1.672, allocations: 0 / 0.993 GB, free: 150 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1)