Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.ActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001786/0.001786, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001926/0.001926, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 66.55 kB / 307.1 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1233, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01518/0.1386, allocations: 10.99 MB / 368.6 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2468/0.3854, allocations: 3.831 MB / 372.4 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001922/0.3874, allocations: 64.56 kB / 372.5 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005333/0.3928, allocations: 2.677 MB / 375.1 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004972/0.3978, allocations: 1.763 MB / 376.9 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00157/0.3994, allocations: 0.5765 MB / 377.5 MB, free: 9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006507/0.4059, allocations: 3.572 MB / 381 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005869/0.4118, allocations: 3.596 MB / 384.6 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004613/0.4165, allocations: 1.45 MB / 386.1 MB, free: 6.488 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004314/0.4208, allocations: 1.99 MB / 388.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001281/0.4221, allocations: 314.6 kB / 388.4 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003307/0.4255, allocations: 1.035 MB / 389.4 MB, free: 5.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002265/0.4277, allocations: 1.777 MB / 391.2 MB, free: 4.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002889/0.4306, allocations: 2.086 MB / 393.3 MB, free: 2.805 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007594/0.4382, allocations: 6.429 MB / 399.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.4383, allocations: 5.625 kB / 399.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4383, allocations: 0 / 399.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002151/0.4385, allocations: 0 / 399.7 MB, free: 14.52 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01906/0.4576, allocations: 5.054 MB / 404.8 MB, free: 9.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.4577, allocations: 12.03 kB / 404.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00112/0.4588, allocations: 0.6758 MB / 405.5 MB, free: 8.996 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006882/0.4657, allocations: 1.863 MB / 407.3 MB, free: 7.129 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005049/0.4708, allocations: 2.428 MB / 409.8 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.471, allocations: 230.6 kB / 410 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007426/0.4717, allocations: 301.3 kB / 410.3 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0197/0.4914, allocations: 10.02 MB / 420.3 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000154/0.4916, allocations: 35.69 kB / 420.3 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006155/0.4922, allocations: 147.3 kB / 420.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003504/0.4957, allocations: 1.812 MB / 422.3 MB, free: 7.652 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0195/0.5153, allocations: 8.958 MB / 431.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04937/0.5647, allocations: 37.88 MB / 469.1 MB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01333/0.5781, allocations: 3.576 MB / 472.7 MB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002638/0.5808, allocations: 1.677 MB / 474.4 MB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005735/0.5813, allocations: 360 kB / 474.7 MB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.5814, allocations: 43.12 kB / 474.8 MB, free: 2.055 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.336e-06/0.5814, allocations: 0 / 474.8 MB, free: 2.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=133): time 0.04451/0.6259, allocations: 12.69 MB / 487.5 MB, free: 5.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.101e-05/0.626, allocations: 145.1 kB / 487.6 MB, free: 5.078 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007666/0.6337, allocations: 4.052 MB / 491.7 MB, free: 0.9961 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004501/0.6342, allocations: 41.7 kB / 491.7 MB, free: 0.9492 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00309/0.6373, allocations: 3.005 MB / 494.7 MB, free: 13.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0012/0.6386, allocations: 0.5471 MB / 495.2 MB, free: 13.41 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003115/0.6417, allocations: 1.162 MB / 496.4 MB, free: 12.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.6418, allocations: 313 kB / 496.7 MB, free: 11.92 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003315/0.6452, allocations: 1.955 MB / 498.7 MB, free: 9.961 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005855/0.651, allocations: 5.634 MB / 0.4925 GB, free: 2.465 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01105/0.6621, allocations: 8.241 MB / 0.5005 GB, free: 8.379 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001387/0.6623, allocations: 36 kB / 0.5006 GB, free: 8.344 MB / 430.1 MB Notification: Performance of matching and sorting (n=734) (initialization): time 0.01676/0.6791, allocations: 8.053 MB / 0.5084 GB, free: 292 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001629/0.6793, allocations: 72.2 kB / 0.5085 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002169/0.6795, allocations: 132 kB / 0.5086 GB, free: 88 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002688/0.6822, allocations: 0.906 MB / 0.5095 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004496/0.6867, allocations: 1.314 MB / 0.5108 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007594/0.6944, allocations: 5.193 MB / 0.5159 GB, free: 8.527 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005032/0.6994, allocations: 307.6 kB / 0.5162 GB, free: 8.227 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001297/0.7008, allocations: 368 kB / 0.5165 GB, free: 7.867 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.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 (695): * Single equations (assignments): 691 * 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.004978/0.7058, allocations: 1.988 MB / 0.5185 GB, free: 5.867 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009757/0.7068, allocations: 331.7 kB / 0.5188 GB, free: 5.539 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006417/0.7132, allocations: 2.766 MB / 0.5215 GB, free: 2.758 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.046e-05/0.7133, allocations: 16 kB / 0.5215 GB, free: 2.742 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.7133, allocations: 7.984 kB / 0.5215 GB, free: 2.734 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.002e-05/0.7133, allocations: 7.984 kB / 0.5215 GB, free: 2.727 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2216/0.9349, allocations: 7.073 MB / 0.5284 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.56e-05/0.935, allocations: 2.859 kB / 0.5284 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001341/0.9363, allocations: 214.6 kB / 0.5286 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002758/0.9391, allocations: 0.7173 MB / 0.5293 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002363/0.9394, allocations: 36.53 kB / 0.5294 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006558/0.9459, allocations: 4.743 MB / 0.534 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.892e-06/0.946, allocations: 7.234 kB / 0.534 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009433/0.9554, allocations: 5.084 MB / 0.539 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.9569, allocations: 387.7 kB / 0.5393 GB, free: 134 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001061/0.958, allocations: 19.69 kB / 0.5393 GB, free: 134 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002127/0.9601, allocations: 74.73 kB / 0.5394 GB, free: 134 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003701/0.9605, allocations: 94.52 kB / 0.5395 GB, free: 134 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/0.9607, allocations: 49.61 kB / 0.5396 GB, free: 133.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005836/0.9665, allocations: 2.535 MB / 0.542 GB, free: 133.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9665, allocations: 2.406 kB / 0.542 GB, free: 133.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006683/0.9732, allocations: 0.8774 MB / 0.5429 GB, free: 133 MB / 446.1 MB 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.008578/0.9818, allocations: 5.728 MB / 0.5485 GB, free: 130.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008397/0.9902, allocations: 5.093 MB / 0.5535 GB, free: 129.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.9903, allocations: 0 / 0.5535 GB, free: 129.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001702/0.992, allocations: 1.347 MB / 0.5548 GB, free: 128.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003144/0.9951, allocations: 433.3 kB / 0.5552 GB, free: 128.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07062/1.066, allocations: 48.77 MB / 0.6028 GB, free: 75.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005/1.071, allocations: 3.06 MB / 0.6058 GB, free: 72.44 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004677/1.076, allocations: 1.842 MB / 0.6076 GB, free: 70.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002465/1.078, allocations: 1.745 MB / 0.6093 GB, free: 68.84 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/1.078, allocations: 0 / 0.6093 GB, free: 68.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1137/1.192, allocations: 67.83 MB / 0.6755 GB, free: 1.301 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/12.57, allocations: 3.75 kB / 0.6755 GB, free: 1.297 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.csv","/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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches