Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute",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.001973/0.001973, 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.25/1.25, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009098/0.0009099, allocations: 94.36 kB / 286.3 MB, free: 5.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1694/0.1694, allocations: 45.14 MB / 383.3 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1889/0.3583, allocations: 69.38 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07946/0.4378, allocations: 63.23 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2613/0.6991, allocations: 103.9 MB / 0.6053 GB, free: 15.11 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000183/0.6993, allocations: 74.47 kB / 0.6054 GB, free: 15.07 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.2212/0.9205, allocations: 87.81 MB / 0.6912 GB, free: 15.45 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.9206, allocations: 16 kB / 0.6912 GB, free: 15.43 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01281/0.9334, allocations: 2.787 MB / 0.6939 GB, free: 12.63 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008407/0.9418, allocations: 3.48 MB / 0.6973 GB, free: 9.102 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/0.942, allocations: 120 kB / 0.6974 GB, free: 8.984 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001103/0.9431, allocations: 216 kB / 0.6976 GB, free: 8.773 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01051/0.9537, allocations: 7.321 MB / 0.7048 GB, free: 1.449 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01313/0.9668, allocations: 9.484 MB / 0.714 GB, free: 7.539 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.686e-05/0.9669, allocations: 35.73 kB / 0.7141 GB, free: 7.504 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005067/0.9674, allocations: 12 kB / 0.7141 GB, free: 7.492 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001435/0.9689, allocations: 1.246 MB / 0.7153 GB, free: 6.246 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04269/1.012, allocations: 32.72 MB / 0.7472 GB, free: 4.926 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00484/1.016, allocations: 4.295 MB / 0.7514 GB, free: 412 kB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.1293/1.146, allocations: 2.38 MB / 0.7538 GB, free: 204.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01164/1.157, allocations: 10.11 MB / 0.7636 GB, free: 200.4 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.027e-05/1.157, allocations: 48.31 kB / 0.7637 GB, free: 200.3 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=186): time 3.928e-06/1.157, allocations: 0 / 0.7637 GB, free: 200.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=201): time 0.01982/1.177, allocations: 11.81 MB / 0.7752 GB, free: 199.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.461e-05/1.177, allocations: 70.05 kB / 0.7753 GB, free: 199.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002846/1.18, allocations: 2.453 MB / 0.7777 GB, free: 199.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001291/1.18, allocations: 25.7 kB / 0.7777 GB, free: 199.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009283/1.181, allocations: 2.731 MB / 0.7804 GB, free: 197.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004328/1.182, allocations: 0.7234 MB / 0.7811 GB, free: 197.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/1.182, allocations: 6.594 kB / 0.7811 GB, free: 197.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002702/1.182, allocations: 0.6048 MB / 0.7817 GB, free: 196.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002389/1.185, allocations: 2.183 MB / 0.7838 GB, free: 196.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003237/1.188, allocations: 5.257 MB / 0.7889 GB, free: 192.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003494/1.191, allocations: 3.435 MB / 0.7923 GB, free: 192.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.124e-05/1.191, allocations: 35.5 kB / 0.7923 GB, free: 192.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=731) (initialization): time 0.01014/1.202, allocations: 7.427 MB / 0.7996 GB, free: 190.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/1.202, allocations: 8.094 kB / 0.7996 GB, free: 190.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.469e-05/1.202, allocations: 109.9 kB / 0.7997 GB, free: 190.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002172/1.204, allocations: 0.7605 MB / 0.8004 GB, free: 190.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00374/1.208, allocations: 1.227 MB / 0.8016 GB, free: 190.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004491/1.212, allocations: 3.929 MB / 0.8055 GB, free: 188.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003225/1.215, allocations: 160.2 kB / 0.8056 GB, free: 188.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004147/1.216, allocations: 324.6 kB / 0.8059 GB, free: 188.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 497 * Number of states: 0 () * Number of discrete variables: 29 (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 (671): * Single equations (assignments): 664 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005388/1.216, allocations: 387.9 kB / 0.8063 GB, free: 188.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002879/1.217, allocations: 254.5 kB / 0.8065 GB, free: 188 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006449/1.223, allocations: 4.166 MB / 0.8106 GB, free: 186.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.734e-05/1.223, allocations: 37.89 kB / 0.8106 GB, free: 186.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/1.223, allocations: 6.969 kB / 0.8106 GB, free: 186.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/1.223, allocations: 6.844 kB / 0.8107 GB, free: 186.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01252/1.236, allocations: 8.036 MB / 0.8185 GB, free: 182 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/1.236, allocations: 7.562 kB / 0.8185 GB, free: 182 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001442/1.237, allocations: 276.2 kB / 0.8188 GB, free: 181.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002047/1.239, allocations: 0.5827 MB / 0.8193 GB, free: 181.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001536/1.239, allocations: 4 kB / 0.8193 GB, free: 181.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003868/1.243, allocations: 3.426 MB / 0.8227 GB, free: 178.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/1.243, allocations: 0 / 0.8227 GB, free: 178.3 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00764/1.251, allocations: 6.385 MB / 0.8289 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009893/1.261, allocations: 9.153 MB / 0.8379 GB, free: 164.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004394/1.261, allocations: 308.5 kB / 0.8382 GB, free: 164.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004228/1.262, allocations: 0 / 0.8382 GB, free: 164.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/1.263, allocations: 57.12 kB / 0.8382 GB, free: 164.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/1.263, allocations: 81.59 kB / 0.8383 GB, free: 164.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001716/1.263, allocations: 47.94 kB / 0.8383 GB, free: 164.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001948/1.265, allocations: 1.615 MB / 0.8399 GB, free: 162.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004152/1.269, allocations: 0.832 MB / 0.8407 GB, free: 162 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 139 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003639/1.27, allocations: 142.1 kB / 0.8409 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005339/1.275, allocations: 5.128 MB / 0.8459 GB, free: 157.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.275, allocations: 0 / 0.8459 GB, free: 157.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001805/1.277, allocations: 1.809 MB / 0.8476 GB, free: 155.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008375/1.278, allocations: 213.6 kB / 0.8478 GB, free: 155.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/1.288, allocations: 7.473 MB / 0.8551 GB, free: 148.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003627/1.292, allocations: 3.486 MB / 0.8585 GB, free: 146 MB / 0.5261 GB Notification: Performance of SimCode: time 4.51e-07/1.292, allocations: 4 kB / 0.8585 GB, free: 146 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1)