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) 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 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_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.001936/0.001936, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.002406/0.002406, allocations: 191.5 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.279/2.279, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 47.92 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.184, allocations: 49.43 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.02645/0.2106, allocations: 11.12 MB / 361.3 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01458/0.2252, allocations: 3.831 MB / 365.1 MB, free: 5.316 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003922/0.2293, allocations: 63.81 kB / 365.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008564/0.2379, allocations: 2.694 MB / 367.9 MB, free: 2.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008736/0.2467, allocations: 1.804 MB / 369.7 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002612/0.2494, allocations: 0.5732 MB / 370.2 MB, free: 172 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.4015/0.651, allocations: 3.574 MB / 373.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008364/0.6594, allocations: 3.617 MB / 377.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005338/0.6648, allocations: 1.465 MB / 378.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005963/0.6708, allocations: 2.004 MB / 380.9 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001867/0.6727, allocations: 318.2 kB / 381.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00463/0.6774, allocations: 1.056 MB / 382.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00352/0.6809, allocations: 1.826 MB / 384.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005408/0.6864, allocations: 2.129 MB / 386.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01377/0.7002, allocations: 6.589 MB / 392.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.297e-05/0.7003, allocations: 6.906 kB / 392.8 MB, free: 3.895 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.7003, allocations: 0 / 392.8 MB, free: 3.895 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000369/0.7007, allocations: 0 / 392.8 MB, free: 3.895 MB / 302.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.03387/0.7345, allocations: 5.111 MB / 397.9 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.619e-05/0.7346, allocations: 12.84 kB / 397.9 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002265/0.7369, allocations: 0.6896 MB / 398.6 MB, free: 148 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01248/0.7494, allocations: 1.858 MB / 400.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008952/0.7584, allocations: 2.557 MB / 403.1 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000337/0.7588, allocations: 225.9 kB / 403.3 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001904/0.7607, allocations: 298.1 kB / 403.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03825/0.799, allocations: 10.21 MB / 413.8 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003859/0.7994, allocations: 44.91 kB / 413.8 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002782/0.8023, allocations: 146.9 kB / 414 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006644/0.809, allocations: 1.865 MB / 415.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03583/0.8448, allocations: 9.123 MB / 424.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08728/0.9322, allocations: 38.3 MB / 463.2 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.023/0.9552, allocations: 3.586 MB / 466.8 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004562/0.9599, allocations: 1.672 MB / 468.5 MB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0011/0.961, allocations: 363.9 kB / 468.9 MB, free: 9.496 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.558e-05/0.9611, allocations: 47.06 kB / 468.9 MB, free: 9.441 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 8.526e-06/0.9612, allocations: 0 / 468.9 MB, free: 9.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=133): time 0.08163/1.043, allocations: 12.75 MB / 481.6 MB, free: 12.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001775/1.043, allocations: 141.2 kB / 481.8 MB, free: 12.42 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01632/1.059, allocations: 4.069 MB / 485.9 MB, free: 8.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008278/1.06, allocations: 41.7 kB / 485.9 MB, free: 8.273 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005982/1.066, allocations: 3.05 MB / 488.9 MB, free: 5.227 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001824/1.068, allocations: 0.5434 MB / 489.5 MB, free: 4.688 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006146/1.074, allocations: 1.173 MB / 490.7 MB, free: 3.504 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002662/1.075, allocations: 305.1 kB / 491 MB, free: 3.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006464/1.081, allocations: 1.959 MB / 492.9 MB, free: 1.238 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01271/1.094, allocations: 5.665 MB / 498.6 MB, free: 9.711 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02146/1.116, allocations: 8.267 MB / 0.495 GB, free: 15.62 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003035/1.116, allocations: 40 kB / 0.495 GB, free: 15.58 MB / 430.1 MB Notification: Performance of matching and sorting (n=737) (initialization): time 0.03321/1.149, allocations: 8.079 MB / 0.5029 GB, free: 7.492 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001746/1.149, allocations: 67.94 kB / 0.503 GB, free: 7.426 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002881/1.15, allocations: 132 kB / 0.5031 GB, free: 7.297 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004706/1.154, allocations: 0.9146 MB / 0.504 GB, free: 6.379 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008349/1.163, allocations: 1.314 MB / 0.5053 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01354/1.176, allocations: 5.189 MB / 0.5103 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01021/1.187, allocations: 307.6 kB / 0.5106 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002116/1.189, allocations: 374.7 kB / 0.511 GB, free: 15.07 MB / 446.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.007708/1.197, allocations: 2.017 MB / 0.513 GB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00156/1.198, allocations: 331.6 kB / 0.5133 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009731/1.208, allocations: 2.763 MB / 0.516 GB, free: 9.926 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001656/1.208, allocations: 16 kB / 0.516 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.639e-05/1.208, allocations: 4 kB / 0.516 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.342e-05/1.208, allocations: 7.969 kB / 0.516 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0335/1.242, allocations: 7.127 MB / 0.523 GB, free: 2.711 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.133e-05/1.242, allocations: 4 kB / 0.523 GB, free: 2.707 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002156/1.244, allocations: 215.8 kB / 0.5232 GB, free: 2.496 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003982/1.248, allocations: 0.7144 MB / 0.5239 GB, free: 1.781 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005075/1.249, allocations: 35.97 kB / 0.5239 GB, free: 1.746 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4034/1.652, allocations: 4.747 MB / 0.5285 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-05/1.652, allocations: 9.328 kB / 0.5285 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01493/1.667, allocations: 5.082 MB / 0.5335 GB, free: 142.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00205/1.669, allocations: 387.3 kB / 0.5339 GB, free: 142.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001244/1.671, allocations: 23.94 kB / 0.5339 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002443/1.673, allocations: 77.73 kB / 0.534 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005319/1.674, allocations: 90.86 kB / 0.5341 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002159/1.674, allocations: 40.22 kB / 0.5341 GB, free: 142.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009482/1.683, allocations: 2.548 MB / 0.5366 GB, free: 141.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.81e-07/1.683, allocations: 0 / 0.5366 GB, free: 141.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01169/1.695, allocations: 0.9043 MB / 0.5375 GB, free: 141.3 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.01484/1.71, allocations: 5.733 MB / 0.5431 GB, free: 139.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01264/1.723, allocations: 5.106 MB / 0.5481 GB, free: 137.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/1.723, allocations: 0 / 0.5481 GB, free: 137.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002952/1.726, allocations: 1.348 MB / 0.5494 GB, free: 137 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005557/1.731, allocations: 442.1 kB / 0.5498 GB, free: 136.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1079/1.839, allocations: 49.05 MB / 0.5977 GB, free: 86.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005602/1.845, allocations: 3.104 MB / 0.6007 GB, free: 83.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007909/1.853, allocations: 1.845 MB / 0.6025 GB, free: 81.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004124/1.857, allocations: 1.788 MB / 0.6043 GB, free: 80.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/1.857, allocations: 0 / 0.6043 GB, free: 80.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1834/2.04, allocations: 68.26 MB / 0.6709 GB, free: 12.22 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.95/20.99, allocations: 7.438 kB / 0.6709 GB, free: 12.22 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches