Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.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.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001667/0.001667, allocations: 189.1 kB / 7.806 MB, free: 2.23 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.5/1.5, 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.001021/0.001021, allocations: 92.78 kB / 261.4 MB, free: 13.54 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.1873/0.1873, allocations: 43.49 MB / 352.8 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2087/0.3961, allocations: 64.97 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.724, allocations: 58.84 MB / 476.7 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1512/0.8753, allocations: 108 MB / 0.571 GB, free: 6.887 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.8756, allocations: 87.45 kB / 0.571 GB, free: 6.805 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: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.5183/1.394, allocations: 108.8 MB / 0.6773 GB, free: 101.8 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/1.394, allocations: 10.5 kB / 0.6773 GB, free: 101.8 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02731/1.421, allocations: 6.567 MB / 0.6837 GB, free: 101.4 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02/1.441, allocations: 6.968 MB / 0.6906 GB, free: 99.81 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004006/1.442, allocations: 179.8 kB / 0.6907 GB, free: 99.8 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00301/1.445, allocations: 325.8 kB / 0.691 GB, free: 99.79 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01848/1.463, allocations: 7.796 MB / 0.6986 GB, free: 97.05 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03178/1.495, allocations: 11.57 MB / 0.7099 GB, free: 90.81 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004036/1.496, allocations: 81.2 kB / 0.71 GB, free: 90.76 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001729/1.497, allocations: 37.78 kB / 0.7101 GB, free: 90.76 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002029/1.499, allocations: 1.205 MB / 0.7112 GB, free: 90.54 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06386/1.563, allocations: 57.29 MB / 0.7672 GB, free: 33.74 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004296/1.568, allocations: 3.596 MB / 0.7707 GB, free: 30 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002813/1.57, allocations: 2.568 MB / 0.7732 GB, free: 27.42 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01306/1.584, allocations: 7.988 MB / 0.781 GB, free: 19.21 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/1.584, allocations: 59.81 kB / 0.7811 GB, free: 19.14 MB / 474.7 MB Notification: Performance of pre-optimization done (n=192): time 7.293e-06/1.584, allocations: 0 / 0.7811 GB, free: 19.14 MB / 474.7 MB Notification: Performance of matching and sorting (n=218): time 0.03844/1.622, allocations: 18.07 MB / 0.7987 GB, free: 0.9844 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.142e-05/1.622, allocations: 205.2 kB / 0.7989 GB, free: 0.7422 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007227/1.629, allocations: 3.741 MB / 0.8026 GB, free: 12.99 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005337/1.63, allocations: 25.7 kB / 0.8026 GB, free: 12.96 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003341/1.633, allocations: 3.473 MB / 0.806 GB, free: 9.43 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001594/1.635, allocations: 0.8019 MB / 0.8068 GB, free: 8.617 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006351/1.636, allocations: 0 / 0.8068 GB, free: 8.617 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006689/1.636, allocations: 0.5951 MB / 0.8073 GB, free: 8.016 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003742/1.64, allocations: 2.181 MB / 0.8095 GB, free: 5.832 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007993/1.648, allocations: 6.276 MB / 0.8156 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007305/1.655, allocations: 3.705 MB / 0.8192 GB, free: 9.781 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001344/1.656, allocations: 40 kB / 0.8193 GB, free: 9.742 MB / 0.4948 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01893/1.675, allocations: 8.175 MB / 0.8272 GB, free: 1.559 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/1.675, allocations: 4 kB / 0.8272 GB, free: 1.555 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001836/1.675, allocations: 152.1 kB / 0.8274 GB, free: 1.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002874/1.678, allocations: 0.921 MB / 0.8283 GB, free: 500 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2264/1.904, allocations: 1.553 MB / 0.8298 GB, free: 172.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007881/1.912, allocations: 6.887 MB / 0.8365 GB, free: 170.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005509/1.918, allocations: 206.3 kB / 0.8367 GB, free: 170.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001505/1.919, allocations: 412 kB / 0.8371 GB, free: 170.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 668 * Number of states: 0 () * Number of discrete variables: 45 (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 (828): * Single equations (assignments): 823 * 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.001773/1.921, allocations: 488.5 kB / 0.8376 GB, free: 170.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/1.922, allocations: 407.1 kB / 0.838 GB, free: 170.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006595/1.929, allocations: 3.419 MB / 0.8413 GB, free: 169.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.129e-05/1.929, allocations: 24.09 kB / 0.8413 GB, free: 169.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/1.929, allocations: 6.469 kB / 0.8413 GB, free: 169.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.206e-05/1.929, allocations: 10.5 kB / 0.8414 GB, free: 169.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01644/1.945, allocations: 8.218 MB / 0.8494 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.649e-05/1.945, allocations: 3.375 kB / 0.8494 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00178/1.947, allocations: 328.8 kB / 0.8497 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002221/1.949, allocations: 0.6727 MB / 0.8504 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002055/1.95, allocations: 9.641 kB / 0.8504 GB, free: 169.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006705/1.956, allocations: 6.045 MB / 0.8563 GB, free: 167 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.956, allocations: 0 / 0.8563 GB, free: 167 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009252/1.966, allocations: 6.244 MB / 0.8624 GB, free: 164.7 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01203/1.978, allocations: 8.789 MB / 0.8709 GB, free: 161 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001953/1.98, allocations: 0.7032 MB / 0.8716 GB, free: 160.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007427/1.98, allocations: 3.781 kB / 0.8716 GB, free: 160.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/1.982, allocations: 60.28 kB / 0.8717 GB, free: 160.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002862/1.982, allocations: 105.8 kB / 0.8718 GB, free: 160.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001572/1.983, allocations: 57.25 kB / 0.8718 GB, free: 160.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.004305/1.987, allocations: 2.548 MB / 0.8743 GB, free: 159.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006507/1.993, allocations: 1.02 MB / 0.8753 GB, free: 159.7 MB / 0.4948 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 (169): * Single equations (assignments): 164 * 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.000453/1.994, allocations: 151.2 kB / 0.8755 GB, free: 159.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00802/2.002, allocations: 5.44 MB / 0.8808 GB, free: 157.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/2.002, allocations: 0 / 0.8808 GB, free: 157.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002508/2.004, allocations: 1.864 MB / 0.8826 GB, free: 157 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00283/2.007, allocations: 434.7 kB / 0.883 GB, free: 156.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02756/2.035, allocations: 9.374 MB / 0.8922 GB, free: 153.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007937/2.043, allocations: 4.433 MB / 0.8965 GB, free: 151.8 MB / 0.4948 GB Notification: Performance of SimCode: time 9.52e-07/2.043, allocations: 0 / 0.8965 GB, free: 151.8 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1)