Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002239/0.002245, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.158/2.158, allocations: 205.4 MB / 222.5 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.001135/0.001134, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006034/0.0006041, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1384, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.3814/0.5199, allocations: 56.83 MB / 431.5 MB, free: 2.969 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04123/0.5612, allocations: 13.37 MB / 444.8 MB, free: 6.027 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01381/0.575, allocations: 283.3 kB / 445.1 MB, free: 5.75 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01124/0.5863, allocations: 2.834 MB / 447.9 MB, free: 2.902 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03335/0.6197, allocations: 8.133 MB / 456.1 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005529/0.6253, allocations: 0.7099 MB / 456.8 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.03948/0.6648, allocations: 14.38 MB / 471.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01445/0.6793, allocations: 6.315 MB / 477.5 MB, free: 5.266 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003174/0.6826, allocations: 1.191 MB / 478.7 MB, free: 4.07 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004052/0.6867, allocations: 1.682 MB / 480.4 MB, free: 2.383 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001218/0.6879, allocations: 175.9 kB / 480.5 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003422/0.6914, allocations: 0.9403 MB / 481.5 MB, free: 1.27 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003381/0.6948, allocations: 1.827 MB / 483.3 MB, free: 15.44 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001929/0.6968, allocations: 0.9868 MB / 484.3 MB, free: 14.44 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.7087, allocations: 6.94 MB / 491.2 MB, free: 7.484 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.7088, allocations: 3.938 kB / 491.2 MB, free: 7.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.517e-06/0.7088, allocations: 0 / 491.2 MB, free: 7.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003138/0.7091, allocations: 0 / 491.2 MB, free: 7.48 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1755 * Number of variables: 1755 Notification: Performance of Generate backend data structure: time 0.05172/0.7608, allocations: 6.139 MB / 497.4 MB, free: 1.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.7609, allocations: 11.97 kB / 497.4 MB, free: 1.258 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003266/0.7642, allocations: 0.8467 MB / 498.2 MB, free: 412 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1793/0.9436, allocations: 8.381 MB / 0.4947 GB, free: 8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/0.9563, allocations: 3.411 MB / 0.4981 GB, free: 4.531 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004069/0.9567, allocations: 303.8 kB / 0.4984 GB, free: 4.234 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002349/0.9591, allocations: 399.8 kB / 0.4987 GB, free: 3.844 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04688/1.006, allocations: 13.36 MB / 0.5118 GB, free: 5.738 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002525/1.006, allocations: 43.59 kB / 0.5118 GB, free: 5.695 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001726/1.008, allocations: 191.8 kB / 0.512 GB, free: 5.508 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008316/1.016, allocations: 2.206 MB / 0.5142 GB, free: 3.301 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0481/1.065, allocations: 12.78 MB / 0.5266 GB, free: 6.504 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3745/1.439, allocations: 49.31 MB / 0.5748 GB, free: 99.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04639/1.486, allocations: 6.619 MB / 0.5813 GB, free: 96.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001515/1.487, allocations: 422.5 kB / 0.5817 GB, free: 95.78 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.966e-05/1.487, allocations: 51.88 kB / 0.5817 GB, free: 95.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 5.561e-06/1.487, allocations: 6.594 kB / 0.5817 GB, free: 95.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=255): time 0.1855/1.673, allocations: 37.2 MB / 0.618 GB, free: 60.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.938e-05/1.673, allocations: 201.9 kB / 0.6182 GB, free: 59.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008829/1.682, allocations: 4.57 MB / 0.6227 GB, free: 55.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001075/1.683, allocations: 67.48 kB / 0.6228 GB, free: 55.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002593/1.685, allocations: 3.383 MB / 0.6261 GB, free: 51.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001843/1.687, allocations: 0.9524 MB / 0.627 GB, free: 50.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001004/1.688, allocations: 137.5 kB / 0.6271 GB, free: 50.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004457/1.689, allocations: 0.5999 MB / 0.6277 GB, free: 50.19 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009809/1.699, allocations: 4.265 MB / 0.6319 GB, free: 45.92 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0122/1.711, allocations: 8.117 MB / 0.6398 GB, free: 35.89 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01256/1.723, allocations: 5.766 MB / 0.6454 GB, free: 30.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.898e-05/1.724, allocations: 40 kB / 0.6455 GB, free: 30.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.04005/1.764, allocations: 14.46 MB / 0.6596 GB, free: 15.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.463e-05/1.764, allocations: 60 kB / 0.6597 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001499/1.764, allocations: 140.2 kB / 0.6598 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01191/1.776, allocations: 2.509 MB / 0.6622 GB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01204/1.788, allocations: 1.762 MB / 0.664 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03339/1.821, allocations: 16.33 MB / 0.6799 GB, free: 10.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01029/1.832, allocations: 479.1 kB / 0.6804 GB, free: 9.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002248/1.834, allocations: 0.4892 MB / 0.6808 GB, free: 9.441 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (811): * Single equations (assignments): 805 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007476/1.842, allocations: 2.384 MB / 0.6832 GB, free: 7.043 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001468/1.843, allocations: 398.8 kB / 0.6835 GB, free: 6.648 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3137/2.157, allocations: 9.69 MB / 0.693 GB, free: 133.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.224e-05/2.157, allocations: 28.02 kB / 0.693 GB, free: 133.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-05/2.157, allocations: 14.72 kB / 0.6931 GB, free: 133.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.667e-05/2.157, allocations: 12.95 kB / 0.6931 GB, free: 133.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05569/2.213, allocations: 18.16 MB / 0.7108 GB, free: 129 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.049e-05/2.213, allocations: 0 / 0.7108 GB, free: 129 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006266/2.219, allocations: 0.5987 MB / 0.7114 GB, free: 129 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0116/2.231, allocations: 2.272 MB / 0.7136 GB, free: 128.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00106/2.232, allocations: 129.7 kB / 0.7137 GB, free: 128.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03141/2.263, allocations: 15.02 MB / 0.7284 GB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/2.263, allocations: 0 / 0.7284 GB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03809/2.302, allocations: 15.42 MB / 0.7435 GB, free: 103.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004201/2.306, allocations: 1.071 MB / 0.7445 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002087/2.308, allocations: 48.69 kB / 0.7446 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006555/2.315, allocations: 228.5 kB / 0.7448 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001751/2.316, allocations: 249.3 kB / 0.745 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009645/2.317, allocations: 148.5 kB / 0.7452 GB, free: 101.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006712/2.324, allocations: 2.894 MB / 0.748 GB, free: 98.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.994e-06/2.324, allocations: 0 / 0.748 GB, free: 98.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009342/2.334, allocations: 1.439 MB / 0.7494 GB, free: 97.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 196 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03778/2.371, allocations: 16.49 MB / 0.7655 GB, free: 80.89 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02231/2.394, allocations: 10.28 MB / 0.7755 GB, free: 70.65 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.076e-06/2.394, allocations: 0 / 0.7755 GB, free: 70.65 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.011/2.405, allocations: 4.618 MB / 0.78 GB, free: 66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004337/2.409, allocations: 465.7 kB / 0.7805 GB, free: 65.56 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4408/2.85, allocations: 147.3 MB / 0.9243 GB, free: 95.74 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007238/2.857, allocations: 3.86 MB / 0.9281 GB, free: 94.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007639/2.865, allocations: 2.587 MB / 0.9306 GB, free: 92.32 MB / 442.7 MB Notification: Performance of SimCode: time 2.235e-06/2.865, allocations: 2.844 kB / 0.9306 GB, free: 92.32 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.706/8.571, allocations: 170.2 MB / 1.097 GB, free: 82.63 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1)