Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.001463/0.001463, allocations: 121.4 kB / 17.79 MB, free: 5.121 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.001496/0.001496, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.355/1.355, allocations: 225.6 MB / 249.1 MB, free: 3.625 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.MovingActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 55.91 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08675/0.08821, allocations: 52.13 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01492/0.1031, allocations: 13.18 MB / 431 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008419/0.1115, allocations: 4.295 MB / 435.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001497/0.113, allocations: 79.81 kB / 435.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00684/0.1199, allocations: 3.769 MB / 439.1 MB, free: 7.234 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004903/0.1248, allocations: 2.074 MB / 441.2 MB, free: 5.152 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001606/0.1264, allocations: 0.698 MB / 441.9 MB, free: 4.453 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005692/0.1321, allocations: 4.221 MB / 446.1 MB, free: 228 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.177/0.3091, allocations: 3.961 MB / 450 MB, free: 7.926 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002542/0.3116, allocations: 1.855 MB / 451.9 MB, free: 7.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003872/0.3155, allocations: 2.654 MB / 454.6 MB, free: 7.543 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00121/0.3167, allocations: 412.4 kB / 455 MB, free: 7.543 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002494/0.3192, allocations: 1.18 MB / 456.1 MB, free: 7.535 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002383/0.3216, allocations: 2.294 MB / 458.4 MB, free: 7.262 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003204/0.3248, allocations: 2.641 MB / 461.1 MB, free: 6.344 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008671/0.3335, allocations: 8.266 MB / 469.3 MB, free: 4.117 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3335, allocations: 0.5625 kB / 469.3 MB, free: 4.117 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3335, allocations: 1.125 kB / 469.3 MB, free: 4.117 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002197/0.3337, allocations: 0 / 469.3 MB, free: 4.117 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: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.01935/0.353, allocations: 6.377 MB / 475.7 MB, free: 288 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.3531, allocations: 9.625 kB / 475.7 MB, free: 288 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001706/0.3548, allocations: 0.8394 MB / 476.6 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00702/0.3618, allocations: 1.998 MB / 478.6 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007184/0.369, allocations: 3.031 MB / 481.6 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001928/0.3692, allocations: 297.4 kB / 481.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001072/0.3703, allocations: 390.2 kB / 482.3 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02341/0.3937, allocations: 12.36 MB / 494.6 MB, free: 4.031 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001999/0.3939, allocations: 52.34 kB / 494.7 MB, free: 4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001229/0.3951, allocations: 184.7 kB / 494.9 MB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004321/0.3994, allocations: 2.258 MB / 497.1 MB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.025/0.4244, allocations: 11.29 MB / 0.4965 GB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06999/0.4944, allocations: 46.88 MB / 0.5423 GB, free: 7.145 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01769/0.5121, allocations: 5.175 MB / 0.5473 GB, free: 1.832 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004469/0.5166, allocations: 3.064 MB / 0.5503 GB, free: 14.77 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007219/0.5173, allocations: 380 kB / 0.5507 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.953e-05/0.5173, allocations: 58.5 kB / 0.5507 GB, free: 14.29 MB / 462.1 MB Notification: Performance of pre-optimization done (n=200): time 5.32e-06/0.5174, allocations: 0 / 0.5507 GB, free: 14.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.07839/0.5957, allocations: 27.07 MB / 0.5772 GB, free: 3.172 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.5959, allocations: 153.2 kB / 0.5773 GB, free: 2.992 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007948/0.6038, allocations: 4.521 MB / 0.5817 GB, free: 14.45 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005693/0.6044, allocations: 53.7 kB / 0.5818 GB, free: 14.39 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003065/0.6074, allocations: 3.606 MB / 0.5853 GB, free: 10.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00143/0.6089, allocations: 0.9221 MB / 0.5862 GB, free: 9.895 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003208/0.6121, allocations: 1.459 MB / 0.5876 GB, free: 8.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.6122, allocations: 301.1 kB / 0.5879 GB, free: 8.133 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00534/0.6175, allocations: 3.277 MB / 0.5911 GB, free: 4.852 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008753/0.6263, allocations: 7.233 MB / 0.5982 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01537/0.6417, allocations: 11.32 MB / 0.6092 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001182/0.6418, allocations: 43.98 kB / 0.6093 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02251/0.6643, allocations: 11.42 MB / 0.6204 GB, free: 3.57 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.6644, allocations: 65 kB / 0.6205 GB, free: 3.508 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002017/0.6646, allocations: 140 kB / 0.6206 GB, free: 3.371 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002896/0.6675, allocations: 1.128 MB / 0.6217 GB, free: 2.238 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006263/0.6738, allocations: 1.715 MB / 0.6234 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009022/0.6828, allocations: 6.349 MB / 0.6296 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00548/0.6883, allocations: 411.6 kB / 0.63 GB, free: 9.629 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001273/0.6896, allocations: 451.8 kB / 0.6304 GB, free: 9.188 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.arrowLine.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 (833): * Single equations (assignments): 829 * 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.005261/0.6948, allocations: 2.358 MB / 0.6327 GB, free: 6.82 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001128/0.696, allocations: 429.1 kB / 0.6331 GB, free: 6.398 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01148/0.7074, allocations: 6.094 MB / 0.6391 GB, free: 292 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.271e-05/0.7075, allocations: 27.91 kB / 0.6391 GB, free: 268 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.7075, allocations: 4 kB / 0.6391 GB, free: 264 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.418e-05/0.7075, allocations: 23.89 kB / 0.6391 GB, free: 240 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2024/0.9099, allocations: 12.76 MB / 0.6516 GB, free: 179 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.752e-05/0.9099, allocations: 6.969 kB / 0.6516 GB, free: 179 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002695/0.9126, allocations: 0.537 MB / 0.6521 GB, free: 179 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002456/0.9151, allocations: 0.9484 MB / 0.6531 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004186/0.9155, allocations: 88.06 kB / 0.6532 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006707/0.9222, allocations: 6.083 MB / 0.6591 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.9222, allocations: 6.906 kB / 0.6591 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01199/0.9342, allocations: 10.35 MB / 0.6692 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002497/0.9367, allocations: 0.9022 MB / 0.6701 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006805/0.9374, allocations: 44.33 kB / 0.6701 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00198/0.9394, allocations: 164.6 kB / 0.6703 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004343/0.9398, allocations: 183.8 kB / 0.6705 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002195/0.94, allocations: 108 kB / 0.6706 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003453/0.9435, allocations: 2.826 MB / 0.6733 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.9435, allocations: 0 / 0.6733 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004721/0.9482, allocations: 1.209 MB / 0.6745 GB, free: 170.7 MB / 0.5294 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.0115/0.9597, allocations: 11.04 MB / 0.6853 GB, free: 162.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008926/0.9686, allocations: 7.481 MB / 0.6926 GB, free: 156 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.9686, allocations: 0 / 0.6926 GB, free: 156 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003301/0.9719, allocations: 2.796 MB / 0.6953 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003085/0.975, allocations: 0.5066 MB / 0.6958 GB, free: 152.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06411/1.039, allocations: 59.81 MB / 0.7542 GB, free: 86.73 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003199/1.042, allocations: 3.666 MB / 0.7578 GB, free: 83.05 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004445/1.047, allocations: 2.289 MB / 0.76 GB, free: 80.75 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00282/1.05, allocations: 2.342 MB / 0.7623 GB, free: 78.41 MB / 0.5294 GB Notification: Performance of SimCode: time 1.213e-06/1.05, allocations: 0 / 0.7623 GB, free: 78.41 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2956/1.345, allocations: 92.42 MB / 0.8526 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.39/21.73, allocations: 9.031 kB / 0.8526 GB, free: 177.2 MB / 0.5294 GB " [Timeout remaining time 638] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 25.59615828935057]