Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001805/0.001805, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00247/0.00247, allocations: 213.6 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.52/1.52, allocations: 230.6 MB / 258.3 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 67.89 kB / 378.6 MB, free: 3.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2566, allocations: 53.36 MB / 431.9 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01599/0.2726, allocations: 13.54 MB / 445.5 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.2828, allocations: 4.595 MB / 450 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002041/0.2849, allocations: 111.4 kB / 450.2 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007983/0.2928, allocations: 4.241 MB / 454.4 MB, free: 392 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005673/0.2985, allocations: 2.197 MB / 456.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002202/0.3007, allocations: 0.9357 MB / 457.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009125/0.3098, allocations: 6.124 MB / 463.7 MB, free: 7.105 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006072/0.3159, allocations: 4.032 MB / 467.7 MB, free: 3.008 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004489/0.3204, allocations: 2.154 MB / 469.8 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005207/0.3256, allocations: 3.014 MB / 472.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001482/0.3271, allocations: 472 kB / 473.3 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003023/0.3301, allocations: 1.381 MB / 474.7 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003106/0.3332, allocations: 2.571 MB / 477.3 MB, free: 9.402 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004294/0.3375, allocations: 2.902 MB / 480.2 MB, free: 6.484 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01217/0.3497, allocations: 9.192 MB / 489.4 MB, free: 13.26 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3497, allocations: 0 / 489.4 MB, free: 13.26 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3497, allocations: 4 kB / 489.4 MB, free: 13.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002706/0.35, allocations: 0 / 489.4 MB, free: 13.25 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01688/0.3668, allocations: 6.346 MB / 495.7 MB, free: 6.844 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.3669, allocations: 12.03 kB / 495.7 MB, free: 6.832 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002266/0.3692, allocations: 0.8307 MB / 496.6 MB, free: 5.992 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03619/0.4053, allocations: 6.094 MB / 0.4909 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/0.4169, allocations: 4.125 MB / 0.4949 GB, free: 11.7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003111/0.4172, allocations: 304.1 kB / 0.4952 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00173/0.419, allocations: 431.7 kB / 0.4956 GB, free: 10.98 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02314/0.4421, allocations: 11.43 MB / 0.5068 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002255/0.4423, allocations: 59.58 kB / 0.5068 GB, free: 14.75 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001072/0.4434, allocations: 183.9 kB / 0.507 GB, free: 14.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003642/0.4471, allocations: 2.026 MB / 0.509 GB, free: 12.53 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02033/0.4674, allocations: 9.679 MB / 0.5184 GB, free: 2.84 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2574/0.7248, allocations: 44.7 MB / 0.5621 GB, free: 70.17 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009426/0.7342, allocations: 3.645 MB / 0.5656 GB, free: 69.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002508/0.7367, allocations: 2.174 MB / 0.5678 GB, free: 68.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01196/0.7487, allocations: 8.945 MB / 0.5765 GB, free: 63.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.7487, allocations: 52.44 kB / 0.5765 GB, free: 63.35 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 5.46e-06/0.7487, allocations: 0 / 0.5765 GB, free: 63.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04401/0.7927, allocations: 18.29 MB / 0.5944 GB, free: 46.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.7928, allocations: 201.2 kB / 0.5946 GB, free: 46.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005193/0.798, allocations: 4.706 MB / 0.5992 GB, free: 41.53 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003641/0.7983, allocations: 57.7 kB / 0.5992 GB, free: 41.47 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001543/0.7999, allocations: 3.73 MB / 0.6029 GB, free: 38.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006401/0.8005, allocations: 0.7926 MB / 0.6037 GB, free: 37.23 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001256/0.8018, allocations: 1.27 MB / 0.6049 GB, free: 35.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.454e-05/0.8018, allocations: 305.1 kB / 0.6052 GB, free: 35.65 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002817/0.8046, allocations: 2.179 MB / 0.6073 GB, free: 33.47 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004157/0.8088, allocations: 6.015 MB / 0.6132 GB, free: 25.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007223/0.816, allocations: 8.885 MB / 0.6219 GB, free: 14.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.153e-05/0.8161, allocations: 40.75 kB / 0.6219 GB, free: 14.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01383/0.8299, allocations: 8.773 MB / 0.6305 GB, free: 5.953 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.969e-05/0.83, allocations: 67.94 kB / 0.6305 GB, free: 5.887 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/0.8301, allocations: 135.9 kB / 0.6307 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002751/0.8329, allocations: 1.082 MB / 0.6317 GB, free: 4.672 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004244/0.8371, allocations: 1.427 MB / 0.6331 GB, free: 3.242 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.8479, allocations: 8.634 MB / 0.6416 GB, free: 10.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004464/0.8524, allocations: 343.6 kB / 0.6419 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008295/0.8532, allocations: 380 kB / 0.6422 GB, free: 9.676 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (753): * Single equations (assignments): 748 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,33,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003846/0.8571, allocations: 2.455 MB / 0.6446 GB, free: 7.211 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008337/0.8579, allocations: 441.1 kB / 0.6451 GB, free: 6.777 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00684/0.8647, allocations: 3.472 MB / 0.6485 GB, free: 3.289 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-05/0.8648, allocations: 28 kB / 0.6485 GB, free: 3.262 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.8648, allocations: 8 kB / 0.6485 GB, free: 3.254 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.461e-05/0.8648, allocations: 7.969 kB / 0.6485 GB, free: 3.246 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01811/0.8829, allocations: 8.892 MB / 0.6572 GB, free: 10.32 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.595e-05/0.8829, allocations: 0 / 0.6572 GB, free: 10.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/0.8845, allocations: 307.6 kB / 0.6575 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002905/0.8874, allocations: 0.8534 MB / 0.6583 GB, free: 9.156 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002742/0.8877, allocations: 32 kB / 0.6583 GB, free: 9.125 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01056/0.8983, allocations: 7.713 MB / 0.6659 GB, free: 1.191 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.8983, allocations: 4 kB / 0.6659 GB, free: 1.188 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01019/0.9084, allocations: 6.052 MB / 0.6718 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.9097, allocations: 404.9 kB / 0.6722 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006535/0.9103, allocations: 36 kB / 0.6722 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001571/0.9119, allocations: 91.88 kB / 0.6723 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003792/0.9123, allocations: 125.1 kB / 0.6724 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/0.9124, allocations: 54.27 kB / 0.6725 GB, free: 10.41 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005059/0.9175, allocations: 2.977 MB / 0.6754 GB, free: 7.434 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.9175, allocations: 0 / 0.6754 GB, free: 7.434 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005264/0.9227, allocations: 1.121 MB / 0.6765 GB, free: 6.312 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (147): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01071/0.9334, allocations: 6.725 MB / 0.683 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009405/0.9428, allocations: 5.333 MB / 0.6882 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.9428, allocations: 4 kB / 0.6882 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003177/0.946, allocations: 1.769 MB / 0.69 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003221/0.9492, allocations: 0.5789 MB / 0.6905 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2852/1.234, allocations: 51.19 MB / 0.7405 GB, free: 197 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0045/1.239, allocations: 3.813 MB / 0.7443 GB, free: 196.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004052/1.243, allocations: 1.993 MB / 0.7462 GB, free: 196.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002464/1.245, allocations: 2.322 MB / 0.7485 GB, free: 195.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.313e-06/1.245, allocations: 3.969 kB / 0.7485 GB, free: 195.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1242/1.37, allocations: 88.68 MB / 0.8351 GB, free: 116.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.83/28.2, allocations: 6.688 kB / 0.8351 GB, free: 116.5 MB / 0.545 GB " [Timeout remaining time 632] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 30.872880798764527] Failed to read output from testmodel.py, exit status != 0: ['time', 'gearConstraint.actuatedRevolute_b.phi', 'gearConstraint.actuatedRevolute_b.w', 'inertia2.phi', 'inertia2.w'] 28.34295845683664 28.352886952 28.000512847 Calling exit ...