Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_3_2_3_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_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008502/0.0008502, allocations: 93.78 kB / 16.95 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008608/0.0008607, allocations: 181.2 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004805/0.0004807, allocations: 8 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1029, allocations: 47.58 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.2614/0.3644, allocations: 60.24 MB / 388.7 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03028/0.3947, allocations: 12.79 MB / 401.5 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01463/0.4094, allocations: 279.4 kB / 401.8 MB, free: 7.488 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01087/0.4203, allocations: 2.931 MB / 404.7 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02538/0.4457, allocations: 8.607 MB / 413.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004449/0.4502, allocations: 0.6983 MB / 414 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02522/0.4754, allocations: 19.49 MB / 433.5 MB, free: 7.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01086/0.4864, allocations: 6.355 MB / 439.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003415/0.4898, allocations: 1.451 MB / 441.3 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004154/0.494, allocations: 2.388 MB / 443.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008861/0.4949, allocations: 172 kB / 443.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002571/0.4975, allocations: 0.9605 MB / 444.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002472/0.5, allocations: 1.968 MB / 446.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001641/0.5016, allocations: 0.9848 MB / 447.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009096/0.5108, allocations: 6.949 MB / 454.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.052e-05/0.5108, allocations: 0 / 454.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.5108, allocations: 0 / 454.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003347/0.5112, allocations: 0 / 454.7 MB, free: 6.293 MB / 350.1 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.02559/0.5368, allocations: 5.935 MB / 460.6 MB, free: 340 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.5369, allocations: 20.02 kB / 460.7 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003153/0.54, allocations: 0.838 MB / 461.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06839/0.6084, allocations: 7.315 MB / 468.8 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009607/0.6181, allocations: 3.633 MB / 472.4 MB, free: 4.535 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002675/0.6184, allocations: 301.5 kB / 472.7 MB, free: 4.277 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001386/0.6198, allocations: 406.9 kB / 473.1 MB, free: 3.914 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02873/0.6485, allocations: 13.26 MB / 486.4 MB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000165/0.6488, allocations: 51.52 kB / 486.4 MB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006611/0.6494, allocations: 193.6 kB / 486.6 MB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004/0.6534, allocations: 2.195 MB / 488.8 MB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02809/0.6815, allocations: 12.68 MB / 0.4898 GB, free: 6.941 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07468/0.7563, allocations: 49.41 MB / 0.538 GB, free: 4.57 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.252/1.008, allocations: 6.448 MB / 0.5443 GB, free: 164.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005942/1.014, allocations: 3.922 MB / 0.5481 GB, free: 164.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00088/1.015, allocations: 427.2 kB / 0.5485 GB, free: 164 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/1.015, allocations: 59.88 kB / 0.5486 GB, free: 163.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 5.239e-06/1.015, allocations: 1.219 kB / 0.5486 GB, free: 163.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=255): time 0.09454/1.11, allocations: 36.23 MB / 0.584 GB, free: 142.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/1.11, allocations: 209.9 kB / 0.5842 GB, free: 142.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005921/1.116, allocations: 4.444 MB / 0.5885 GB, free: 137.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007851/1.117, allocations: 62.56 kB / 0.5886 GB, free: 137.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001636/1.118, allocations: 3.473 MB / 0.592 GB, free: 134.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001184/1.12, allocations: 0.9565 MB / 0.5929 GB, free: 133.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003908/1.12, allocations: 140.4 kB / 0.593 GB, free: 133.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002721/1.12, allocations: 0.5873 MB / 0.5936 GB, free: 132.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004686/1.125, allocations: 4.265 MB / 0.5978 GB, free: 128.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007059/1.132, allocations: 8.154 MB / 0.6057 GB, free: 118.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007669/1.14, allocations: 5.762 MB / 0.6114 GB, free: 112.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.392e-05/1.14, allocations: 36 kB / 0.6114 GB, free: 112.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.02552/1.165, allocations: 14.63 MB / 0.6257 GB, free: 97.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002048/1.166, allocations: 64 kB / 0.6257 GB, free: 97.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002485/1.166, allocations: 136 kB / 0.6259 GB, free: 97.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006109/1.172, allocations: 2.499 MB / 0.6283 GB, free: 95.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006424/1.179, allocations: 1.766 MB / 0.63 GB, free: 93.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01741/1.196, allocations: 15.86 MB / 0.6455 GB, free: 77.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00684/1.203, allocations: 471.2 kB / 0.646 GB, free: 76.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00163/1.205, allocations: 0.4958 MB / 0.6465 GB, free: 76.24 MB / 446.1 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.005393/1.21, allocations: 2.374 MB / 0.6488 GB, free: 73.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001561/1.212, allocations: 402.8 kB / 0.6492 GB, free: 73.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01563/1.227, allocations: 9.673 MB / 0.6586 GB, free: 63.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.942e-05/1.227, allocations: 30.02 kB / 0.6586 GB, free: 63.72 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.666e-05/1.227, allocations: 11.94 kB / 0.6587 GB, free: 63.71 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.989e-05/1.227, allocations: 15.95 kB / 0.6587 GB, free: 63.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03239/1.26, allocations: 18.34 MB / 0.6766 GB, free: 45.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-05/1.26, allocations: 4 kB / 0.6766 GB, free: 45.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003267/1.263, allocations: 0.5967 MB / 0.6772 GB, free: 44.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00599/1.269, allocations: 2.262 MB / 0.6794 GB, free: 42.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009024/1.27, allocations: 128.5 kB / 0.6795 GB, free: 42.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01641/1.287, allocations: 14.56 MB / 0.6937 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/1.287, allocations: 0 / 0.6937 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02109/1.308, allocations: 15.17 MB / 0.7085 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003254/1.311, allocations: 1.066 MB / 0.7096 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001563/1.313, allocations: 51.89 kB / 0.7096 GB, free: 11.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003446/1.316, allocations: 221.7 kB / 0.7098 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009189/1.317, allocations: 241.6 kB / 0.7101 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000579/1.318, allocations: 147.8 kB / 0.7102 GB, free: 10.42 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.2406/1.558, allocations: 2.796 MB / 0.7129 GB, free: 148.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.61e-07/1.558, allocations: 0 / 0.7129 GB, free: 148.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008414/1.567, allocations: 1.415 MB / 0.7143 GB, free: 148.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (198): * Single equations (assignments): 192 * 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.0248/1.592, allocations: 15.85 MB / 0.7298 GB, free: 144.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.015/1.607, allocations: 10.29 MB / 0.7398 GB, free: 141.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/1.607, allocations: 0 / 0.7398 GB, free: 141.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006607/1.613, allocations: 4.612 MB / 0.7443 GB, free: 138.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005645/1.619, allocations: 498.5 kB / 0.7448 GB, free: 138.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09947/1.718, allocations: 53.31 MB / 0.7969 GB, free: 83.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006174/1.725, allocations: 3.755 MB / 0.8005 GB, free: 79.79 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007516/1.732, allocations: 2.399 MB / 0.8029 GB, free: 77.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004901/1.737, allocations: 2.523 MB / 0.8053 GB, free: 74.86 MB / 446.1 MB Notification: Performance of SimCode: time 1.382e-06/1.737, allocations: 0 / 0.8053 GB, free: 74.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3735/2.111, allocations: 122.5 MB / 0.925 GB, free: 111.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/2.111, allocations: 227.5 kB / 0.9252 GB, free: 111.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.016/7.127, allocations: 0 / 0.9252 GB, free: 111.6 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat does not exist to compare? outputFormat=mat