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.001457/0.001457, allocations: 106.2 kB / 18.25 MB, free: 4.781 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.001263/0.001263, allocations: 195.3 kB / 19.18 MB, free: 3.859 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.4/1.4, allocations: 205.1 MB / 225 MB, free: 12.31 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.001411/0.001411, allocations: 60.12 kB / 281.3 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09258/0.09401, allocations: 46.63 MB / 328 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01335/0.1074, allocations: 11.74 MB / 339.7 MB, free: 8.664 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009691/0.1171, allocations: 3.914 MB / 343.6 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002648/0.1199, allocations: 63.88 kB / 343.7 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005673/0.1256, allocations: 2.721 MB / 346.4 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005659/0.1313, allocations: 1.883 MB / 348.3 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001733/0.133, allocations: 0.5655 MB / 348.8 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00598/0.139, allocations: 3.758 MB / 352.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005417/0.1445, allocations: 3.698 MB / 356.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003174/0.1477, allocations: 1.538 MB / 357.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003611/0.1513, allocations: 2.114 MB / 360 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001388/0.1527, allocations: 344 kB / 360.3 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002937/0.1557, allocations: 1.057 MB / 361.3 MB, free: 2.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002741/0.1585, allocations: 1.913 MB / 363.3 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004196/0.1627, allocations: 2.245 MB / 365.5 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009096/0.1718, allocations: 6.939 MB / 372.4 MB, free: 7.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.1719, allocations: 3.938 kB / 372.4 MB, free: 7.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1719, allocations: 0 / 372.4 MB, free: 7.762 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002421/0.1721, allocations: 4 kB / 372.5 MB, free: 7.758 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.02002/0.1922, allocations: 5.302 MB / 377.8 MB, free: 2.387 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.1922, allocations: 8.031 kB / 377.8 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007205/0.1994, allocations: 1.886 MB / 379.6 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1906/0.3901, allocations: 2.344 MB / 382 MB, free: 48.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002813/0.3904, allocations: 235.3 kB / 382.2 MB, free: 48.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001428/0.3919, allocations: 319.7 kB / 382.5 MB, free: 48.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02362/0.4155, allocations: 10.71 MB / 393.2 MB, free: 43.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002443/0.4158, allocations: 44.81 kB / 393.3 MB, free: 43.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007973/0.4166, allocations: 151 kB / 393.4 MB, free: 43.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00394/0.4206, allocations: 1.99 MB / 395.4 MB, free: 43.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02019/0.4408, allocations: 9.561 MB / 405 MB, free: 35.99 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04882/0.4897, allocations: 39.92 MB / 444.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01451/0.5042, allocations: 3.844 MB / 448.8 MB, free: 7.066 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002871/0.5072, allocations: 1.844 MB / 450.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007143/0.5079, allocations: 360.2 kB / 450.9 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.355e-05/0.508, allocations: 55.48 kB / 451 MB, free: 4.746 MB / 334.1 MB Notification: Performance of pre-optimization done (n=148): time 6.542e-06/0.508, allocations: 0 / 451 MB, free: 4.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=154): time 0.05077/0.5588, allocations: 13.76 MB / 464.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.5589, allocations: 145.5 kB / 464.9 MB, free: 6.691 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008001/0.567, allocations: 4.159 MB / 469.1 MB, free: 2.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004543/0.5675, allocations: 53.69 kB / 469.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002772/0.5702, allocations: 3.16 MB / 472.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001127/0.5714, allocations: 0.6095 MB / 472.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003311/0.5747, allocations: 1.225 MB / 474.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.5749, allocations: 309 kB / 474.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003858/0.5787, allocations: 2.135 MB / 476.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006493/0.5852, allocations: 5.96 MB / 482.5 MB, free: 3.059 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/0.5964, allocations: 8.782 MB / 491.3 MB, free: 8.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001628/0.5966, allocations: 44 kB / 491.3 MB, free: 8.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01843/0.615, allocations: 8.569 MB / 499.9 MB, free: 15.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001789/0.6153, allocations: 64 kB / 500 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002232/0.6155, allocations: 136 kB / 0.4884 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002747/0.6183, allocations: 0.9188 MB / 0.4893 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004979/0.6233, allocations: 1.4 MB / 0.4906 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007659/0.6309, allocations: 5.201 MB / 0.4957 GB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00512/0.6361, allocations: 335.6 kB / 0.496 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001197/0.6373, allocations: 387.9 kB / 0.4964 GB, free: 7.184 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 (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.004546/0.6419, allocations: 2.099 MB / 0.4985 GB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001049/0.643, allocations: 351.4 kB / 0.4988 GB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006801/0.6498, allocations: 3.144 MB / 0.5019 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-05/0.6499, allocations: 16 kB / 0.5019 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.43e-05/0.6499, allocations: 4 kB / 0.5019 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.559e-05/0.6499, allocations: 11.97 kB / 0.5019 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01743/0.6674, allocations: 7.83 MB / 0.5095 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.189e-05/0.6674, allocations: 3.984 kB / 0.5095 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001435/0.6689, allocations: 255.6 kB / 0.5098 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002263/0.6712, allocations: 0.7187 MB / 0.5105 GB, free: 8.641 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002683/0.6715, allocations: 35.97 kB / 0.5105 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006342/0.6778, allocations: 4.751 MB / 0.5152 GB, free: 3.715 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.6779, allocations: 3.938 kB / 0.5152 GB, free: 3.711 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009294/0.6872, allocations: 5.679 MB / 0.5207 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/0.689, allocations: 0.6252 MB / 0.5213 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008382/0.6898, allocations: 27.98 kB / 0.5214 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00183/0.6917, allocations: 79.89 kB / 0.5214 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003575/0.6921, allocations: 104.8 kB / 0.5215 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/0.6922, allocations: 51.97 kB / 0.5216 GB, free: 13.09 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005279/0.6975, allocations: 2.607 MB / 0.5241 GB, free: 10.47 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6975, allocations: 0 / 0.5241 GB, free: 10.47 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005874/0.7034, allocations: 0.9674 MB / 0.5251 GB, free: 9.508 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.0005875/0.704, allocations: 159 kB / 0.5252 GB, free: 9.348 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0107/0.7147, allocations: 5.739 MB / 0.5308 GB, free: 3.641 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.739e-06/0.7148, allocations: 3.938 kB / 0.5308 GB, free: 3.637 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00253/0.7173, allocations: 1.547 MB / 0.5323 GB, free: 2.086 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003509/0.7209, allocations: 440.7 kB / 0.5328 GB, free: 1.66 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1829/0.9038, allocations: 9.542 MB / 0.5421 GB, free: 142.9 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006611/0.9104, allocations: 3.228 MB / 0.5452 GB, free: 142.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001429/0.9119, allocations: 324.7 kB / 0.5455 GB, free: 142.1 MB / 430.1 MB Notification: Performance of SimCode: time 1.162e-06/0.9119, allocations: 0 / 0.5455 GB, free: 142.1 MB / 430.1 MB Notification: Performance of Templates: time 0.09919/1.011, allocations: 75.92 MB / 0.6197 GB, free: 77.11 MB / 430.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