Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_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 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 178.6 kB / 8.519 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.188/1.188, allocations: 221.4 MB / 230.3 MB, free: 7.676 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009025/0.0009025, allocations: 95.95 kB / 281.2 MB, free: 5.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1574/0.1574, allocations: 44.14 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1919/0.3494, allocations: 68.03 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08869/0.4381, allocations: 61.91 MB / 0.4942 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.254/0.6921, allocations: 109.1 MB / 0.6007 GB, free: 3.621 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.6923, allocations: 86.75 kB / 0.6008 GB, free: 3.543 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.4244/1.117, allocations: 106 MB / 0.7043 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/1.117, allocations: 13.25 kB / 0.7043 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02522/1.142, allocations: 6.526 MB / 0.7107 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01396/1.156, allocations: 6.556 MB / 0.7171 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001496/1.156, allocations: 165 kB / 0.7173 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001049/1.157, allocations: 313.8 kB / 0.7176 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009357/1.167, allocations: 7.462 MB / 0.7248 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/1.179, allocations: 11.14 MB / 0.7357 GB, free: 99.66 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001631/1.179, allocations: 76.97 kB / 0.7358 GB, free: 99.65 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005388/1.18, allocations: 35.06 kB / 0.7358 GB, free: 99.65 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001097/1.181, allocations: 1.14 MB / 0.7369 GB, free: 99.64 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04275/1.223, allocations: 55.8 MB / 0.7914 GB, free: 59.99 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003935/1.227, allocations: 3.423 MB / 0.7948 GB, free: 58.16 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002708/1.23, allocations: 2.4 MB / 0.7971 GB, free: 57.09 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01101/1.241, allocations: 7.568 MB / 0.8045 GB, free: 52.85 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/1.241, allocations: 49.97 kB / 0.8046 GB, free: 52.8 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=171): time 4.358e-06/1.241, allocations: 0 / 0.8046 GB, free: 52.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=198): time 0.03491/1.276, allocations: 17.69 MB / 0.8218 GB, free: 41.55 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/1.276, allocations: 198.6 kB / 0.822 GB, free: 41.32 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00405/1.28, allocations: 3.632 MB / 0.8256 GB, free: 38.11 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001295/1.28, allocations: 25.7 kB / 0.8256 GB, free: 38.08 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001125/1.282, allocations: 3.343 MB / 0.8289 GB, free: 35.07 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004677/1.282, allocations: 0.7387 MB / 0.8296 GB, free: 34.41 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/1.282, allocations: 0 / 0.8296 GB, free: 34.41 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002438/1.283, allocations: 0.5839 MB / 0.8301 GB, free: 33.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002316/1.285, allocations: 2.022 MB / 0.8321 GB, free: 32.09 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003439/1.288, allocations: 5.971 MB / 0.838 GB, free: 24.44 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003436/1.292, allocations: 3.482 MB / 0.8414 GB, free: 21.46 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.801e-05/1.292, allocations: 40 kB / 0.8414 GB, free: 21.42 MB / 0.4948 GB Notification: Performance of matching and sorting (n=847) (initialization): time 0.01067/1.302, allocations: 7.734 MB / 0.8489 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/1.302, allocations: 6.344 kB / 0.849 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.135e-05/1.303, allocations: 142.2 kB / 0.8491 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002446/1.305, allocations: 0.9097 MB / 0.85 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004228/1.309, allocations: 1.469 MB / 0.8514 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007294/1.317, allocations: 6.871 MB / 0.8581 GB, free: 6.078 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004395/1.321, allocations: 203.5 kB / 0.8583 GB, free: 5.895 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006279/1.322, allocations: 399.5 kB / 0.8587 GB, free: 5.512 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 645 * Number of states: 0 () * Number of discrete variables: 47 (fixed.color[3],fixed.color[2],fixed.color[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],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 (785): * Single equations (assignments): 780 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000652/1.322, allocations: 463.6 kB / 0.8591 GB, free: 5.055 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000451/1.323, allocations: 386.9 kB / 0.8595 GB, free: 4.672 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005447/1.328, allocations: 3.077 MB / 0.8625 GB, free: 2.137 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-05/1.328, allocations: 25.27 kB / 0.8625 GB, free: 2.113 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/1.328, allocations: 4 kB / 0.8625 GB, free: 2.109 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.041e-05/1.328, allocations: 12.91 kB / 0.8626 GB, free: 2.105 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01615/1.344, allocations: 7.768 MB / 0.8701 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/1.345, allocations: 3.469 kB / 0.8701 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001603/1.346, allocations: 295.2 kB / 0.8704 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/1.349, allocations: 0.6648 MB / 0.8711 GB, free: 11.26 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001319/1.349, allocations: 11.98 kB / 0.8711 GB, free: 11.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007447/1.356, allocations: 6.043 MB / 0.877 GB, free: 4.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/1.356, allocations: 7.938 kB / 0.877 GB, free: 4.973 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008039/1.364, allocations: 5.7 MB / 0.8826 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01031/1.375, allocations: 8.023 MB / 0.8904 GB, free: 7.117 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000775/1.375, allocations: 412 kB / 0.8908 GB, free: 6.691 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000516/1.376, allocations: 7.891 kB / 0.8908 GB, free: 6.684 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/1.377, allocations: 55.94 kB / 0.8908 GB, free: 6.629 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002517/1.378, allocations: 93.11 kB / 0.8909 GB, free: 6.539 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/1.378, allocations: 55.36 kB / 0.891 GB, free: 6.488 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003496/1.381, allocations: 2.473 MB / 0.8934 GB, free: 4.012 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005192/1.386, allocations: 0.9726 MB / 0.8944 GB, free: 3.039 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (148): * Single equations (assignments): 143 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003901/1.387, allocations: 142.7 kB / 0.8945 GB, free: 2.891 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.1356/1.522, allocations: 5.05 MB / 0.8994 GB, free: 181.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/1.523, allocations: 2.688 kB / 0.8994 GB, free: 181.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002262/1.525, allocations: 1.693 MB / 0.9011 GB, free: 181.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001979/1.527, allocations: 444.7 kB / 0.9015 GB, free: 181.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01268/1.539, allocations: 8.857 MB / 0.9101 GB, free: 179.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004352/1.544, allocations: 4.265 MB / 0.9143 GB, free: 178.8 MB / 0.5261 GB Notification: Performance of SimCode: time 6.71e-07/1.544, allocations: 0 / 0.9143 GB, free: 178.8 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1)