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.MovingActuatedDrive.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.001325/0.001325, allocations: 105.1 kB / 21.22 MB, free: 0.6797 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.001516/0.001516, allocations: 209.7 kB / 24.54 MB, free: 4.055 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.387/1.387, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.MovingActuatedDrive,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",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.002656/0.002656, allocations: 72.75 kB / 378.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.2314, allocations: 53.37 MB / 431.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01533/0.2467, allocations: 13.08 MB / 445 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008811/0.2555, allocations: 4.327 MB / 449.3 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001608/0.2571, allocations: 95.56 kB / 449.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006981/0.2641, allocations: 3.761 MB / 453.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005226/0.2693, allocations: 2.039 MB / 455.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001667/0.271, allocations: 0.7018 MB / 455.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006005/0.277, allocations: 4.216 MB / 460.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004526/0.2815, allocations: 3.623 MB / 463.8 MB, free: 6.891 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003254/0.2848, allocations: 1.854 MB / 465.6 MB, free: 5.031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004023/0.2888, allocations: 2.644 MB / 468.3 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008959/0.2897, allocations: 408 kB / 468.7 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002327/0.292, allocations: 1.163 MB / 469.8 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002295/0.2943, allocations: 2.24 MB / 472.1 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003092/0.2974, allocations: 2.594 MB / 474.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01014/0.3076, allocations: 8.112 MB / 482.8 MB, free: 3.816 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3076, allocations: 0 / 482.8 MB, free: 3.816 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3076, allocations: 0 / 482.8 MB, free: 3.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002202/0.3078, allocations: 0 / 482.8 MB, free: 3.816 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: 1736 * Number of variables: 1736 Notification: Performance of Generate backend data structure: time 0.01981/0.3276, allocations: 6.26 MB / 489 MB, free: 13.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.3276, allocations: 12.03 kB / 489 MB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001326/0.329, allocations: 0.8346 MB / 489.9 MB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006802/0.3358, allocations: 2.002 MB / 491.9 MB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006064/0.3418, allocations: 2.838 MB / 494.7 MB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/0.3421, allocations: 295.5 kB / 495 MB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001037/0.3431, allocations: 383.8 kB / 495.4 MB, free: 7.078 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02301/0.3661, allocations: 12.19 MB / 0.4957 GB, free: 10.14 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001438/0.3663, allocations: 43.59 kB / 0.4957 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005408/0.3668, allocations: 179.9 kB / 0.4959 GB, free: 9.922 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004071/0.3709, allocations: 2.198 MB / 0.498 GB, free: 7.723 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02264/0.3935, allocations: 11.13 MB / 0.5089 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.244/0.6375, allocations: 46.32 MB / 0.5541 GB, free: 70.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0152/0.6527, allocations: 4.712 MB / 0.5587 GB, free: 70.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003148/0.6558, allocations: 3.071 MB / 0.5617 GB, free: 69.01 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004683/0.6563, allocations: 149.7 kB / 0.5619 GB, free: 68.99 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.662e-05/0.6563, allocations: 53.72 kB / 0.5619 GB, free: 68.94 MB / 446.1 MB Notification: Performance of pre-optimization done (n=200): time 4.679e-06/0.6564, allocations: 3.75 kB / 0.5619 GB, free: 68.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.06143/0.7178, allocations: 26.8 MB / 0.5881 GB, free: 48.87 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.7178, allocations: 154 kB / 0.5883 GB, free: 48.69 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004544/0.7224, allocations: 4.502 MB / 0.5927 GB, free: 44.26 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004659/0.7228, allocations: 61.7 kB / 0.5927 GB, free: 44.19 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001376/0.7242, allocations: 3.567 MB / 0.5962 GB, free: 40.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007616/0.725, allocations: 0.9132 MB / 0.5971 GB, free: 40.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001489/0.7265, allocations: 1.449 MB / 0.5985 GB, free: 38.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.321e-05/0.7265, allocations: 305.1 kB / 0.5988 GB, free: 38.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003475/0.73, allocations: 3.269 MB / 0.602 GB, free: 35.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00464/0.7346, allocations: 7.209 MB / 0.609 GB, free: 25.92 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009289/0.7439, allocations: 11.3 MB / 0.6201 GB, free: 12.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.748e-05/0.744, allocations: 40 kB / 0.6201 GB, free: 12.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=869) (initialization): time 0.01543/0.7594, allocations: 11.4 MB / 0.6312 GB, free: 1.293 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.183e-05/0.7595, allocations: 66.66 kB / 0.6313 GB, free: 1.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000124/0.7596, allocations: 136 kB / 0.6314 GB, free: 1.098 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002414/0.762, allocations: 1.125 MB / 0.6325 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006331/0.7684, allocations: 1.715 MB / 0.6342 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009178/0.7775, allocations: 6.239 MB / 0.6403 GB, free: 7.898 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005419/0.783, allocations: 403.7 kB / 0.6407 GB, free: 7.504 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001284/0.7842, allocations: 449.4 kB / 0.6411 GB, free: 7.066 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (830): * Single equations (assignments): 826 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004442/0.7887, allocations: 2.329 MB / 0.6434 GB, free: 4.73 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009828/0.7897, allocations: 425.1 kB / 0.6438 GB, free: 4.312 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01074/0.8004, allocations: 6.094 MB / 0.6497 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.326e-05/0.8004, allocations: 24 kB / 0.6498 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.8005, allocations: 9.016 kB / 0.6498 GB, free: 14.17 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.754e-05/0.8005, allocations: 11.97 kB / 0.6498 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02274/0.8232, allocations: 12.71 MB / 0.6622 GB, free: 1.379 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-05/0.8232, allocations: 4 kB / 0.6622 GB, free: 1.375 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002788/0.826, allocations: 0.5384 MB / 0.6627 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0026/0.8286, allocations: 0.9489 MB / 0.6636 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003197/0.829, allocations: 88.83 kB / 0.6637 GB, free: 15.79 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008452/0.8374, allocations: 5.974 MB / 0.6696 GB, free: 9.711 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.8374, allocations: 11.94 kB / 0.6696 GB, free: 9.699 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01634/0.8537, allocations: 10.36 MB / 0.6797 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00226/0.856, allocations: 0.8365 MB / 0.6805 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005962/0.8566, allocations: 44.36 kB / 0.6805 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002027/0.8586, allocations: 159.8 kB / 0.6807 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005208/0.8592, allocations: 189.4 kB / 0.6809 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002653/0.8594, allocations: 107.9 kB / 0.681 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004641/0.8641, allocations: 2.826 MB / 0.6837 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.8641, allocations: 0 / 0.6837 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005673/0.8697, allocations: 1.187 MB / 0.6849 GB, free: 9.941 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.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 (203): * Single equations (assignments): 199 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0167/0.8864, allocations: 11.02 MB / 0.6957 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01241/0.8988, allocations: 7.462 MB / 0.703 GB, free: 7.418 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/0.8988, allocations: 4 kB / 0.703 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004464/0.9033, allocations: 2.794 MB / 0.7057 GB, free: 4.605 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002943/0.9063, allocations: 0.4947 MB / 0.7062 GB, free: 4.121 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2896/1.196, allocations: 59.66 MB / 0.7644 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003512/1.199, allocations: 3.615 MB / 0.768 GB, free: 179.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004823/1.204, allocations: 2.285 MB / 0.7702 GB, free: 178.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003333/1.207, allocations: 2.319 MB / 0.7725 GB, free: 176 MB / 0.545 GB Notification: Performance of SimCode: time 1.292e-06/1.207, allocations: 2.344 kB / 0.7725 GB, free: 176 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1354/1.343, allocations: 97.62 MB / 0.8678 GB, free: 78.93 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.59/21.93, allocations: 4.062 kB / 0.8678 GB, free: 78.92 MB / 0.545 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 24.30027968203649] Failed to read output from testmodel.py, exit status != 0: ['time', 'position1.w', 'position2.w', 'r1.phi', 'r2.phi', 'revolute.phi', 'revolute.w', 'rotor1D.phi', 'rotor1D.w'] 22.06905943201855 22.082838352 21.772065499 Calling exit ...