Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.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.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",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.002038/0.002038, allocations: 205.6 kB / 8.54 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.263/1.263, allocations: 225.5 MB / 234.4 MB, free: 3.438 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001001/0.001, allocations: 92.25 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1795/0.1795, allocations: 45.15 MB / 383.3 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1994/0.3789, allocations: 69.37 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08582/0.4647, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2804/0.7451, allocations: 106.6 MB / 0.6079 GB, free: 12.76 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001972/0.7454, allocations: 77.39 kB / 0.608 GB, free: 12.72 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.3191/1.064, allocations: 120.5 MB / 0.7257 GB, free: 12.34 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/1.065, allocations: 8 kB / 0.7257 GB, free: 12.33 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03963/1.104, allocations: 10.03 MB / 0.7355 GB, free: 2.27 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02077/1.125, allocations: 8.388 MB / 0.7437 GB, free: 9.809 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003088/1.125, allocations: 222.6 kB / 0.7439 GB, free: 9.582 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001886/1.127, allocations: 287.7 kB / 0.7442 GB, free: 9.301 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01139/1.139, allocations: 6.623 MB / 0.7507 GB, free: 2.672 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1552/1.294, allocations: 9.195 MB / 0.7597 GB, free: 178.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000216/1.294, allocations: 64.73 kB / 0.7597 GB, free: 178.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005863/1.295, allocations: 19.22 kB / 0.7597 GB, free: 178.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001326/1.296, allocations: 1.083 MB / 0.7608 GB, free: 178.4 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04892/1.345, allocations: 44.93 MB / 0.8047 GB, free: 160.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006376/1.351, allocations: 5.86 MB / 0.8104 GB, free: 159 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005121/1.357, allocations: 5.45 MB / 0.8157 GB, free: 156.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01736/1.374, allocations: 13.93 MB / 0.8293 GB, free: 150 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/1.374, allocations: 61.62 kB / 0.8294 GB, free: 149.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=286): time 5.901e-06/1.374, allocations: 2.156 kB / 0.8294 GB, free: 149.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=396): time 0.13/1.504, allocations: 52.46 MB / 0.8806 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/1.504, allocations: 201.2 kB / 0.8808 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004288/1.508, allocations: 3.237 MB / 0.884 GB, free: 116 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007998/1.509, allocations: 25.7 kB / 0.884 GB, free: 116 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009075/1.51, allocations: 2.339 MB / 0.8863 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001361/1.512, allocations: 1.321 MB / 0.8876 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004199/1.512, allocations: 0 / 0.8876 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002105/1.512, allocations: 0.5229 MB / 0.8881 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004478/1.517, allocations: 4.055 MB / 0.892 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005263/1.522, allocations: 6.055 MB / 0.898 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005851/1.528, allocations: 5.036 MB / 0.9029 GB, free: 98.04 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.867e-05/1.528, allocations: 20 kB / 0.9029 GB, free: 98.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=702) (initialization): time 0.03394/1.562, allocations: 16.55 MB / 0.919 GB, free: 83.32 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/1.562, allocations: 4 kB / 0.9191 GB, free: 83.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.578e-05/1.562, allocations: 64 kB / 0.9191 GB, free: 83.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02473/1.587, allocations: 7.862 MB / 0.9268 GB, free: 75.37 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004009/1.591, allocations: 0.9827 MB / 0.9278 GB, free: 74.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05673/1.648, allocations: 42.76 MB / 0.9695 GB, free: 31.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005612/1.653, allocations: 263.6 kB / 0.9698 GB, free: 31.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009708/1.654, allocations: 275.9 kB / 0.97 GB, free: 30.84 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 57 (fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (512): * Single equations (assignments): 507 * Array equations: 2 * 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: 2 {(14,44.4%) 101,(2,100.0%) 24} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.001073/1.655, allocations: 320.1 kB / 0.9703 GB, free: 30.52 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008504/1.656, allocations: 454.3 kB / 0.9708 GB, free: 30.07 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03122/1.687, allocations: 15.73 MB / 0.9861 GB, free: 14.35 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1688/1.856, allocations: 14.43 MB / 1 GB, free: 162.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.604e-05/1.856, allocations: 27.25 kB / 1 GB, free: 162.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-05/1.856, allocations: 18.47 kB / 1 GB, free: 162.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05779/1.914, allocations: 31.8 MB / 1.031 GB, free: 159.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.693e-05/1.914, allocations: 6.75 kB / 1.031 GB, free: 159.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002151/1.916, allocations: 391.5 kB / 1.032 GB, free: 159.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02335/1.94, allocations: 7.569 MB / 1.039 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008807/1.941, allocations: 16.89 kB / 1.039 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05597/1.997, allocations: 42.29 MB / 1.08 GB, free: 145.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01325/2.01, allocations: 8.666 MB / 1.089 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03742/2.047, allocations: 21.8 MB / 1.11 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04294/2.09, allocations: 28.61 MB / 1.138 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/2.092, allocations: 489.2 kB / 1.139 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00123/2.093, allocations: 14.64 kB / 1.139 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003397/2.096, allocations: 177.8 kB / 1.139 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007163/2.097, allocations: 203.7 kB / 1.139 GB, free: 99.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004675/2.097, allocations: 99.7 kB / 1.139 GB, free: 99.88 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003029/2.1, allocations: 2.342 MB / 1.141 GB, free: 97.82 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006352/2.107, allocations: 1.616 MB / 1.143 GB, free: 96.21 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],revolute3.phi,revolute2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 204 * Array equations: 0 * 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: 2 {(12,51.4%) 96,(4,100.0%) 37} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005302/2.107, allocations: 133.9 kB / 1.143 GB, free: 96.11 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01539/2.123, allocations: 10.73 MB / 1.154 GB, free: 86.62 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/2.123, allocations: 0 / 1.154 GB, free: 86.62 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01071/2.133, allocations: 5.928 MB / 1.159 GB, free: 81.42 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003516/2.137, allocations: 0.5953 MB / 1.16 GB, free: 80.95 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02338/2.16, allocations: 13.01 MB / 1.173 GB, free: 69.36 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00602/2.166, allocations: 4.41 MB / 1.177 GB, free: 65.05 MB / 0.5261 GB Notification: Performance of SimCode: time 9.32e-07/2.167, allocations: 0 / 1.177 GB, free: 65.05 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1)