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.001407/0.001407, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001584/0.001584, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 67.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3113, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01315/0.3245, allocations: 10.99 MB / 419.7 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008939/0.3335, allocations: 3.82 MB / 423.6 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002122/0.3356, allocations: 63.81 kB / 423.6 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005462/0.3412, allocations: 2.679 MB / 426.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005231/0.3464, allocations: 1.755 MB / 428.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001618/0.3481, allocations: 0.5809 MB / 428.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005984/0.3541, allocations: 3.575 MB / 432.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005648/0.3598, allocations: 3.599 MB / 435.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003239/0.3631, allocations: 1.445 MB / 437.3 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003587/0.3667, allocations: 1.99 MB / 439.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000946/0.3676, allocations: 312 kB / 439.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002575/0.3702, allocations: 1.034 MB / 440.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002036/0.3723, allocations: 1.781 MB / 442.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002623/0.3749, allocations: 2.085 MB / 444.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009384/0.3843, allocations: 6.684 MB / 451.1 MB, free: 6.918 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.3844, allocations: 0 / 451.1 MB, free: 6.918 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3844, allocations: 0 / 451.1 MB, free: 6.918 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002431/0.3846, allocations: 0 / 451.1 MB, free: 6.918 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01864/0.4033, allocations: 5.176 MB / 456.3 MB, free: 1.668 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.742e-05/0.4034, allocations: 15.97 kB / 456.3 MB, free: 1.652 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001412/0.4048, allocations: 0.6781 MB / 457 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007217/0.412, allocations: 1.89 MB / 458.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005674/0.4177, allocations: 2.472 MB / 461.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001909/0.418, allocations: 225.7 kB / 461.6 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007598/0.4187, allocations: 299.8 kB / 461.9 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01947/0.4382, allocations: 10.02 MB / 471.9 MB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001136/0.4384, allocations: 39.64 kB / 471.9 MB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004572/0.4388, allocations: 147.9 kB / 472.1 MB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003232/0.4421, allocations: 1.809 MB / 473.9 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01876/0.4608, allocations: 8.959 MB / 482.9 MB, free: 6.355 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05135/0.5122, allocations: 37.81 MB / 0.5085 GB, free: 15.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01304/0.5253, allocations: 3.584 MB / 0.512 GB, free: 11.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002494/0.5279, allocations: 1.676 MB / 0.5136 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006142/0.5285, allocations: 355.7 kB / 0.5139 GB, free: 9.645 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.543e-05/0.5286, allocations: 51.17 kB / 0.514 GB, free: 9.586 MB / 446.1 MB Notification: Performance of pre-optimization done (n=127): time 4.338e-06/0.5286, allocations: 3.938 kB / 0.514 GB, free: 9.582 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.04056/0.5691, allocations: 12.89 MB / 0.5266 GB, free: 12.59 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.723e-05/0.5693, allocations: 149.1 kB / 0.5267 GB, free: 12.41 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005968/0.5753, allocations: 4.061 MB / 0.5307 GB, free: 8.324 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003475/0.5756, allocations: 45.7 kB / 0.5307 GB, free: 8.273 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002627/0.5783, allocations: 3.127 MB / 0.5338 GB, free: 5.117 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008158/0.5791, allocations: 0.5661 MB / 0.5343 GB, free: 4.547 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001525/0.5806, allocations: 1.174 MB / 0.5355 GB, free: 3.359 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.5808, allocations: 305.1 kB / 0.5358 GB, free: 3.059 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003006/0.5838, allocations: 1.951 MB / 0.5377 GB, free: 1.102 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2391/0.8229, allocations: 5.638 MB / 0.5432 GB, free: 118.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008213/0.8312, allocations: 8.241 MB / 0.5512 GB, free: 111.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002119/0.8314, allocations: 38.88 kB / 0.5513 GB, free: 111.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=734) (initialization): time 0.0148/0.8462, allocations: 8.072 MB / 0.5592 GB, free: 109.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.8464, allocations: 59.16 kB / 0.5592 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001548/0.8465, allocations: 135.9 kB / 0.5593 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002114/0.8486, allocations: 0.9114 MB / 0.5602 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004047/0.8527, allocations: 1.311 MB / 0.5615 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005427/0.8581, allocations: 5.191 MB / 0.5666 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004562/0.8627, allocations: 304.2 kB / 0.5669 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008688/0.8636, allocations: 375.5 kB / 0.5672 GB, free: 103.3 MB / 462.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.003219/0.8669, allocations: 1.982 MB / 0.5692 GB, free: 101.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007626/0.8676, allocations: 353.3 kB / 0.5695 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004395/0.872, allocations: 2.761 MB / 0.5722 GB, free: 99.11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.304e-05/0.8721, allocations: 19.5 kB / 0.5722 GB, free: 99.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.8721, allocations: 7.938 kB / 0.5722 GB, free: 99.09 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/0.8721, allocations: 11.97 kB / 0.5722 GB, free: 99.08 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/0.8838, allocations: 7.054 MB / 0.5791 GB, free: 92.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.8838, allocations: 0.6875 kB / 0.5791 GB, free: 92.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009304/0.8848, allocations: 211.7 kB / 0.5793 GB, free: 91.81 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001808/0.8866, allocations: 0.7231 MB / 0.58 GB, free: 91.08 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.8867, allocations: 35.97 kB / 0.5801 GB, free: 91.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00455/0.8913, allocations: 4.75 MB / 0.5847 GB, free: 86.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.8913, allocations: 4 kB / 0.5847 GB, free: 86.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006007/0.8973, allocations: 5.114 MB / 0.5897 GB, free: 81.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008193/0.8982, allocations: 403.6 kB / 0.5901 GB, free: 80.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000314/0.8985, allocations: 24.38 kB / 0.5901 GB, free: 80.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.8996, allocations: 67.91 kB / 0.5902 GB, free: 80.68 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002394/0.8998, allocations: 84.53 kB / 0.5903 GB, free: 80.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.625e-05/0.8999, allocations: 47.25 kB / 0.5903 GB, free: 80.55 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00296/0.9029, allocations: 2.549 MB / 0.5928 GB, free: 77.99 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.9029, allocations: 0 / 0.5928 GB, free: 77.99 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004416/0.9073, allocations: 0.8752 MB / 0.5937 GB, free: 77.12 MB / 462.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.006197/0.9135, allocations: 5.755 MB / 0.5993 GB, free: 71.33 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006144/0.9197, allocations: 4.661 MB / 0.6038 GB, free: 66.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.9197, allocations: 0.6875 kB / 0.6038 GB, free: 66.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001451/0.9212, allocations: 1.348 MB / 0.6051 GB, free: 65.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/0.9234, allocations: 434.5 kB / 0.6056 GB, free: 64.92 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05429/0.9777, allocations: 43.54 MB / 0.6481 GB, free: 15.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002801/0.9806, allocations: 3.064 MB / 0.6511 GB, free: 12.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003492/0.9841, allocations: 1.842 MB / 0.6529 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002034/0.9862, allocations: 1.749 MB / 0.6546 GB, free: 9.055 MB / 462.1 MB Notification: Performance of SimCode: time 8.41e-07/0.9862, allocations: 0 / 0.6546 GB, free: 9.055 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1328/1.119, allocations: 64.16 MB / 0.7172 GB, free: 9.281 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.08/23.2, allocations: 3.75 kB / 0.7172 GB, free: 9.277 MB / 0.5137 GB (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.1.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