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: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 109.4 kB / 18.4 MB, free: 4.672 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.001529/0.001529, allocations: 189.2 kB / 19.33 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.578/1.578, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.002097/0.002098, allocations: 51.92 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1298, allocations: 46.62 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.2972/0.427, allocations: 11.74 MB / 387.6 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01313/0.4402, allocations: 3.912 MB / 391.5 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00398/0.4443, allocations: 66.69 kB / 391.5 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009071/0.4534, allocations: 2.717 MB / 394.2 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01037/0.4639, allocations: 1.882 MB / 396.1 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002739/0.4667, allocations: 0.5781 MB / 396.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009354/0.4761, allocations: 3.755 MB / 400.5 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008654/0.4848, allocations: 3.69 MB / 404.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005071/0.4899, allocations: 1.529 MB / 405.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006228/0.4962, allocations: 2.128 MB / 407.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002216/0.4985, allocations: 343.8 kB / 408.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005357/0.5039, allocations: 1.06 MB / 409.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005465/0.5094, allocations: 1.939 MB / 411.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006952/0.5164, allocations: 2.232 MB / 413.4 MB, free: 9.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01581/0.5322, allocations: 7.191 MB / 420.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.5323, allocations: 0 / 420.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.5323, allocations: 0 / 420.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003352/0.5327, allocations: 0 / 420.6 MB, free: 2.645 MB / 334.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.0307/0.5634, allocations: 5.31 MB / 425.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.837e-05/0.5635, allocations: 8.031 kB / 425.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01285/0.5764, allocations: 1.882 MB / 427.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008406/0.5848, allocations: 2.381 MB / 430.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000381/0.5853, allocations: 242 kB / 430.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00196/0.5872, allocations: 315.7 kB / 430.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03345/0.6207, allocations: 10.72 MB / 441.4 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002541/0.621, allocations: 43.58 kB / 441.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001723/0.6228, allocations: 151.8 kB / 441.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005875/0.6287, allocations: 1.985 MB / 443.6 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03145/0.6602, allocations: 9.563 MB / 453.2 MB, free: 1.203 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07999/0.7402, allocations: 39.77 MB / 492.9 MB, free: 8.301 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02128/0.7616, allocations: 3.842 MB / 496.8 MB, free: 4.312 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004356/0.766, allocations: 1.853 MB / 498.6 MB, free: 2.449 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009798/0.767, allocations: 360 kB / 499 MB, free: 2.043 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.904e-05/0.7671, allocations: 51.56 kB / 499 MB, free: 1.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 8.256e-06/0.7671, allocations: 0 / 499 MB, free: 1.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.07344/0.8406, allocations: 13.76 MB / 0.5008 GB, free: 4.105 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.8408, allocations: 149.4 kB / 0.5009 GB, free: 3.93 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01198/0.8528, allocations: 4.163 MB / 0.505 GB, free: 15.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005215/0.8534, allocations: 45.7 kB / 0.505 GB, free: 15.69 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004012/0.8574, allocations: 3.168 MB / 0.5081 GB, free: 12.47 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001314/0.8587, allocations: 0.6135 MB / 0.5087 GB, free: 11.85 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004049/0.8628, allocations: 1.221 MB / 0.5099 GB, free: 10.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.863, allocations: 309.1 kB / 0.5102 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006135/0.8691, allocations: 2.135 MB / 0.5123 GB, free: 8.172 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01068/0.8799, allocations: 5.96 MB / 0.5181 GB, free: 300 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01595/0.8959, allocations: 8.772 MB / 0.5267 GB, free: 5.605 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001743/0.8961, allocations: 40 kB / 0.5267 GB, free: 5.566 MB / 462.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.02755/0.9237, allocations: 8.584 MB / 0.5351 GB, free: 12.97 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000209/0.9239, allocations: 64 kB / 0.5351 GB, free: 12.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003142/0.9243, allocations: 136 kB / 0.5353 GB, free: 12.78 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004231/0.9285, allocations: 0.9149 MB / 0.5362 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008086/0.9366, allocations: 1.392 MB / 0.5375 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01193/0.9486, allocations: 5.204 MB / 0.5426 GB, free: 5.117 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008812/0.9575, allocations: 331.6 kB / 0.5429 GB, free: 4.793 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001857/0.9594, allocations: 384 kB / 0.5433 GB, free: 4.418 MB / 478.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 (740): * Single equations (assignments): 736 * 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.007251/0.9667, allocations: 2.103 MB / 0.5453 GB, free: 2.301 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001359/0.9681, allocations: 351.5 kB / 0.5457 GB, free: 1.953 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2923/1.26, allocations: 3.139 MB / 0.5487 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.873e-05/1.26, allocations: 17.88 kB / 0.5488 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.436e-05/1.261, allocations: 8.594 kB / 0.5488 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-05/1.261, allocations: 7.656 kB / 0.5488 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02465/1.285, allocations: 7.798 MB / 0.5564 GB, free: 143.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.307e-05/1.285, allocations: 2.859 kB / 0.5564 GB, free: 143.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002106/1.287, allocations: 260.1 kB / 0.5566 GB, free: 143.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003638/1.291, allocations: 0.7127 MB / 0.5573 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002789/1.291, allocations: 38.41 kB / 0.5574 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009266/1.301, allocations: 4.758 MB / 0.562 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/1.301, allocations: 2.75 kB / 0.562 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01353/1.314, allocations: 5.679 MB / 0.5676 GB, free: 138.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001788/1.316, allocations: 0.6259 MB / 0.5682 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000784/1.317, allocations: 23.84 kB / 0.5682 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001761/1.319, allocations: 88.45 kB / 0.5683 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000338/1.319, allocations: 101 kB / 0.5684 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000164/1.319, allocations: 54.28 kB / 0.5684 GB, free: 138.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004777/1.324, allocations: 2.609 MB / 0.571 GB, free: 137.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.01e-07/1.324, allocations: 2.953 kB / 0.571 GB, free: 137.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005439/1.329, allocations: 0.972 MB / 0.5719 GB, free: 137.4 MB / 478.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.0006156/1.33, allocations: 150.3 kB / 0.5721 GB, free: 137.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00766/1.338, allocations: 5.102 MB / 0.5771 GB, free: 135.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/1.338, allocations: 0 / 0.5771 GB, free: 135.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002007/1.34, allocations: 1.533 MB / 0.5786 GB, free: 135 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003132/1.343, allocations: 447.3 kB / 0.579 GB, free: 134.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01497/1.358, allocations: 9.432 MB / 0.5882 GB, free: 130.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003159/1.361, allocations: 3.234 MB / 0.5914 GB, free: 127.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00102/1.362, allocations: 319.3 kB / 0.5917 GB, free: 126.9 MB / 478.1 MB Notification: Performance of SimCode: time 6.82e-07/1.362, allocations: 0 / 0.5917 GB, free: 126.9 MB / 478.1 MB Notification: Performance of Templates: time 0.08965/1.452, allocations: 77.21 MB / 0.6671 GB, free: 49.53 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/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