Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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.001269/0.001269, allocations: 108.6 kB / 18.49 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.001231/0.001231, allocations: 197 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.399/1.399, allocations: 225.6 MB / 249.8 MB, free: 3.613 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.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 51.92 kB / 366.3 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09875/0.1003, allocations: 52.14 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01385/0.1141, allocations: 11.16 MB / 429.6 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008349/0.1225, allocations: 3.851 MB / 433.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001621/0.1241, allocations: 75.69 kB / 433.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005431/0.1295, allocations: 2.725 MB / 436.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00491/0.1345, allocations: 1.859 MB / 438.1 MB, free: 8.871 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001593/0.136, allocations: 0.5693 MB / 438.7 MB, free: 8.301 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005523/0.1416, allocations: 3.587 MB / 442.3 MB, free: 4.703 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004164/0.1457, allocations: 2.995 MB / 445.3 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002619/0.1484, allocations: 1.487 MB / 446.8 MB, free: 148 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1894/0.3377, allocations: 2.163 MB / 448.9 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007935/0.3385, allocations: 321 kB / 449.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001947/0.3405, allocations: 1.091 MB / 450.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001908/0.3424, allocations: 1.886 MB / 452.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002868/0.3452, allocations: 2.131 MB / 454.4 MB, free: 9.754 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008635/0.3539, allocations: 6.844 MB / 461.2 MB, free: 8.691 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3539, allocations: 0 / 461.2 MB, free: 8.691 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3539, allocations: 0 / 461.2 MB, free: 8.691 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002516/0.3541, allocations: 0 / 461.2 MB, free: 8.691 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.02028/0.3744, allocations: 5.236 MB / 466.4 MB, free: 6.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.3745, allocations: 12.64 kB / 466.5 MB, free: 6.699 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001563/0.3746, allocations: 97.44 kB / 466.6 MB, free: 6.691 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001906/0.3765, allocations: 0.6901 MB / 467.2 MB, free: 6.621 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007263/0.3838, allocations: 1.889 MB / 469.1 MB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005584/0.3894, allocations: 2.596 MB / 471.7 MB, free: 5.219 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002005/0.3896, allocations: 230.3 kB / 472 MB, free: 5.145 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001356/0.3909, allocations: 300.4 kB / 472.2 MB, free: 5.074 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01876/0.4097, allocations: 10.22 MB / 482.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001149/0.4098, allocations: 45.23 kB / 482.5 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005224/0.4103, allocations: 140.4 kB / 482.6 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003181/0.4135, allocations: 1.866 MB / 484.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01868/0.4322, allocations: 9.129 MB / 493.6 MB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05217/0.4844, allocations: 38.22 MB / 0.5194 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01352/0.4979, allocations: 3.49 MB / 0.5228 GB, free: 13.34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002438/0.5003, allocations: 1.579 MB / 0.5243 GB, free: 11.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006524/0.501, allocations: 355.8 kB / 0.5247 GB, free: 11.36 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.148e-05/0.501, allocations: 46.5 kB / 0.5247 GB, free: 11.3 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 4.067e-06/0.501, allocations: 0 / 0.5247 GB, free: 11.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.04414/0.5451, allocations: 12.94 MB / 0.5374 GB, free: 14.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.5453, allocations: 141.2 kB / 0.5375 GB, free: 14.13 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006761/0.552, allocations: 4.078 MB / 0.5415 GB, free: 10.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003619/0.5524, allocations: 45.7 kB / 0.5415 GB, free: 9.973 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002794/0.5552, allocations: 3.181 MB / 0.5446 GB, free: 6.812 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000884/0.5561, allocations: 0.5686 MB / 0.5452 GB, free: 6.25 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002001/0.5581, allocations: 1.182 MB / 0.5463 GB, free: 5.059 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.5582, allocations: 301.1 kB / 0.5466 GB, free: 4.762 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003384/0.5616, allocations: 1.955 MB / 0.5485 GB, free: 2.801 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006692/0.5683, allocations: 5.667 MB / 0.5541 GB, free: 11.32 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/0.579, allocations: 8.27 MB / 0.5622 GB, free: 1.742 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.606e-05/0.5791, allocations: 36 kB / 0.5622 GB, free: 1.707 MB / 462.1 MB Notification: Performance of matching and sorting (n=737) (initialization): time 0.01567/0.5948, allocations: 8.09 MB / 0.5701 GB, free: 9.68 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.327e-05/0.5949, allocations: 64.19 kB / 0.5701 GB, free: 9.617 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001486/0.5951, allocations: 136 kB / 0.5703 GB, free: 9.484 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002616/0.5977, allocations: 0.9107 MB / 0.5712 GB, free: 8.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004129/0.6018, allocations: 1.31 MB / 0.5724 GB, free: 7.258 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007442/0.6092, allocations: 5.21 MB / 0.5775 GB, free: 1.918 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004355/0.6136, allocations: 307.8 kB / 0.5778 GB, free: 1.617 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008288/0.6144, allocations: 368 kB / 0.5782 GB, free: 1.258 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[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 (698): * Single equations (assignments): 694 * 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.003791/0.6182, allocations: 2.017 MB / 0.5801 GB, free: 15.23 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007141/0.6189, allocations: 353.6 kB / 0.5805 GB, free: 14.89 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005921/0.6249, allocations: 2.758 MB / 0.5832 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.585e-05/0.6249, allocations: 12 kB / 0.5832 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.6249, allocations: 4 kB / 0.5832 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-05/0.6249, allocations: 15.97 kB / 0.5832 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01476/0.6397, allocations: 7.108 MB / 0.5902 GB, free: 4.918 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.655e-05/0.6397, allocations: 7.984 kB / 0.5902 GB, free: 4.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.6409, allocations: 218.1 kB / 0.5904 GB, free: 4.699 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002357/0.6432, allocations: 0.7117 MB / 0.5911 GB, free: 3.984 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002017/0.6434, allocations: 35.97 kB / 0.5911 GB, free: 3.949 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006879/0.6503, allocations: 4.752 MB / 0.5957 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.6503, allocations: 7.969 kB / 0.5957 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008804/0.6591, allocations: 5.09 MB / 0.6007 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/0.6603, allocations: 414.6 kB / 0.6011 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005394/0.6608, allocations: 20 kB / 0.6011 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.6621, allocations: 75.91 kB / 0.6012 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003337/0.6624, allocations: 88.47 kB / 0.6013 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.6626, allocations: 43.97 kB / 0.6013 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004753/0.6673, allocations: 2.55 MB / 0.6038 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.6673, allocations: 0 / 0.6038 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005115/0.6724, allocations: 0.9022 MB / 0.6047 GB, free: 5.828 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.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 (101): * Single equations (assignments): 97 * 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 {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00934/0.6818, allocations: 5.749 MB / 0.6103 GB, free: 44 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008254/0.69, allocations: 4.517 MB / 0.6147 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.69, allocations: 192 / 0.6147 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002087/0.6921, allocations: 1.272 MB / 0.616 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002794/0.6949, allocations: 438.1 kB / 0.6164 GB, free: 9.844 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2775/0.9724, allocations: 43.76 MB / 0.6591 GB, free: 177 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00398/0.9764, allocations: 3.105 MB / 0.6621 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004053/0.9804, allocations: 1.849 MB / 0.664 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002268/0.9827, allocations: 1.784 MB / 0.6657 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.483e-06/0.9827, allocations: 1.25 kB / 0.6657 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1002/1.083, allocations: 65.04 MB / 0.7292 GB, free: 118 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.61/22.69, allocations: 12.56 kB / 0.7292 GB, free: 118 MB / 0.5294 GB " [Timeout remaining time 637] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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: 26.15643244900275]