Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.002092/0.002092, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.616/1.616, allocations: 225.6 MB / 234.8 MB, free: 3.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001141/0.001141, allocations: 98.02 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.01e-05/3.008e-05, allocations: 4 kB / 343.8 MB, free: 8.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1345, allocations: 51.48 MB / 395.3 MB, free: 4.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4682/0.6028, allocations: 102.7 MB / 498 MB, free: 6.465 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.6031, allocations: 87.08 kB / 498 MB, free: 6.422 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6087/1.212, allocations: 96.34 MB / 0.5804 GB, free: 72.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.844e-06/1.212, allocations: 0.9375 kB / 0.5804 GB, free: 72.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003268/1.212, allocations: 102.5 kB / 0.5805 GB, free: 72.23 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.0311/1.243, allocations: 6.098 MB / 0.5865 GB, free: 70.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/1.243, allocations: 9.75 kB / 0.5865 GB, free: 70.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01955/1.263, allocations: 4.444 MB / 0.5908 GB, free: 69.99 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01427/1.277, allocations: 4.58 MB / 0.5953 GB, free: 69.36 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003152/1.278, allocations: 161.8 kB / 0.5955 GB, free: 69.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00305/1.281, allocations: 305.9 kB / 0.5958 GB, free: 69.35 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01602/1.297, allocations: 7.61 MB / 0.6032 GB, free: 69.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03895/1.336, allocations: 11.32 MB / 0.6142 GB, free: 66.45 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007899/1.337, allocations: 69.69 kB / 0.6143 GB, free: 66.44 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003955/1.341, allocations: 33.09 kB / 0.6143 GB, free: 66.44 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003197/1.344, allocations: 1.091 MB / 0.6154 GB, free: 66.43 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08642/1.43, allocations: 53.9 MB / 0.6681 GB, free: 47.56 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005708/1.436, allocations: 4.665 MB / 0.6726 GB, free: 45.37 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004018/1.44, allocations: 3.331 MB / 0.6759 GB, free: 44.04 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001894/1.442, allocations: 1.045 MB / 0.6769 GB, free: 43.16 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/1.442, allocations: 59.12 kB / 0.6769 GB, free: 43.1 MB / 458.7 MB Notification: Performance of pre-optimization done (n=214): time 5.009e-06/1.442, allocations: 0 / 0.6769 GB, free: 43.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=252): time 0.05746/1.5, allocations: 25.58 MB / 0.7019 GB, free: 33.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.105e-05/1.5, allocations: 203.3 kB / 0.7021 GB, free: 33.35 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005855/1.506, allocations: 3.313 MB / 0.7053 GB, free: 32.02 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001007/1.507, allocations: 25.7 kB / 0.7054 GB, free: 31.99 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00259/1.509, allocations: 3.525 MB / 0.7088 GB, free: 29.24 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001785/1.511, allocations: 0.9176 MB / 0.7097 GB, free: 28.55 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005009/1.512, allocations: 0 / 0.7097 GB, free: 28.55 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004432/1.512, allocations: 0.6026 MB / 0.7103 GB, free: 28.12 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004348/1.516, allocations: 3.306 MB / 0.7135 GB, free: 26.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006644/1.523, allocations: 7.263 MB / 0.7206 GB, free: 18.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007571/1.531, allocations: 4.819 MB / 0.7253 GB, free: 14.32 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001555/1.531, allocations: 40 kB / 0.7254 GB, free: 14.28 MB / 458.7 MB Notification: Performance of matching and sorting (n=905) (initialization): time 0.02841/1.559, allocations: 11.77 MB / 0.7369 GB, free: 4.496 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001223/1.559, allocations: 73.61 kB / 0.7369 GB, free: 4.426 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000191/1.56, allocations: 140 kB / 0.7371 GB, free: 4.289 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006605/1.566, allocations: 2.264 MB / 0.7393 GB, free: 2.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007577/1.574, allocations: 1.682 MB / 0.7409 GB, free: 1.281 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3327/1.907, allocations: 14.41 MB / 0.755 GB, free: 73.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00729/1.914, allocations: 336.2 kB / 0.7553 GB, free: 73.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001917/1.916, allocations: 448.1 kB / 0.7557 GB, free: 73.39 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 643 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (832): * Single equations (assignments): 826 * 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%) 15,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001715/1.918, allocations: 469.3 kB / 0.7562 GB, free: 73.28 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01277/1.93, allocations: 7.359 MB / 0.7634 GB, free: 73.16 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001709/1.932, allocations: 369.4 kB / 0.7637 GB, free: 73.16 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01401/1.946, allocations: 7.347 MB / 0.7709 GB, free: 72.98 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.594e-05/1.946, allocations: 31.88 kB / 0.7709 GB, free: 72.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.489e-05/1.946, allocations: 9.719 kB / 0.7709 GB, free: 72.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.883e-05/1.946, allocations: 12.8 kB / 0.7709 GB, free: 72.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03288/1.979, allocations: 13.9 MB / 0.7845 GB, free: 71.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.248e-05/1.979, allocations: 3.906 kB / 0.7845 GB, free: 71.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002994/1.982, allocations: 437.5 kB / 0.7849 GB, free: 71.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007279/1.99, allocations: 2.019 MB / 0.7869 GB, free: 70.94 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008374/1.991, allocations: 16.86 kB / 0.7869 GB, free: 70.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01781/2.008, allocations: 13.12 MB / 0.7997 GB, free: 63.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/2.008, allocations: 0 / 0.7997 GB, free: 63.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0171/2.026, allocations: 11.65 MB / 0.8111 GB, free: 59.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001375/2.027, allocations: 418.8 kB / 0.8115 GB, free: 58.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006972/2.028, allocations: 6.281 kB / 0.8115 GB, free: 58.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002423/2.03, allocations: 177.4 kB / 0.8117 GB, free: 58.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005599/2.031, allocations: 153.8 kB / 0.8118 GB, free: 58.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002196/2.031, allocations: 66.94 kB / 0.8119 GB, free: 58.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003621/2.035, allocations: 2.221 MB / 0.8141 GB, free: 58.08 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.61e-07/2.035, allocations: 3.375 kB / 0.8141 GB, free: 58.08 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008349/2.043, allocations: 1.213 MB / 0.8153 GB, free: 58.08 MB / 458.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 189 * 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.01883/2.062, allocations: 12.49 MB / 0.8275 GB, free: 52.87 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01651/2.078, allocations: 8.289 MB / 0.8356 GB, free: 50.07 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/2.078, allocations: 0 / 0.8356 GB, free: 50.07 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006504/2.085, allocations: 3.596 MB / 0.8391 GB, free: 48.56 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003614/2.089, allocations: 378.4 kB / 0.8394 GB, free: 48.39 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03962/2.128, allocations: 11.48 MB / 0.8506 GB, free: 44.52 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008523/2.137, allocations: 3.846 MB / 0.8544 GB, free: 43.02 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.008424/2.145, allocations: 2.259 MB / 0.8566 GB, free: 41.66 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005774/2.151, allocations: 2.277 MB / 0.8588 GB, free: 39.59 MB / 458.7 MB Notification: Performance of SimCode: time 2.966e-06/2.151, allocations: 0 / 0.8588 GB, free: 39.59 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4822/2.633, allocations: 99.68 MB / 0.9562 GB, free: 81 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/2.634, allocations: 166.6 kB / 0.9563 GB, free: 80.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.757/7.391, allocations: 0 / 0.9563 GB, free: 80.8 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat does not exist to compare? outputFormat=mat