Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.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.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",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.001608/0.001608, allocations: 202.3 kB / 8.541 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001027/0.001027, allocations: 91.89 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.201/0.201, allocations: 45.14 MB / 383.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1956/0.3967, allocations: 69.37 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0822/0.4789, allocations: 63.25 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2759/0.7548, allocations: 107 MB / 0.6084 GB, free: 11.96 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/0.7551, allocations: 77.89 kB / 0.6085 GB, free: 11.92 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: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.3581/1.113, allocations: 136 MB / 0.7413 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/1.113, allocations: 11.94 kB / 0.7413 GB, free: 11.79 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02537/1.139, allocations: 5.576 MB / 0.7467 GB, free: 6.195 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2011/1.34, allocations: 7.112 MB / 0.7537 GB, free: 94.66 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002269/1.34, allocations: 182.6 kB / 0.7539 GB, free: 94.66 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002256/1.342, allocations: 342.2 kB / 0.7542 GB, free: 94.66 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01565/1.358, allocations: 10.83 MB / 0.7648 GB, free: 94.63 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02208/1.38, allocations: 13.94 MB / 0.7784 GB, free: 92.67 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002526/1.38, allocations: 62.59 kB / 0.7784 GB, free: 92.67 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00136/1.382, allocations: 18.5 kB / 0.7785 GB, free: 92.67 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002127/1.384, allocations: 1.777 MB / 0.7802 GB, free: 92.65 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06843/1.452, allocations: 54.23 MB / 0.8332 GB, free: 70.27 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006814/1.459, allocations: 5.785 MB / 0.8388 GB, free: 68.07 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006293/1.466, allocations: 5.138 MB / 0.8438 GB, free: 66.01 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02744/1.493, allocations: 18.2 MB / 0.8616 GB, free: 55.96 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/1.493, allocations: 66.23 kB / 0.8617 GB, free: 55.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=336): time 6.052e-06/1.493, allocations: 0 / 0.8617 GB, free: 55.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=389): time 0.06682/1.56, allocations: 33.73 MB / 0.8946 GB, free: 29.94 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/1.56, allocations: 123.1 kB / 0.8947 GB, free: 29.81 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004807/1.565, allocations: 3.698 MB / 0.8983 GB, free: 26.64 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006593/1.566, allocations: 25.7 kB / 0.8984 GB, free: 26.61 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001378/1.567, allocations: 3.662 MB / 0.9019 GB, free: 23.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001276/1.568, allocations: 1.361 MB / 0.9033 GB, free: 22.17 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004667/1.569, allocations: 0 / 0.9033 GB, free: 22.17 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003399/1.569, allocations: 0.648 MB / 0.9039 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004716/1.574, allocations: 3.898 MB / 0.9077 GB, free: 18.15 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006322/1.58, allocations: 7.849 MB / 0.9154 GB, free: 9.082 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007138/1.587, allocations: 5.573 MB / 0.9208 GB, free: 4.578 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.755e-05/1.587, allocations: 40 kB / 0.9208 GB, free: 4.539 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1056) (initialization): time 0.02523/1.613, allocations: 13.27 MB / 0.9338 GB, free: 9.438 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/1.613, allocations: 8 kB / 0.9338 GB, free: 9.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001714/1.613, allocations: 136 kB / 0.9339 GB, free: 9.297 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008428/1.621, allocations: 2.426 MB / 0.9363 GB, free: 7.574 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008548/1.63, allocations: 1.9 MB / 0.9382 GB, free: 5.969 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0212/1.651, allocations: 12.63 MB / 0.9505 GB, free: 11.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006841/1.658, allocations: 255.1 kB / 0.9507 GB, free: 11.21 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001496/1.659, allocations: 449 kB / 0.9512 GB, free: 10.79 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 630 * Number of states: 0 () * Number of discrete variables: 50 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (959): * Single equations (assignments): 951 * Array equations: 6 * 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 {(6,69.4%) 32,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00137/1.661, allocations: 477.1 kB / 0.9516 GB, free: 10.32 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008281/1.662, allocations: 446.2 kB / 0.952 GB, free: 9.879 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01877/1.68, allocations: 9.533 MB / 0.9614 GB, free: 0.6836 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001008/1.681, allocations: 59.55 kB / 0.9614 GB, free: 0.6289 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.169e-05/1.681, allocations: 8 kB / 0.9614 GB, free: 0.6211 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.118e-05/1.681, allocations: 15.94 kB / 0.9614 GB, free: 0.6055 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1869/1.868, allocations: 17.63 MB / 0.9787 GB, free: 193.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.552e-05/1.868, allocations: 4.734 kB / 0.9787 GB, free: 193.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003853/1.872, allocations: 0.6468 MB / 0.9793 GB, free: 193.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007214/1.879, allocations: 2.189 MB / 0.9814 GB, free: 193.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006923/1.879, allocations: 14.7 kB / 0.9814 GB, free: 193.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01442/1.894, allocations: 11.36 MB / 0.9925 GB, free: 190.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/1.894, allocations: 14.38 kB / 0.9926 GB, free: 190.8 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02087/1.915, allocations: 14.58 MB / 1.007 GB, free: 189.6 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02578/1.941, allocations: 20 MB / 1.026 GB, free: 183.5 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/1.942, allocations: 478.8 kB / 1.027 GB, free: 183.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001123/1.943, allocations: 7.875 kB / 1.027 GB, free: 183.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002675/1.946, allocations: 152.7 kB / 1.027 GB, free: 183.3 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005004/1.946, allocations: 170.5 kB / 1.027 GB, free: 183.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003674/1.947, allocations: 103.2 kB / 1.027 GB, free: 183.2 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.003455/1.95, allocations: 2.51 MB / 1.03 GB, free: 182.3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006903/1.957, allocations: 1.428 MB / 1.031 GB, free: 182.3 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.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 (306): * Single equations (assignments): 298 * Array equations: 6 * 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 {(6,69.4%) 29,(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006408/1.958, allocations: 170.4 kB / 1.031 GB, free: 182.2 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01354/1.971, allocations: 9.375 MB / 1.04 GB, free: 179.4 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/1.971, allocations: 0 / 1.04 GB, free: 179.4 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005554/1.977, allocations: 3.966 MB / 1.044 GB, free: 176.5 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002806/1.98, allocations: 479.4 kB / 1.045 GB, free: 176.1 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0228/2.003, allocations: 12.83 MB / 1.057 GB, free: 164.9 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006599/2.009, allocations: 5.022 MB / 1.062 GB, free: 161.1 MB / 0.5573 GB Notification: Performance of SimCode: time 6.71e-07/2.009, allocations: 0 / 1.062 GB, free: 161.1 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1)