Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.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.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",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.001468/0.001469, allocations: 199.2 kB / 8.541 MB, free: 1.812 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.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009304/0.0009303, allocations: 91.84 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1692/0.1692, allocations: 45.14 MB / 383.3 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1796/0.3489, allocations: 69.38 MB / 452.7 MB, free: 75.97 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07681/0.4257, allocations: 63.24 MB / 0.5039 GB, free: 12.81 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2609/0.6866, allocations: 110.7 MB / 0.612 GB, free: 8.527 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.6869, allocations: 82.28 kB / 0.6121 GB, free: 8.488 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: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.812/1.499, allocations: 290.4 MB / 0.8956 GB, free: 57.29 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/1.499, allocations: 8 kB / 0.8956 GB, free: 57.28 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06787/1.567, allocations: 16.78 MB / 0.912 GB, free: 40.45 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02974/1.597, allocations: 13.29 MB / 0.925 GB, free: 27.17 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004299/1.597, allocations: 464 kB / 0.9254 GB, free: 26.72 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004099/1.601, allocations: 0.8394 MB / 0.9263 GB, free: 25.88 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03326/1.634, allocations: 24.18 MB / 0.9499 GB, free: 1.695 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3192/1.954, allocations: 32.73 MB / 0.9818 GB, free: 102.6 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003978/1.954, allocations: 133.5 kB / 0.982 GB, free: 102.6 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002/1.956, allocations: 57 kB / 0.982 GB, free: 102.6 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003356/1.959, allocations: 3.827 MB / 0.9858 GB, free: 102.6 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1404/2.1, allocations: 135 MB / 1.118 GB, free: 42.66 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01163/2.112, allocations: 10.99 MB / 1.128 GB, free: 37.84 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01022/2.122, allocations: 9.648 MB / 1.138 GB, free: 33.91 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04788/2.17, allocations: 34.59 MB / 1.172 GB, free: 7.531 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.653e-05/2.17, allocations: 97.95 kB / 1.172 GB, free: 7.426 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=705): time 9.328e-06/2.17, allocations: 0 / 1.172 GB, free: 7.426 MB / 0.5418 GB Notification: Performance of matching and sorting (n=776): time 0.2742/2.444, allocations: 65.7 MB / 1.236 GB, free: 115.9 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.193e-05/2.444, allocations: 306 kB / 1.236 GB, free: 115.6 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01091/2.455, allocations: 8.613 MB / 1.245 GB, free: 114.8 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0009917/2.456, allocations: 25.7 kB / 1.245 GB, free: 114.8 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.003503/2.46, allocations: 9.021 MB / 1.253 GB, free: 109.2 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.002645/2.462, allocations: 2.738 MB / 1.256 GB, free: 107.6 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008324/2.463, allocations: 0 / 1.256 GB, free: 107.6 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0007922/2.464, allocations: 1.118 MB / 1.257 GB, free: 107.2 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009015/2.473, allocations: 7.773 MB / 1.265 GB, free: 107.2 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01215/2.485, allocations: 17.72 MB / 1.282 GB, free: 91.52 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01443/2.499, allocations: 11.91 MB / 1.294 GB, free: 87.99 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001854/2.5, allocations: 100.1 kB / 1.294 GB, free: 87.99 MB / 0.5418 GB Notification: Performance of matching and sorting (n=2441) (initialization): time 0.03795/2.538, allocations: 25.32 MB / 1.318 GB, free: 79.62 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/2.538, allocations: 4.938 kB / 1.318 GB, free: 79.61 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002953/2.538, allocations: 355.9 kB / 1.319 GB, free: 79.27 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006239/2.544, allocations: 2.314 MB / 1.321 GB, free: 77.43 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01447/2.559, allocations: 4.218 MB / 1.325 GB, free: 73.77 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01561/2.574, allocations: 12.87 MB / 1.338 GB, free: 62.26 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01281/2.587, allocations: 0.5913 MB / 1.338 GB, free: 61.77 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00223/2.589, allocations: 1.028 MB / 1.339 GB, free: 60.76 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1597 * Number of states: 0 () * Number of discrete variables: 97 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[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],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2245): * Single equations (assignments): 2228 * Array equations: 15 * 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 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002259/2.592, allocations: 0.9858 MB / 1.34 GB, free: 59.77 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/2.593, allocations: 0.9563 MB / 1.341 GB, free: 58.8 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02129/2.614, allocations: 14.6 MB / 1.355 GB, free: 46.48 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001637/2.614, allocations: 137.5 kB / 1.356 GB, free: 46.36 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-05/2.614, allocations: 16 kB / 1.356 GB, free: 46.34 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.895e-05/2.615, allocations: 30.98 kB / 1.356 GB, free: 46.34 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2094/2.824, allocations: 30.22 MB / 1.385 GB, free: 105.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.187e-05/2.824, allocations: 0 / 1.385 GB, free: 105.8 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006467/2.83, allocations: 1.167 MB / 1.386 GB, free: 105.8 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005929/2.836, allocations: 1.71 MB / 1.388 GB, free: 105.8 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001005/2.837, allocations: 16.97 kB / 1.388 GB, free: 105.8 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01462/2.852, allocations: 11.7 MB / 1.399 GB, free: 103.3 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/2.852, allocations: 0 / 1.399 GB, free: 103.3 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03006/2.882, allocations: 23.95 MB / 1.423 GB, free: 102.4 MB / 0.5418 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03843/2.921, allocations: 33.66 MB / 1.456 GB, free: 90.54 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002233/2.923, allocations: 0.919 MB / 1.457 GB, free: 90.41 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001976/2.925, allocations: 3.875 kB / 1.457 GB, free: 90.41 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004508/2.929, allocations: 265.2 kB / 1.457 GB, free: 90.41 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008719/2.93, allocations: 315 kB / 1.457 GB, free: 90.36 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006441/2.931, allocations: 168.5 kB / 1.457 GB, free: 90.32 MB / 0.5418 GB Notification: Performance of sort global known variables: time 0.007826/2.939, allocations: 5.773 MB / 1.463 GB, free: 88.36 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01297/2.952, allocations: 2.871 MB / 1.466 GB, free: 88.36 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (600): * Single equations (assignments): 583 * Array equations: 15 * 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 {(1,100.0%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008738/2.953, allocations: 185 kB / 1.466 GB, free: 88.27 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.02317/2.976, allocations: 18.44 MB / 1.484 GB, free: 77.48 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/2.976, allocations: 0 / 1.484 GB, free: 77.48 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.00893/2.985, allocations: 7.028 MB / 1.491 GB, free: 71.19 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004641/2.989, allocations: 0.9122 MB / 1.492 GB, free: 70.42 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0469/3.036, allocations: 28.46 MB / 1.519 GB, free: 44.97 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01765/3.054, allocations: 11.08 MB / 1.53 GB, free: 36.78 MB / 0.5418 GB Notification: Performance of SimCode: time 9.72e-07/3.054, allocations: 2.812 kB / 1.53 GB, free: 36.78 MB / 0.5418 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1)