Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint",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 3.2.3+maint.om/package.mo): time 0.001506/0.001506, allocations: 183.3 kB / 7.802 MB, free: 2.328 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.439/1.439, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001189/0.001189, allocations: 89.86 kB / 261.4 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1999/0.1999, allocations: 43.48 MB / 352.8 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2159/0.4159, allocations: 64.98 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.7611, allocations: 58.83 MB / 476.6 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1625/0.9237, allocations: 109.6 MB / 0.5725 GB, free: 5.297 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002921/0.924, allocations: 83.33 kB / 0.5726 GB, free: 5.219 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: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.7008/1.625, allocations: 166.7 MB / 0.7353 GB, free: 70.53 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.401e-05/1.625, allocations: 12 kB / 0.7354 GB, free: 70.52 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04083/1.666, allocations: 9.055 MB / 0.7442 GB, free: 61.44 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02386/1.69, allocations: 8.5 MB / 0.7525 GB, free: 52.91 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000623/1.69, allocations: 272 kB / 0.7528 GB, free: 52.65 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00502/1.696, allocations: 491.9 kB / 0.7532 GB, free: 52.17 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02624/1.722, allocations: 13.44 MB / 0.7664 GB, free: 38.72 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05143/1.773, allocations: 19.13 MB / 0.785 GB, free: 18.13 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000845/1.774, allocations: 91.22 kB / 0.7851 GB, free: 18.04 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005798/1.78, allocations: 48 kB / 0.7852 GB, free: 17.99 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003082/1.783, allocations: 2.239 MB / 0.7874 GB, free: 15.75 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4495/2.233, allocations: 82.32 MB / 0.8677 GB, free: 109.1 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009788/2.242, allocations: 6.516 MB / 0.8741 GB, free: 108.5 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007407/2.25, allocations: 5.279 MB / 0.8793 GB, free: 108.4 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02732/2.277, allocations: 14.83 MB / 0.8937 GB, free: 106.6 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.574e-05/2.277, allocations: 73.91 kB / 0.8938 GB, free: 106.6 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=422): time 8.646e-06/2.277, allocations: 2.625 kB / 0.8938 GB, free: 106.6 MB / 0.4949 GB Notification: Performance of matching and sorting (n=487): time 0.08876/2.366, allocations: 39.36 MB / 0.9323 GB, free: 92.59 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/2.366, allocations: 220.3 kB / 0.9325 GB, free: 92.37 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01257/2.379, allocations: 5.419 MB / 0.9378 GB, free: 90.46 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001317/2.38, allocations: 29.11 kB / 0.9378 GB, free: 90.43 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.005684/2.386, allocations: 5.514 MB / 0.9432 GB, free: 86.2 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003204/2.389, allocations: 1.73 MB / 0.9449 GB, free: 84.9 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001421/2.391, allocations: 0 / 0.9449 GB, free: 84.9 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001013/2.392, allocations: 0.8268 MB / 0.9457 GB, free: 84.37 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009075/2.401, allocations: 5.073 MB / 0.9506 GB, free: 81.89 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01483/2.416, allocations: 11.6 MB / 0.9619 GB, free: 68.03 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0127/2.428, allocations: 7.746 MB / 0.9695 GB, free: 61.84 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000265/2.429, allocations: 64 kB / 0.9696 GB, free: 61.78 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1572) (initialization): time 0.03957/2.468, allocations: 16.63 MB / 0.9858 GB, free: 47.48 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/2.468, allocations: 4 kB / 0.9858 GB, free: 47.48 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008033/2.469, allocations: 228 kB / 0.986 GB, free: 47.26 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005314/2.475, allocations: 1.665 MB / 0.9877 GB, free: 45.93 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01212/2.487, allocations: 2.69 MB / 0.9903 GB, free: 43.58 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01542/2.502, allocations: 12.92 MB / 1.003 GB, free: 31.39 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01323/2.516, allocations: 386.2 kB / 1.003 GB, free: 31.07 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004639/2.52, allocations: 0.6693 MB / 1.004 GB, free: 30.41 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1051 * Number of states: 0 () * Number of discrete variables: 51 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1448): * Single equations (assignments): 1435 * Array equations: 9 * 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%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005532/2.526, allocations: 0.6785 MB / 1.005 GB, free: 29.73 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00246/2.528, allocations: 0.5936 MB / 1.005 GB, free: 29.13 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02025/2.549, allocations: 9.471 MB / 1.014 GB, free: 21.14 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000232/2.549, allocations: 75.27 kB / 1.014 GB, free: 21.07 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.736e-05/2.549, allocations: 8 kB / 1.015 GB, free: 21.06 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001119/2.549, allocations: 22.14 kB / 1.015 GB, free: 21.06 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04161/2.591, allocations: 19.19 MB / 1.033 GB, free: 5.02 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.051e-05/2.591, allocations: 11.84 kB / 1.033 GB, free: 5.012 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00445/2.595, allocations: 0.6992 MB / 1.034 GB, free: 4.426 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004051/2.599, allocations: 1.282 MB / 1.035 GB, free: 3.469 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001033/2.6, allocations: 15.14 kB / 1.035 GB, free: 3.457 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2448/2.845, allocations: 11.77 MB / 1.047 GB, free: 134.1 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.849e-06/2.845, allocations: 9.125 kB / 1.047 GB, free: 134.1 MB / 0.4949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02633/2.872, allocations: 16.67 MB / 1.063 GB, free: 132.2 MB / 0.4949 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.033/2.905, allocations: 23.01 MB / 1.085 GB, free: 127.2 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005476/2.91, allocations: 1.389 MB / 1.087 GB, free: 126.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002789/2.913, allocations: 14.77 kB / 1.087 GB, free: 126.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005412/2.918, allocations: 152.7 kB / 1.087 GB, free: 126.8 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001233/2.92, allocations: 225.5 kB / 1.087 GB, free: 126.8 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004164/2.92, allocations: 113 kB / 1.087 GB, free: 126.8 MB / 0.4949 GB Notification: Performance of sort global known variables: time 0.008905/2.929, allocations: 3.621 MB / 1.091 GB, free: 125.5 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01626/2.945, allocations: 1.783 MB / 1.093 GB, free: 125.5 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (373): * Single equations (assignments): 360 * Array equations: 9 * 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%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001731/2.947, allocations: 183.8 kB / 1.093 GB, free: 125.4 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02042/2.968, allocations: 12.2 MB / 1.105 GB, free: 121.5 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.339e-05/2.968, allocations: 1.156 kB / 1.105 GB, free: 121.5 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01045/2.978, allocations: 4.823 MB / 1.109 GB, free: 119.6 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004942/2.983, allocations: 0.5287 MB / 1.11 GB, free: 119.3 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04539/3.028, allocations: 17.49 MB / 1.127 GB, free: 111.7 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01631/3.045, allocations: 6.803 MB / 1.134 GB, free: 106.6 MB / 0.4949 GB Notification: Performance of SimCode: time 1.352e-06/3.045, allocations: 0 / 1.134 GB, free: 106.6 MB / 0.4949 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1)