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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 107.9 kB / 18.48 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 198.6 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 225.6 MB / 249.8 MB, free: 3.59 MB / 190.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 47.92 kB / 366.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09062/0.09206, allocations: 52.15 MB / 418.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01509/0.1071, allocations: 13.36 MB / 431.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009158/0.1163, allocations: 4.645 MB / 436.5 MB, free: 10.51 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001952/0.1183, allocations: 103.5 kB / 436.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007404/0.1257, allocations: 4.131 MB / 440.7 MB, free: 6.262 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005349/0.131, allocations: 2.113 MB / 442.8 MB, free: 4.141 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002052/0.1331, allocations: 0.8149 MB / 443.7 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1926/0.3256, allocations: 4.737 MB / 448.4 MB, free: 7.914 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005462/0.3311, allocations: 4.269 MB / 452.7 MB, free: 7.598 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003696/0.3348, allocations: 1.961 MB / 454.6 MB, free: 7.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004536/0.3393, allocations: 2.884 MB / 457.5 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001664/0.341, allocations: 452.4 kB / 458 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003425/0.3444, allocations: 1.369 MB / 459.3 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003393/0.3478, allocations: 2.377 MB / 461.7 MB, free: 6.918 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005005/0.3528, allocations: 2.792 MB / 464.5 MB, free: 5.996 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01158/0.3644, allocations: 8.937 MB / 473.4 MB, free: 2.633 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.3644, allocations: 1.125 kB / 473.4 MB, free: 2.633 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3644, allocations: 4 kB / 473.4 MB, free: 2.629 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003158/0.3647, allocations: 0 / 473.4 MB, free: 2.629 MB / 366.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.03288/0.3976, allocations: 7.207 MB / 480.6 MB, free: 14.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.3977, allocations: 12.92 kB / 480.7 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001909/0.3979, allocations: 125.9 kB / 480.8 MB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002568/0.4004, allocations: 0.8391 MB / 481.6 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0855/0.4859, allocations: 7.16 MB / 488.8 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009368/0.4953, allocations: 3.588 MB / 492.4 MB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002842/0.4956, allocations: 305.8 kB / 492.7 MB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001757/0.4973, allocations: 406.6 kB / 493.1 MB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03026/0.5276, allocations: 13.25 MB / 0.4944 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002045/0.5278, allocations: 51.3 kB / 0.4945 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00138/0.5292, allocations: 184.2 kB / 0.4947 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004919/0.5341, allocations: 2.194 MB / 0.4968 GB, free: 6.652 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03053/0.5646, allocations: 12.68 MB / 0.5092 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07473/0.6393, allocations: 49.16 MB / 0.5572 GB, free: 8.504 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0258/0.6651, allocations: 6.241 MB / 0.5633 GB, free: 2.129 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005292/0.6704, allocations: 3.669 MB / 0.5669 GB, free: 14.46 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009303/0.6714, allocations: 425.3 kB / 0.5673 GB, free: 14 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.469e-05/0.6714, allocations: 63.38 kB / 0.5673 GB, free: 13.93 MB / 478.1 MB Notification: Performance of pre-optimization done (n=214): time 4.778e-06/0.6714, allocations: 0 / 0.5673 GB, free: 13.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=252): time 0.1135/0.7849, allocations: 36.33 MB / 0.6028 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/0.7851, allocations: 204.9 kB / 0.603 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008617/0.7937, allocations: 4.448 MB / 0.6074 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0008983/0.7946, allocations: 61.7 kB / 0.6074 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00336/0.7979, allocations: 3.601 MB / 0.6109 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001965/0.7999, allocations: 0.995 MB / 0.6119 GB, free: 164 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0044/0.8043, allocations: 1.568 MB / 0.6134 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001807/0.8045, allocations: 301.1 kB / 0.6137 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007525/0.812, allocations: 4.272 MB / 0.6179 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01172/0.8237, allocations: 8.158 MB / 0.6259 GB, free: 16 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01854/0.8423, allocations: 13.29 MB / 0.6388 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.302e-05/0.8424, allocations: 43.94 kB / 0.6389 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of matching and sorting (n=880) (initialization): time 0.2141/1.056, allocations: 14.6 MB / 0.6531 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.43e-05/1.057, allocations: 64.97 kB / 0.6532 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001733/1.057, allocations: 136.8 kB / 0.6533 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007408/1.064, allocations: 2.506 MB / 0.6558 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006801/1.071, allocations: 1.751 MB / 0.6575 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01788/1.089, allocations: 17.22 MB / 0.6743 GB, free: 169 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007069/1.096, allocations: 472.9 kB / 0.6748 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001995/1.098, allocations: 0.4938 MB / 0.6752 GB, free: 168.9 MB / 0.5294 GB 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,15,100.0%), (4,21,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004753/1.103, allocations: 2.379 MB / 0.6776 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001027/1.104, allocations: 419.1 kB / 0.678 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01416/1.118, allocations: 9.609 MB / 0.6873 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.994e-05/1.118, allocations: 28.81 kB / 0.6874 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/1.118, allocations: 8 kB / 0.6874 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.178e-05/1.118, allocations: 15.06 kB / 0.6874 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02622/1.144, allocations: 18.15 MB / 0.7051 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.399e-05/1.144, allocations: 8.594 kB / 0.7051 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00305/1.147, allocations: 0.581 MB / 0.7057 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006064/1.153, allocations: 2.265 MB / 0.7079 GB, free: 140.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007603/1.154, allocations: 135.8 kB / 0.708 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01581/1.17, allocations: 15.69 MB / 0.7234 GB, free: 124.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.17, allocations: 6.125 kB / 0.7234 GB, free: 124.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01949/1.189, allocations: 15.13 MB / 0.7381 GB, free: 109.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/1.19, allocations: 478 kB / 0.7386 GB, free: 108.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007011/1.191, allocations: 44 kB / 0.7386 GB, free: 108.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002872/1.194, allocations: 219.7 kB / 0.7388 GB, free: 108.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007156/1.195, allocations: 242.3 kB / 0.7391 GB, free: 108.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003114/1.195, allocations: 151.8 kB / 0.7392 GB, free: 108 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003334/1.198, allocations: 2.8 MB / 0.742 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/1.198, allocations: 4 kB / 0.742 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005752/1.204, allocations: 1.414 MB / 0.7433 GB, free: 103.8 MB / 0.5294 GB 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 (195): * Single equations (assignments): 189 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (4,18,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01807/1.222, allocations: 15.81 MB / 0.7588 GB, free: 87.88 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01264/1.235, allocations: 10.12 MB / 0.7687 GB, free: 77.75 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/1.235, allocations: 0 / 0.7687 GB, free: 77.75 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005635/1.24, allocations: 4.396 MB / 0.7729 GB, free: 73.32 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003661/1.244, allocations: 0.5097 MB / 0.7734 GB, free: 72.84 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2762/1.52, allocations: 69.84 MB / 0.8416 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004288/1.525, allocations: 3.739 MB / 0.8453 GB, free: 173 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005611/1.53, allocations: 2.38 MB / 0.8476 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003928/1.534, allocations: 2.511 MB / 0.8501 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.523e-06/1.534, allocations: 3.875 kB / 0.8501 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1526/1.687, allocations: 116.2 MB / 0.9636 GB, free: 77.12 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.28/20.97, allocations: 4.062 kB / 0.9636 GB, free: 77.11 MB / 0.5294 GB " [Timeout remaining time 639] (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/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 --stepSize=0.00019992 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 23.371355401992332] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia2.phi', 'inertia2.w', 'revolute1.phi', 'revolute1.w', 'revolute2.phi', 'revolute2.w', 'revolute3.phi', 'revolute3.w'] 21.170238491962664 21.191508948 20.822206331 Calling exit ...