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.001679/0.001679, allocations: 119.5 kB / 18.51 MB, free: 4.555 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.00207/0.00207, allocations: 205.6 kB / 21.45 MB, free: 1.609 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.491/1.491, allocations: 230.5 MB / 254.8 MB, free: 15.11 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.002678/0.002678, allocations: 75.81 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1221, allocations: 53.31 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2096/0.3316, allocations: 13.5 MB / 440.5 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009498/0.3411, allocations: 4.566 MB / 445.1 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002992/0.3441, allocations: 109.6 kB / 445.2 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008305/0.3524, allocations: 4.23 MB / 449.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006935/0.3594, allocations: 2.181 MB / 451.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002764/0.3621, allocations: 0.9359 MB / 452.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01006/0.3722, allocations: 6.115 MB / 458.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006234/0.3784, allocations: 4.34 MB / 463 MB, free: 8.566 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004828/0.3833, allocations: 2.158 MB / 465.1 MB, free: 7.348 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005631/0.3889, allocations: 3.003 MB / 468.1 MB, free: 5.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001785/0.3907, allocations: 471.6 kB / 468.6 MB, free: 5.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003727/0.3944, allocations: 1.379 MB / 470 MB, free: 4.992 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003685/0.3981, allocations: 2.573 MB / 472.6 MB, free: 3.199 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006033/0.4041, allocations: 2.894 MB / 475.4 MB, free: 296 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01528/0.4194, allocations: 9.2 MB / 484.6 MB, free: 7.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.4194, allocations: 4 kB / 484.7 MB, free: 7.047 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4194, allocations: 0 / 484.7 MB, free: 7.047 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003039/0.4197, allocations: 0 / 484.7 MB, free: 7.047 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: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01765/0.4374, allocations: 6.418 MB / 491.1 MB, free: 0.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.4374, allocations: 16.03 kB / 491.1 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002429/0.4398, allocations: 0.8307 MB / 491.9 MB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03991/0.4798, allocations: 6.09 MB / 498 MB, free: 9.586 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01007/0.4898, allocations: 4.217 MB / 0.4905 GB, free: 5.316 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000321/0.4901, allocations: 300.3 kB / 0.4907 GB, free: 5.023 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001744/0.4919, allocations: 435.6 kB / 0.4912 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02365/0.5155, allocations: 11.42 MB / 0.5023 GB, free: 8.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002248/0.5158, allocations: 51.59 kB / 0.5024 GB, free: 8.379 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001165/0.5169, allocations: 188.8 kB / 0.5025 GB, free: 8.195 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003761/0.5207, allocations: 2.026 MB / 0.5045 GB, free: 6.156 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02089/0.5416, allocations: 9.681 MB / 0.514 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06303/0.6046, allocations: 44.86 MB / 0.5578 GB, free: 14.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01156/0.6162, allocations: 4.103 MB / 0.5618 GB, free: 10.06 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00336/0.6195, allocations: 2.183 MB / 0.5639 GB, free: 7.863 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01671/0.6362, allocations: 9.432 MB / 0.5731 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.388e-05/0.6363, allocations: 51.56 kB / 0.5732 GB, free: 14.21 MB / 494.1 MB Notification: Performance of pre-optimization done (n=171): time 5.68e-06/0.6363, allocations: 0 / 0.5732 GB, free: 14.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=197): time 0.05679/0.6931, allocations: 18.43 MB / 0.5912 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/0.6932, allocations: 201.2 kB / 0.5914 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008879/0.7021, allocations: 4.71 MB / 0.596 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000378/0.7025, allocations: 57.7 kB / 0.596 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003318/0.7058, allocations: 3.728 MB / 0.5997 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001141/0.7069, allocations: 0.7908 MB / 0.6004 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002788/0.7097, allocations: 1.274 MB / 0.6017 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.7099, allocations: 309.1 kB / 0.602 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003699/0.7136, allocations: 2.183 MB / 0.6041 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006981/0.7205, allocations: 6.006 MB / 0.61 GB, free: 6.434 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2288/0.9494, allocations: 8.89 MB / 0.6186 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001087/0.9495, allocations: 42.47 kB / 0.6187 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01578/0.9653, allocations: 8.764 MB / 0.6272 GB, free: 150.8 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.699e-05/0.9654, allocations: 62.44 kB / 0.6273 GB, free: 150.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001641/0.9655, allocations: 138.8 kB / 0.6274 GB, free: 150.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003241/0.9688, allocations: 1.07 MB / 0.6285 GB, free: 150.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004586/0.9734, allocations: 1.423 MB / 0.6299 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/0.9835, allocations: 8.851 MB / 0.6385 GB, free: 145 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004679/0.9882, allocations: 338.1 kB / 0.6388 GB, free: 144.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/0.9892, allocations: 383.6 kB / 0.6392 GB, free: 144.9 MB / 0.5137 GB 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.004736/0.994, allocations: 2.447 MB / 0.6416 GB, free: 143.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009912/0.9949, allocations: 435.9 kB / 0.642 GB, free: 143.8 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00702/1.002, allocations: 3.489 MB / 0.6454 GB, free: 142.5 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.415e-05/1.002, allocations: 20.62 kB / 0.6454 GB, free: 142.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.518e-05/1.002, allocations: 7.75 kB / 0.6454 GB, free: 142.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.522e-05/1.002, allocations: 12.3 kB / 0.6455 GB, free: 142.5 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01678/1.019, allocations: 8.931 MB / 0.6542 GB, free: 139.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.72e-05/1.019, allocations: 3.969 kB / 0.6542 GB, free: 139.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001453/1.02, allocations: 292.8 kB / 0.6545 GB, free: 139.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002604/1.023, allocations: 0.85 MB / 0.6553 GB, free: 139 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002101/1.023, allocations: 35.02 kB / 0.6553 GB, free: 139 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007881/1.031, allocations: 7.928 MB / 0.6631 GB, free: 134.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/1.031, allocations: 2.344 kB / 0.6631 GB, free: 134.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008126/1.039, allocations: 6.061 MB / 0.669 GB, free: 130.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/1.04, allocations: 480.3 kB / 0.6694 GB, free: 130 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008847/1.041, allocations: 29.69 kB / 0.6695 GB, free: 130 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001937/1.043, allocations: 99.88 kB / 0.6696 GB, free: 129.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004128/1.043, allocations: 121.7 kB / 0.6697 GB, free: 129.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001486/1.044, allocations: 50.44 kB / 0.6697 GB, free: 129.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004497/1.048, allocations: 2.977 MB / 0.6726 GB, free: 126.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/1.048, allocations: 0 / 0.6726 GB, free: 126.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005777/1.054, allocations: 1.124 MB / 0.6737 GB, free: 125.6 MB / 0.5137 GB 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.008472/1.062, allocations: 6.719 MB / 0.6803 GB, free: 118.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007527/1.07, allocations: 5.335 MB / 0.6855 GB, free: 113.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/1.07, allocations: 4 kB / 0.6855 GB, free: 113.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002419/1.072, allocations: 1.763 MB / 0.6872 GB, free: 111.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004024/1.076, allocations: 0.5704 MB / 0.6878 GB, free: 111.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07163/1.148, allocations: 51.11 MB / 0.7377 GB, free: 54.09 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005798/1.154, allocations: 3.819 MB / 0.7414 GB, free: 50.25 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004896/1.159, allocations: 1.981 MB / 0.7434 GB, free: 48.27 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003465/1.162, allocations: 2.331 MB / 0.7456 GB, free: 45.93 MB / 0.5137 GB Notification: Performance of SimCode: time 1.683e-06/1.162, allocations: 0 / 0.7456 GB, free: 45.93 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3508/1.513, allocations: 83.65 MB / 0.8273 GB, free: 176.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.45/27.97, allocations: 5.938 kB / 0.8273 GB, free: 176.9 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.581538978032768] Failed to read output from testmodel.py, exit status != 0: ['time', 'gearConstraint.actuatedRevolute_b.phi', 'gearConstraint.actuatedRevolute_b.w', 'inertia2.phi', 'inertia2.w'] 28.104304417036474 28.120400715 27.697329836 Calling exit ...