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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001462/0.001463, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.738/1.738, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008779/0.0008778, allocations: 74.05 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.42e-05/2.443e-05, allocations: 0 / 322.4 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 47.58 MB / 370 MB, free: 1.699 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4077/0.5199, allocations: 98.21 MB / 468.2 MB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003719/0.5203, allocations: 84.27 kB / 468.3 MB, free: 11.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4727/0.993, allocations: 84.84 MB / 0.5402 GB, free: 90.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.9931, allocations: 0 / 0.5402 GB, free: 90.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002174/0.9933, allocations: 84.14 kB / 0.5403 GB, free: 90.86 MB / 410.7 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.0196/1.013, allocations: 4.488 MB / 0.5447 GB, free: 89.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.392e-05/1.013, allocations: 9.469 kB / 0.5447 GB, free: 89.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01138/1.024, allocations: 2.218 MB / 0.5468 GB, free: 88.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01466/1.039, allocations: 4.471 MB / 0.5512 GB, free: 88.31 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003926/1.04, allocations: 322.5 kB / 0.5515 GB, free: 88.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002431/1.042, allocations: 421.9 kB / 0.5519 GB, free: 88.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02713/1.069, allocations: 10.72 MB / 0.5624 GB, free: 85.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002452/1.069, allocations: 69.48 kB / 0.5624 GB, free: 85.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008773/1.07, allocations: 211 kB / 0.5626 GB, free: 85.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001268/1.072, allocations: 0.9966 MB / 0.5636 GB, free: 85.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01765/1.089, allocations: 8.844 MB / 0.5722 GB, free: 84.85 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05146/1.141, allocations: 48.98 MB / 0.6201 GB, free: 47.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0095/1.15, allocations: 3.493 MB / 0.6235 GB, free: 46.13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002123/1.153, allocations: 1.776 MB / 0.6252 GB, free: 45.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006884/1.159, allocations: 4.372 MB / 0.6295 GB, free: 42.11 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/1.159, allocations: 51.28 kB / 0.6295 GB, free: 42.05 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 4.649e-06/1.159, allocations: 0 / 0.6295 GB, free: 42.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.02175/1.181, allocations: 9.744 MB / 0.6391 GB, free: 33.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/1.181, allocations: 149.2 kB / 0.6392 GB, free: 33.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005095/1.186, allocations: 3.69 MB / 0.6428 GB, free: 30.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002644/1.187, allocations: 49.53 kB / 0.6428 GB, free: 30.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001589/1.188, allocations: 3.191 MB / 0.646 GB, free: 27.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005697/1.189, allocations: 0.5951 MB / 0.6465 GB, free: 26.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/1.189, allocations: 116 kB / 0.6467 GB, free: 26.53 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002831/1.189, allocations: 0.5482 MB / 0.6472 GB, free: 26.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002408/1.192, allocations: 1.922 MB / 0.6491 GB, free: 24.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003994/1.196, allocations: 5.726 MB / 0.6547 GB, free: 16.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003892/1.2, allocations: 3.289 MB / 0.6579 GB, free: 14.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.929e-05/1.2, allocations: 40 kB / 0.6579 GB, free: 14.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.01245/1.212, allocations: 8.102 MB / 0.6658 GB, free: 7.098 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.402e-05/1.212, allocations: 64 kB / 0.6659 GB, free: 7.035 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001527/1.213, allocations: 136 kB / 0.666 GB, free: 6.902 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002272/1.215, allocations: 0.9193 MB / 0.6669 GB, free: 6.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00422/1.219, allocations: 1.384 MB / 0.6683 GB, free: 4.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005079/1.224, allocations: 4.788 MB / 0.6729 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005338/1.23, allocations: 323.6 kB / 0.6732 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001105/1.231, allocations: 379.9 kB / 0.6736 GB, free: 15.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 622 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (732): * Single equations (assignments): 728 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009596/1.232, allocations: 0.5711 MB / 0.6742 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007238/1.232, allocations: 347.4 kB / 0.6745 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005692/1.238, allocations: 2.811 MB / 0.6772 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.201e-05/1.238, allocations: 19.95 kB / 0.6773 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/1.238, allocations: 4 kB / 0.6773 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/1.238, allocations: 7.969 kB / 0.6773 GB, free: 11.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01388/1.252, allocations: 6.956 MB / 0.6841 GB, free: 4.531 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/1.252, allocations: 0 / 0.6841 GB, free: 4.531 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/1.253, allocations: 239.6 kB / 0.6843 GB, free: 4.297 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002106/1.255, allocations: 0.703 MB / 0.685 GB, free: 3.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001319/1.256, allocations: 31.66 kB / 0.685 GB, free: 3.562 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2918/1.547, allocations: 4.319 MB / 0.6892 GB, free: 93.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.547, allocations: 5.5 kB / 0.6892 GB, free: 93.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009617/1.557, allocations: 5.091 MB / 0.6942 GB, free: 93.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002205/1.559, allocations: 0.6133 MB / 0.6948 GB, free: 93.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003943/1.56, allocations: 31.03 kB / 0.6948 GB, free: 93.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001353/1.561, allocations: 87.11 kB / 0.6949 GB, free: 93.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003302/1.561, allocations: 84.53 kB / 0.695 GB, free: 93.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/1.562, allocations: 39.08 kB / 0.695 GB, free: 93.38 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006249/1.568, allocations: 2.566 MB / 0.6975 GB, free: 93.17 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.91e-07/1.568, allocations: 0 / 0.6975 GB, free: 93.17 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007083/1.575, allocations: 0.9603 MB / 0.6985 GB, free: 93.17 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005283/1.576, allocations: 161.4 kB / 0.6986 GB, free: 93.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00902/1.585, allocations: 4.665 MB / 0.7032 GB, free: 92.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/1.585, allocations: 2.75 kB / 0.7032 GB, free: 92.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001891/1.587, allocations: 1.331 MB / 0.7045 GB, free: 92.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002988/1.59, allocations: 402.2 kB / 0.7049 GB, free: 92.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01745/1.607, allocations: 7.188 MB / 0.7119 GB, free: 91.39 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003545/1.611, allocations: 3.322 MB / 0.7151 GB, free: 90.61 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004657/1.615, allocations: 1.884 MB / 0.717 GB, free: 90.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006624/1.616, allocations: 234.4 kB / 0.7172 GB, free: 90.56 MB / 426.7 MB Notification: Performance of SimCode: time 1.212e-06/1.616, allocations: 3 kB / 0.7172 GB, free: 90.56 MB / 426.7 MB Notification: Performance of Templates: time 0.06567/1.682, allocations: 32.85 MB / 0.7493 GB, free: 88.3 MB / 426.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches