Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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) 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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_0_0_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.001002/0.001002, allocations: 92.53 kB / 16.3 MB, free: 5.535 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.001073/0.001073, allocations: 185.3 kB / 17.2 MB, free: 5.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 223.2 MB / 241.1 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002755/0.0002756, allocations: 4 kB / 300.8 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1115, allocations: 50.41 MB / 351.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.2525/0.364, allocations: 56.28 MB / 407.5 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03614/0.4003, allocations: 13.27 MB / 420.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01459/0.4149, allocations: 279.3 kB / 421.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01163/0.4266, allocations: 2.827 MB / 423.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02971/0.4563, allocations: 8.072 MB / 432 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00476/0.4611, allocations: 0.7144 MB / 432.7 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.03876/0.4999, allocations: 25.25 MB / 457.9 MB, free: 9.305 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009946/0.5099, allocations: 6.306 MB / 464.2 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002496/0.5124, allocations: 1.18 MB / 465.4 MB, free: 1.758 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003093/0.5156, allocations: 1.663 MB / 467.1 MB, free: 92 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009816/0.5166, allocations: 180 kB / 467.2 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002426/0.519, allocations: 0.9519 MB / 468.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002259/0.5213, allocations: 1.823 MB / 470 MB, free: 13.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001359/0.5227, allocations: 0.9752 MB / 471 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008262/0.5309, allocations: 6.918 MB / 477.9 MB, free: 5.215 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.531, allocations: 0 / 477.9 MB, free: 5.215 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.531, allocations: 0 / 477.9 MB, free: 5.215 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002972/0.5313, allocations: 3.938 kB / 477.9 MB, free: 5.211 MB / 382.1 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.02724/0.5585, allocations: 6.111 MB / 484 MB, free: 15.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.5586, allocations: 12.03 kB / 484 MB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002784/0.5614, allocations: 0.8388 MB / 484.9 MB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09724/0.6586, allocations: 8.373 MB / 493.3 MB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009153/0.6678, allocations: 3.262 MB / 496.5 MB, free: 2.457 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002864/0.6682, allocations: 295.8 kB / 496.8 MB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001528/0.6697, allocations: 407.7 kB / 497.2 MB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02784/0.6976, allocations: 13.32 MB / 0.4986 GB, free: 3.703 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002051/0.6978, allocations: 59.42 kB / 0.4986 GB, free: 3.645 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008452/0.6987, allocations: 187.8 kB / 0.4988 GB, free: 3.461 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004436/0.7031, allocations: 2.186 MB / 0.5009 GB, free: 1.273 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02822/0.7314, allocations: 12.76 MB / 0.5134 GB, free: 4.5 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2654/0.9968, allocations: 49.16 MB / 0.5614 GB, free: 121.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02369/1.021, allocations: 6.586 MB / 0.5678 GB, free: 119.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009162/1.021, allocations: 421 kB / 0.5682 GB, free: 119.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.374e-05/1.022, allocations: 59.59 kB / 0.5683 GB, free: 119.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 5.31e-06/1.022, allocations: 0 / 0.5683 GB, free: 119.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.09357/1.115, allocations: 37.05 MB / 0.6045 GB, free: 94.67 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.253e-05/1.115, allocations: 205.9 kB / 0.6047 GB, free: 94.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005628/1.121, allocations: 4.541 MB / 0.6091 GB, free: 89.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009633/1.122, allocations: 62.41 kB / 0.6092 GB, free: 89.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00169/1.124, allocations: 3.467 MB / 0.6125 GB, free: 86.33 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001401/1.125, allocations: 0.9427 MB / 0.6135 GB, free: 85.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000453/1.125, allocations: 136.7 kB / 0.6136 GB, free: 85.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000271/1.126, allocations: 0.595 MB / 0.6142 GB, free: 84.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004672/1.13, allocations: 4.257 MB / 0.6183 GB, free: 80.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006002/1.136, allocations: 8.1 MB / 0.6262 GB, free: 70.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006763/1.143, allocations: 5.752 MB / 0.6319 GB, free: 64.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.778e-05/1.143, allocations: 40 kB / 0.6319 GB, free: 64.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.02204/1.165, allocations: 14.59 MB / 0.6461 GB, free: 50 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.514e-05/1.165, allocations: 67.98 kB / 0.6462 GB, free: 49.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001055/1.166, allocations: 132 kB / 0.6463 GB, free: 49.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00609/1.172, allocations: 2.507 MB / 0.6488 GB, free: 47.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006214/1.178, allocations: 1.762 MB / 0.6505 GB, free: 45.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01731/1.195, allocations: 16.47 MB / 0.6666 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00692/1.202, allocations: 472.7 kB / 0.667 GB, free: 28.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/1.203, allocations: 495.8 kB / 0.6675 GB, free: 27.72 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * 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 (807): * Single equations (assignments): 801 * 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.003727/1.207, allocations: 2.381 MB / 0.6698 GB, free: 25.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008415/1.208, allocations: 402.8 kB / 0.6702 GB, free: 24.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01385/1.222, allocations: 9.665 MB / 0.6797 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.969e-05/1.222, allocations: 28 kB / 0.6797 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.403e-05/1.222, allocations: 12.05 kB / 0.6797 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.945e-05/1.222, allocations: 15.94 kB / 0.6797 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2555/1.478, allocations: 18.1 MB / 0.6974 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.254e-05/1.478, allocations: 2.344 kB / 0.6974 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003572/1.481, allocations: 0.5949 MB / 0.698 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007138/1.488, allocations: 2.271 MB / 0.7002 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008727/1.489, allocations: 129.1 kB / 0.7003 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01812/1.508, allocations: 15 MB / 0.715 GB, free: 128.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/1.508, allocations: 5.562 kB / 0.715 GB, free: 128.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02075/1.528, allocations: 15.38 MB / 0.73 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001505/1.53, allocations: 478.2 kB / 0.7304 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001276/1.531, allocations: 40.2 kB / 0.7305 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00332/1.534, allocations: 227.9 kB / 0.7307 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008176/1.535, allocations: 249.5 kB / 0.7309 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003178/1.536, allocations: 148.4 kB / 0.7311 GB, free: 122.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003882/1.54, allocations: 2.873 MB / 0.7339 GB, free: 121.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.54, allocations: 0 / 0.7339 GB, free: 121.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007057/1.547, allocations: 1.45 MB / 0.7353 GB, free: 120.9 MB / 446.1 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 (199): * Single equations (assignments): 193 * 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.01935/1.566, allocations: 16.44 MB / 0.7514 GB, free: 104.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01332/1.579, allocations: 10.38 MB / 0.7615 GB, free: 94.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/1.579, allocations: 0 / 0.7615 GB, free: 94.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006047/1.585, allocations: 4.626 MB / 0.766 GB, free: 89.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002879/1.588, allocations: 445.3 kB / 0.7664 GB, free: 89.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2835/1.872, allocations: 146.3 MB / 0.9093 GB, free: 124 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003503/1.875, allocations: 3.851 MB / 0.9131 GB, free: 122.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005625/1.881, allocations: 2.386 MB / 0.9154 GB, free: 121 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003937/1.885, allocations: 2.524 MB / 0.9179 GB, free: 118.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.242e-06/1.885, allocations: 0 / 0.9179 GB, free: 118.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3502/2.235, allocations: 122.7 MB / 1.038 GB, free: 125.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001537/2.235, allocations: 232.1 kB / 1.038 GB, free: 124.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.102/7.338, allocations: 3.281 kB / 1.038 GB, free: 124.9 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat does not exist to compare? outputFormat=mat