Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001997/0.001997, allocations: 100.2 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002539/0.002538, allocations: 192.1 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.727/2.727, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 47.92 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1545, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.02378/0.1784, allocations: 11.75 MB / 339.1 MB, free: 8.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01529/0.1938, allocations: 3.918 MB / 343 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003547/0.1974, allocations: 67.81 kB / 343.1 MB, free: 4.574 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009085/0.2065, allocations: 2.706 MB / 345.8 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009131/0.2157, allocations: 1.895 MB / 347.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002651/0.2184, allocations: 0.5615 MB / 348.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01081/0.2293, allocations: 3.754 MB / 352 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007692/0.237, allocations: 3.698 MB / 355.7 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004873/0.2419, allocations: 1.534 MB / 357.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006093/0.2481, allocations: 2.122 MB / 359.4 MB, free: 4.203 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00191/0.25, allocations: 340 kB / 359.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00439/0.2545, allocations: 1.053 MB / 360.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004569/0.2591, allocations: 1.925 MB / 362.7 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006374/0.2656, allocations: 2.253 MB / 364.9 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01571/0.2813, allocations: 6.951 MB / 371.9 MB, free: 7.648 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.189e-05/0.2814, allocations: 4 kB / 371.9 MB, free: 7.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.2814, allocations: 0 / 371.9 MB, free: 7.645 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003301/0.2818, allocations: 0 / 371.9 MB, free: 7.645 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.0373/0.3191, allocations: 5.326 MB / 377.2 MB, free: 2.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.418e-05/0.3192, allocations: 8.031 kB / 377.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003595/0.3228, allocations: 0.7278 MB / 378 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3617/0.6845, allocations: 1.894 MB / 379.9 MB, free: 49.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/0.6955, allocations: 2.767 MB / 382.6 MB, free: 48.37 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004523/0.696, allocations: 242.2 kB / 382.9 MB, free: 48.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002349/0.6984, allocations: 315.3 kB / 383.2 MB, free: 48.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03951/0.7379, allocations: 10.71 MB / 393.9 MB, free: 43.51 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002835/0.7383, allocations: 48.44 kB / 393.9 MB, free: 43.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001333/0.7396, allocations: 154.2 kB / 394.1 MB, free: 43.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005832/0.7455, allocations: 1.981 MB / 396.1 MB, free: 42.9 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03181/0.7773, allocations: 9.567 MB / 405.6 MB, free: 34.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07853/0.856, allocations: 39.92 MB / 445.6 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02282/0.8789, allocations: 3.845 MB / 449.4 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004445/0.8834, allocations: 1.848 MB / 451.2 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001029/0.8844, allocations: 356.2 kB / 451.6 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.353e-05/0.8846, allocations: 55.48 kB / 451.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of pre-optimization done (n=148): time 6.222e-06/0.8846, allocations: 0 / 451.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of matching and sorting (n=154): time 0.0813/0.9659, allocations: 13.8 MB / 465.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/0.9661, allocations: 153.5 kB / 465.6 MB, free: 5.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01456/0.9807, allocations: 4.175 MB / 469.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005965/0.9814, allocations: 49.7 kB / 469.8 MB, free: 1.102 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004409/0.9858, allocations: 3.166 MB / 473 MB, free: 13.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001893/0.9877, allocations: 0.6135 MB / 473.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007862/0.9956, allocations: 1.229 MB / 474.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003022/0.996, allocations: 309 kB / 475.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007087/1.003, allocations: 2.128 MB / 477.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01284/1.016, allocations: 5.948 MB / 483.2 MB, free: 1.719 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02032/1.036, allocations: 8.754 MB / 492 MB, free: 7.055 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002474/1.037, allocations: 44 kB / 492 MB, free: 7.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.03562/1.072, allocations: 8.549 MB / 0.4888 GB, free: 14.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003466/1.073, allocations: 60 kB / 0.4889 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000437/1.073, allocations: 136 kB / 0.489 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004761/1.078, allocations: 0.9234 MB / 0.4899 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009082/1.087, allocations: 1.392 MB / 0.4913 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01236/1.1, allocations: 5.201 MB / 0.4963 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009329/1.109, allocations: 327.6 kB / 0.4967 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001972/1.111, allocations: 384 kB / 0.497 GB, free: 5.91 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * Number of states: 0 () * Number of discrete variables: 36 (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 (736): * Single equations (assignments): 732 * 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.008833/1.12, allocations: 2.095 MB / 0.4991 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001698/1.122, allocations: 347.4 kB / 0.4994 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008669/1.13, allocations: 3.148 MB / 0.5025 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.64e-05/1.131, allocations: 20 kB / 0.5025 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.33e-05/1.131, allocations: 4 kB / 0.5025 GB, free: 272 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.843e-05/1.131, allocations: 7.969 kB / 0.5025 GB, free: 264 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02399/1.155, allocations: 7.843 MB / 0.5102 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-05/1.155, allocations: 4 kB / 0.5102 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/1.156, allocations: 259.6 kB / 0.5104 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002539/1.159, allocations: 0.7175 MB / 0.5111 GB, free: 7.355 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003882/1.159, allocations: 39.97 kB / 0.5112 GB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008567/1.168, allocations: 4.743 MB / 0.5158 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.02e-05/1.168, allocations: 8.016 kB / 0.5158 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01301/1.181, allocations: 5.675 MB / 0.5213 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/1.184, allocations: 0.6214 MB / 0.5219 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001419/1.185, allocations: 24 kB / 0.522 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002472/1.188, allocations: 83.89 kB / 0.5221 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004602/1.188, allocations: 101.1 kB / 0.5221 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002068/1.188, allocations: 59.95 kB / 0.5222 GB, free: 11.81 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.006515/1.195, allocations: 2.611 MB / 0.5248 GB, free: 9.188 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.775e-06/1.195, allocations: 7.875 kB / 0.5248 GB, free: 9.18 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007662/1.203, allocations: 0.97 MB / 0.5257 GB, free: 8.215 MB / 430.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 (123): * Single equations (assignments): 119 * 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.0119/1.214, allocations: 6.324 MB / 0.5319 GB, free: 1.852 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.2934/1.508, allocations: 5.719 MB / 0.5375 GB, free: 148.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.416e-05/1.508, allocations: 0 / 0.5375 GB, free: 148.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004538/1.513, allocations: 1.531 MB / 0.539 GB, free: 148.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005214/1.518, allocations: 447.2 kB / 0.5394 GB, free: 148.1 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1339/1.652, allocations: 52.11 MB / 0.5903 GB, free: 100.6 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004036/1.656, allocations: 3.244 MB / 0.5934 GB, free: 97.31 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005112/1.661, allocations: 1.929 MB / 0.5953 GB, free: 95.38 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002968/1.664, allocations: 1.882 MB / 0.5972 GB, free: 93.49 MB / 430.1 MB Notification: Performance of SimCode: time 1.472e-06/1.664, allocations: 0 / 0.5972 GB, free: 93.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1499/1.814, allocations: 71.38 MB / 0.6669 GB, free: 21.95 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.96/21.78, allocations: 19.7 kB / 0.6669 GB, free: 21.93 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches