Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.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.FrameTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques",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.00142/0.00142, allocations: 178.2 kB / 8.52 MB, free: 1.824 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.208/1.208, allocations: 221.4 MB / 230.3 MB, free: 7.703 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.0009343/0.0009343, allocations: 91.97 kB / 281.2 MB, free: 5.516 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.1677/0.1677, allocations: 44.15 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2005/0.3682, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.4712, allocations: 61.9 MB / 0.4942 GB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3057/0.777, allocations: 107.4 MB / 0.5991 GB, free: 5.289 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002389/0.7773, allocations: 75.97 kB / 0.5992 GB, free: 5.215 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: 1787 * Number of variables: 1787 Notification: Performance of Generate backend data structure: time 0.5036/1.281, allocations: 109.8 MB / 0.7064 GB, free: 86.04 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/1.281, allocations: 14.56 kB / 0.7064 GB, free: 86.04 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02566/1.307, allocations: 6.503 MB / 0.7128 GB, free: 85.68 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01555/1.322, allocations: 6.452 MB / 0.7191 GB, free: 84.96 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002535/1.323, allocations: 165.7 kB / 0.7192 GB, free: 84.96 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00203/1.325, allocations: 299.8 kB / 0.7195 GB, free: 84.95 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01176/1.336, allocations: 7.032 MB / 0.7264 GB, free: 84.93 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0189/1.355, allocations: 11.1 MB / 0.7372 GB, free: 81.66 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002527/1.356, allocations: 73.41 kB / 0.7373 GB, free: 81.65 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000963/1.357, allocations: 34.28 kB / 0.7373 GB, free: 81.65 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00122/1.358, allocations: 1.22 MB / 0.7385 GB, free: 81.63 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04945/1.407, allocations: 55.61 MB / 0.7928 GB, free: 46.88 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004567/1.412, allocations: 3.389 MB / 0.7961 GB, free: 46.13 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002476/1.414, allocations: 2.081 MB / 0.7982 GB, free: 45.23 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01155/1.426, allocations: 6.196 MB / 0.8042 GB, free: 41.89 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/1.426, allocations: 59.77 kB / 0.8043 GB, free: 41.83 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=141): time 6.072e-06/1.426, allocations: 0 / 0.8043 GB, free: 41.83 MB / 0.4948 GB Notification: Performance of matching and sorting (n=155): time 0.03002/1.456, allocations: 15.35 MB / 0.8193 GB, free: 32.24 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.337e-05/1.456, allocations: 225.1 kB / 0.8195 GB, free: 31.97 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005621/1.462, allocations: 4.003 MB / 0.8234 GB, free: 28.45 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002789/1.462, allocations: 25.7 kB / 0.8234 GB, free: 28.42 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001649/1.464, allocations: 3.569 MB / 0.8269 GB, free: 25.21 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006886/1.465, allocations: 0.6126 MB / 0.8275 GB, free: 24.67 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002626/1.465, allocations: 0 / 0.8275 GB, free: 24.67 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002833/1.465, allocations: 0.5974 MB / 0.8281 GB, free: 24.14 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002299/1.467, allocations: 1.925 MB / 0.8299 GB, free: 22.43 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003611/1.471, allocations: 6.303 MB / 0.8361 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004167/1.475, allocations: 3.501 MB / 0.8395 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.394e-05/1.475, allocations: 44 kB / 0.8396 GB, free: 11.19 MB / 0.4948 GB Notification: Performance of matching and sorting (n=887) (initialization): time 0.01511/1.49, allocations: 7.528 MB / 0.8469 GB, free: 4.582 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.264e-05/1.491, allocations: 7.906 kB / 0.8469 GB, free: 4.574 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002794/1.491, allocations: 160 kB / 0.8471 GB, free: 4.418 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00185/1.493, allocations: 0.6025 MB / 0.8477 GB, free: 3.898 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006235/1.499, allocations: 1.53 MB / 0.8492 GB, free: 2.547 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007323/1.506, allocations: 5.419 MB / 0.8545 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006486/1.513, allocations: 202.6 kB / 0.8546 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001335/1.514, allocations: 427.3 kB / 0.8551 GB, free: 12.79 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 721 * Number of states: 0 () * Number of discrete variables: 49 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (835): * Single equations (assignments): 830 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001103/1.515, allocations: 0.491 MB / 0.8555 GB, free: 12.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009674/1.516, allocations: 398.8 kB / 0.8559 GB, free: 11.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005503/1.522, allocations: 2.293 MB / 0.8582 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.935e-05/1.522, allocations: 16.56 kB / 0.8582 GB, free: 10 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/1.522, allocations: 4 kB / 0.8582 GB, free: 9.996 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.961e-05/1.522, allocations: 10.61 kB / 0.8582 GB, free: 9.992 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01899/1.541, allocations: 6.114 MB / 0.8642 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.669e-05/1.541, allocations: 0.7969 kB / 0.8642 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001582/1.543, allocations: 204.9 kB / 0.8643 GB, free: 4.836 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001653/1.544, allocations: 359.6 kB / 0.8647 GB, free: 4.562 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002253/1.545, allocations: 4.656 kB / 0.8647 GB, free: 4.559 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007537/1.552, allocations: 4.772 MB / 0.8694 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/1.552, allocations: 0 / 0.8694 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008747/1.561, allocations: 4.621 MB / 0.8739 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01129/1.572, allocations: 6.525 MB / 0.8802 GB, free: 4.914 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001873/1.574, allocations: 435.2 kB / 0.8807 GB, free: 4.469 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009169/1.575, allocations: 3.984 kB / 0.8807 GB, free: 4.465 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001974/1.577, allocations: 27.97 kB / 0.8807 GB, free: 4.438 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/1.577, allocations: 72.83 kB / 0.8808 GB, free: 4.367 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/1.578, allocations: 40 kB / 0.8808 GB, free: 4.328 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.006264/1.584, allocations: 2.712 MB / 0.8834 GB, free: 1.621 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009548/1.593, allocations: 0.9414 MB / 0.8844 GB, free: 0.6797 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 108 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.0007597/1.594, allocations: 146 kB / 0.8845 GB, free: 0.5312 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01075/1.605, allocations: 4.715 MB / 0.8891 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.605, allocations: 0.8125 kB / 0.8891 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00276/1.608, allocations: 1.334 MB / 0.8904 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003841/1.612, allocations: 487.2 kB / 0.8909 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02634/1.638, allocations: 8.637 MB / 0.8993 GB, free: 1.312 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2277/1.866, allocations: 4.267 MB / 0.9035 GB, free: 193.4 MB / 0.5417 GB Notification: Performance of SimCode: time 1.042e-06/1.866, allocations: 0 / 0.9035 GB, free: 193.4 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1)