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.001395/0.001395, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2884, allocations: 50.54 MB / 408.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01293/0.3014, allocations: 11 MB / 419.7 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008669/0.3101, allocations: 3.812 MB / 423.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002231/0.3124, allocations: 63.88 kB / 423.6 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005619/0.3181, allocations: 2.683 MB / 426.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004948/0.3231, allocations: 1.794 MB / 428.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001817/0.3249, allocations: 0.5771 MB / 428.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005762/0.3307, allocations: 3.571 MB / 432.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005448/0.3362, allocations: 3.599 MB / 435.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003536/0.3398, allocations: 1.448 MB / 437.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003411/0.3433, allocations: 1.99 MB / 439.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001248/0.3446, allocations: 316 kB / 439.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002835/0.3474, allocations: 1.034 MB / 440.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002764/0.3502, allocations: 1.8 MB / 442.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004196/0.3545, allocations: 2.082 MB / 444.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00996/0.3645, allocations: 6.688 MB / 451.2 MB, free: 6.863 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.3645, allocations: 4 kB / 451.2 MB, free: 6.859 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.3645, allocations: 0 / 451.2 MB, free: 6.859 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002871/0.3648, allocations: 0 / 451.2 MB, free: 6.859 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.02109/0.3859, allocations: 5.176 MB / 456.4 MB, free: 1.609 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/0.386, allocations: 12.03 kB / 456.4 MB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00239/0.3884, allocations: 0.6781 MB / 457.1 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007943/0.3964, allocations: 1.89 MB / 459 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006373/0.4028, allocations: 2.472 MB / 461.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002513/0.4031, allocations: 225.7 kB / 461.6 MB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001447/0.4046, allocations: 291.8 kB / 461.9 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02157/0.4262, allocations: 10.03 MB / 472 MB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002275/0.4265, allocations: 51.58 kB / 472 MB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000904/0.4274, allocations: 139.9 kB / 472.1 MB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003423/0.4308, allocations: 1.813 MB / 474 MB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01939/0.4502, allocations: 8.967 MB / 482.9 MB, free: 6.289 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04953/0.4998, allocations: 37.81 MB / 0.5085 GB, free: 15.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01321/0.5131, allocations: 3.58 MB / 0.512 GB, free: 11.67 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002438/0.5156, allocations: 1.676 MB / 0.5137 GB, free: 9.984 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006693/0.5163, allocations: 351.8 kB / 0.514 GB, free: 9.586 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.521e-05/0.5164, allocations: 59.05 kB / 0.5141 GB, free: 9.52 MB / 446.1 MB Notification: Performance of pre-optimization done (n=127): time 4.98e-06/0.5164, allocations: 4 kB / 0.5141 GB, free: 9.516 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.04551/0.5619, allocations: 12.89 MB / 0.5266 GB, free: 12.53 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.562, allocations: 145.2 kB / 0.5268 GB, free: 12.36 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006881/0.5689, allocations: 4.065 MB / 0.5308 GB, free: 8.266 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003415/0.5693, allocations: 41.7 kB / 0.5308 GB, free: 8.219 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002304/0.5716, allocations: 3.131 MB / 0.5338 GB, free: 5.059 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007647/0.5724, allocations: 0.5622 MB / 0.5344 GB, free: 4.492 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001662/0.5741, allocations: 1.178 MB / 0.5355 GB, free: 3.301 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.5742, allocations: 309.1 kB / 0.5358 GB, free: 2.996 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002944/0.5772, allocations: 1.943 MB / 0.5377 GB, free: 1.047 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2411/0.8183, allocations: 5.648 MB / 0.5433 GB, free: 118.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008352/0.8267, allocations: 8.238 MB / 0.5513 GB, free: 111.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002472/0.827, allocations: 44.38 kB / 0.5513 GB, free: 111.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=734) (initialization): time 0.01613/0.8432, allocations: 8.068 MB / 0.5592 GB, free: 109.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001634/0.8434, allocations: 61.81 kB / 0.5593 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002226/0.8436, allocations: 132.3 kB / 0.5594 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002736/0.8464, allocations: 0.9097 MB / 0.5603 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004501/0.8509, allocations: 1.312 MB / 0.5616 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005887/0.8568, allocations: 5.197 MB / 0.5667 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004843/0.8617, allocations: 314 kB / 0.567 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00123/0.863, allocations: 365.7 kB / 0.5673 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.003671/0.8667, allocations: 1.987 MB / 0.5692 GB, free: 101.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007417/0.8674, allocations: 346.3 kB / 0.5696 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004957/0.8724, allocations: 2.773 MB / 0.5723 GB, free: 99.05 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.872e-05/0.8725, allocations: 19.25 kB / 0.5723 GB, free: 99.04 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.8725, allocations: 4 kB / 0.5723 GB, free: 99.04 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-05/0.8725, allocations: 7.984 kB / 0.5723 GB, free: 99.03 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01358/0.8861, allocations: 7.054 MB / 0.5792 GB, free: 91.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.518e-05/0.8862, allocations: 5.25 kB / 0.5792 GB, free: 91.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.8874, allocations: 211.7 kB / 0.5794 GB, free: 91.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001987/0.8894, allocations: 0.7153 MB / 0.5801 GB, free: 91.03 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002439/0.8897, allocations: 39.91 kB / 0.5801 GB, free: 90.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004918/0.8946, allocations: 4.753 MB / 0.5848 GB, free: 86.15 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.8947, allocations: 3.828 kB / 0.5848 GB, free: 86.15 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006683/0.9013, allocations: 5.108 MB / 0.5898 GB, free: 81.12 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009681/0.9024, allocations: 408 kB / 0.5902 GB, free: 80.71 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007562/0.9031, allocations: 23.98 kB / 0.5902 GB, free: 80.69 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/0.9047, allocations: 67.92 kB / 0.5903 GB, free: 80.62 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003575/0.9051, allocations: 84.52 kB / 0.5903 GB, free: 80.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.9052, allocations: 47.97 kB / 0.5904 GB, free: 80.49 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003944/0.9092, allocations: 2.541 MB / 0.5929 GB, free: 77.93 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.9092, allocations: 0 / 0.5929 GB, free: 77.93 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00545/0.9147, allocations: 0.881 MB / 0.5937 GB, free: 77.06 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.006727/0.9214, allocations: 5.742 MB / 0.5993 GB, free: 71.28 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006227/0.9277, allocations: 4.673 MB / 0.6039 GB, free: 66.64 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.9277, allocations: 0 / 0.6039 GB, free: 66.64 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00149/0.9292, allocations: 1.345 MB / 0.6052 GB, free: 65.28 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/0.9317, allocations: 431 kB / 0.6056 GB, free: 64.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05724/0.989, allocations: 43.55 MB / 0.6481 GB, free: 15.68 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003974/0.993, allocations: 3.052 MB / 0.6511 GB, free: 12.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003826/0.9969, allocations: 1.842 MB / 0.6529 GB, free: 10.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002578/0.9995, allocations: 1.749 MB / 0.6546 GB, free: 8.996 MB / 462.1 MB Notification: Performance of SimCode: time 9.51e-07/0.9995, allocations: 0 / 0.6546 GB, free: 8.996 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1445/1.144, allocations: 64.17 MB / 0.7173 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.71/23.85, allocations: 12.67 kB / 0.7173 GB, free: 9.203 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.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