Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.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.FrameTorques2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_FrameTorques2",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.001751/0.001751, allocations: 199.5 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 225.5 MB / 234.4 MB, free: 3.367 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009188/0.0009188, allocations: 86.09 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.173/0.173, allocations: 45.14 MB / 383.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1888/0.3619, allocations: 69.37 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08161/0.4435, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2661/0.7097, allocations: 107.1 MB / 0.6084 GB, free: 12.01 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/0.7099, allocations: 73.84 kB / 0.6085 GB, free: 11.98 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: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.5832/1.293, allocations: 164 MB / 0.7687 GB, free: 97.18 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/1.293, allocations: 11.56 kB / 0.7687 GB, free: 97.18 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04348/1.337, allocations: 11.51 MB / 0.78 GB, free: 96.64 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.021/1.358, allocations: 9.151 MB / 0.7889 GB, free: 95.65 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000258/1.358, allocations: 248.8 kB / 0.7891 GB, free: 95.65 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002191/1.36, allocations: 469.8 kB / 0.7896 GB, free: 95.64 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01596/1.376, allocations: 10.52 MB / 0.7999 GB, free: 95.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02536/1.402, allocations: 15.84 MB / 0.8153 GB, free: 91.67 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003244/1.402, allocations: 105.7 kB / 0.8154 GB, free: 91.66 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001311/1.403, allocations: 43.31 kB / 0.8155 GB, free: 91.66 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00175/1.405, allocations: 1.687 MB / 0.8171 GB, free: 91.64 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07/1.475, allocations: 74.8 MB / 0.8902 GB, free: 41.59 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006719/1.482, allocations: 5.591 MB / 0.8956 GB, free: 38.95 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004105/1.486, allocations: 3.914 MB / 0.8994 GB, free: 35.62 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01679/1.503, allocations: 12.38 MB / 0.9115 GB, free: 24.66 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/1.503, allocations: 65 kB / 0.9116 GB, free: 24.59 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=225): time 4.909e-06/1.503, allocations: 0 / 0.9116 GB, free: 24.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=253): time 0.05068/1.554, allocations: 27.74 MB / 0.9387 GB, free: 80 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/1.554, allocations: 285.6 kB / 0.939 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007232/1.561, allocations: 5.218 MB / 0.944 GB, free: 11.15 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002881/1.561, allocations: 25.7 kB / 0.9441 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0026/1.564, allocations: 4.816 MB / 0.9488 GB, free: 6.816 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001007/1.565, allocations: 0.9518 MB / 0.9497 GB, free: 5.965 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003265/1.565, allocations: 0 / 0.9497 GB, free: 5.965 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0004319/1.566, allocations: 0.6746 MB / 0.9504 GB, free: 5.387 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003855/1.57, allocations: 2.775 MB / 0.9531 GB, free: 2.91 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2776/1.847, allocations: 8.105 MB / 0.961 GB, free: 157.2 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005706/1.853, allocations: 4.729 MB / 0.9656 GB, free: 157.2 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-05/1.853, allocations: 53.94 kB / 0.9657 GB, free: 157.2 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.01698/1.87, allocations: 10.41 MB / 0.9758 GB, free: 157.1 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/1.87, allocations: 7.5 kB / 0.9758 GB, free: 157.1 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002393/1.87, allocations: 191.9 kB / 0.976 GB, free: 157.1 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002355/1.873, allocations: 1.029 MB / 0.977 GB, free: 157 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006432/1.879, allocations: 1.969 MB / 0.9789 GB, free: 156.9 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/1.889, allocations: 10.61 MB / 0.9893 GB, free: 151.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006532/1.896, allocations: 262 kB / 0.9896 GB, free: 151.7 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001386/1.897, allocations: 0.5249 MB / 0.9901 GB, free: 151.7 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 871 * Number of states: 0 () * Number of discrete variables: 74 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.arrow.arrowLine.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.arrow.arrowLine.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],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],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 (1052): * Single equations (assignments): 1045 * 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%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001374/1.898, allocations: 0.5882 MB / 0.9906 GB, free: 151.5 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009869/1.899, allocations: 0.5394 MB / 0.9912 GB, free: 151.5 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006945/1.906, allocations: 4.399 MB / 0.9955 GB, free: 151.3 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.995e-05/1.907, allocations: 23.72 kB / 0.9955 GB, free: 151.3 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.699e-05/1.907, allocations: 10 kB / 0.9955 GB, free: 151.3 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.56e-05/1.907, allocations: 14.72 kB / 0.9955 GB, free: 151.3 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01896/1.926, allocations: 10.72 MB / 1.006 GB, free: 150.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/1.926, allocations: 0 / 1.006 GB, free: 150.7 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0022/1.928, allocations: 388 kB / 1.006 GB, free: 150.7 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001932/1.93, allocations: 0.696 MB / 1.007 GB, free: 150.7 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002212/1.93, allocations: 7.656 kB / 1.007 GB, free: 150.7 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008665/1.939, allocations: 9.508 MB / 1.016 GB, free: 145.6 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/1.939, allocations: 3.438 kB / 1.016 GB, free: 145.6 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009683/1.948, allocations: 7.721 MB / 1.024 GB, free: 144.9 MB / 0.5418 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01192/1.96, allocations: 10.79 MB / 1.034 GB, free: 141.8 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00136/1.962, allocations: 0.5646 MB / 1.035 GB, free: 141.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008924/1.963, allocations: 7.141 kB / 1.035 GB, free: 141.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002158/1.965, allocations: 80.66 kB / 1.035 GB, free: 141.4 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002808/1.965, allocations: 113.8 kB / 1.035 GB, free: 141.3 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002079/1.965, allocations: 66.12 kB / 1.035 GB, free: 141.3 MB / 0.5418 GB Notification: Performance of sort global known variables: time 0.005207/1.971, allocations: 3.569 MB / 1.039 GB, free: 140.1 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.008875/1.979, allocations: 1.413 MB / 1.04 GB, free: 140.1 MB / 0.5418 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 (193): * Single equations (assignments): 186 * 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%) 11,(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.0005411/1.98, allocations: 155.5 kB / 1.04 GB, free: 139.9 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.009338/1.989, allocations: 7.016 MB / 1.047 GB, free: 137.4 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/1.989, allocations: 4.406 kB / 1.047 GB, free: 137.4 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.003303/1.993, allocations: 2.419 MB / 1.049 GB, free: 136.3 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004335/1.997, allocations: 0.7385 MB / 1.05 GB, free: 136 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02693/2.024, allocations: 13.08 MB / 1.063 GB, free: 129.5 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008865/2.033, allocations: 5.987 MB / 1.069 GB, free: 125.1 MB / 0.5418 GB Notification: Performance of SimCode: time 1.834e-06/2.033, allocations: 0 / 1.069 GB, free: 125.1 MB / 0.5418 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_FrameTorques2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_FrameTorques2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1)