Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009874/0.0009875, allocations: 175.9 kB / 16.72 MB, free: 5.082 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.214/1.214, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007126/0.0007126, allocations: 91.91 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2947/0.2947, allocations: 43.57 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003712/0.0003714, allocations: 16 kB / 432.1 MB, free: 5.723 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09807/0.09847, allocations: 58.85 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.2608/0.3593, allocations: 82.19 MB / 0.5597 GB, free: 7.867 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03634/0.3957, allocations: 16.49 MB / 0.5758 GB, free: 12.61 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01461/0.4103, allocations: 389.2 kB / 0.5762 GB, free: 12.55 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01295/0.4233, allocations: 4.306 MB / 0.5804 GB, free: 11.02 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03255/0.4559, allocations: 12.57 MB / 0.5926 GB, free: 2.055 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00554/0.4615, allocations: 0.9172 MB / 0.5935 GB, free: 1.141 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.04361/0.5051, allocations: 36.28 MB / 0.629 GB, free: 12.82 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01083/0.516, allocations: 7.922 MB / 0.6367 GB, free: 4.812 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005353/0.5214, allocations: 2.031 MB / 0.6387 GB, free: 2.773 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00494/0.5264, allocations: 3.197 MB / 0.6418 GB, free: 15.57 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001288/0.5277, allocations: 232 kB / 0.642 GB, free: 15.34 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003387/0.5311, allocations: 1.178 MB / 0.6432 GB, free: 14.16 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003681/0.5348, allocations: 2.828 MB / 0.6459 GB, free: 11.32 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004579/0.5394, allocations: 3.104 MB / 0.649 GB, free: 8.195 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009647/0.5491, allocations: 8.908 MB / 0.6577 GB, free: 15.26 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.5491, allocations: 4 kB / 0.6577 GB, free: 15.26 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5491, allocations: 0 / 0.6577 GB, free: 15.26 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003345/0.5495, allocations: 0 / 0.6577 GB, free: 15.26 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2391 * Number of variables: 2391 Notification: Performance of Generate backend data structure: time 0.0145/0.564, allocations: 6.661 MB / 0.6642 GB, free: 8.516 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.564, allocations: 8.031 kB / 0.6642 GB, free: 8.508 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00286/0.5669, allocations: 1.117 MB / 0.6653 GB, free: 7.379 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03769/0.6046, allocations: 6.411 MB / 0.6715 GB, free: 0.9492 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.205/0.8096, allocations: 5.279 MB / 0.6767 GB, free: 141 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003446/0.81, allocations: 388.4 kB / 0.6771 GB, free: 141 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001386/0.8114, allocations: 0.5041 MB / 0.6776 GB, free: 141 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02439/0.8358, allocations: 15.49 MB / 0.6927 GB, free: 134.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002067/0.8361, allocations: 67.31 kB / 0.6927 GB, free: 134.7 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007675/0.8368, allocations: 248.9 kB / 0.693 GB, free: 134.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00452/0.8414, allocations: 3.06 MB / 0.696 GB, free: 134 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02296/0.8644, allocations: 12.94 MB / 0.7086 GB, free: 130 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06995/0.9343, allocations: 61.15 MB / 0.7683 GB, free: 78.95 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01393/0.9483, allocations: 6.526 MB / 0.7747 GB, free: 72.27 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004096/0.9525, allocations: 3.891 MB / 0.7785 GB, free: 68.36 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01323/0.9657, allocations: 9.247 MB / 0.7875 GB, free: 59.02 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/0.9658, allocations: 64.56 kB / 0.7876 GB, free: 58.95 MB / 490.7 MB Notification: Performance of pre-optimization done (n=269): time 6.432e-06/0.9658, allocations: 0 / 0.7876 GB, free: 58.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=311): time 0.06965/1.035, allocations: 30.98 MB / 0.8178 GB, free: 27.68 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.862e-05/1.036, allocations: 239.9 kB / 0.8181 GB, free: 27.39 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01011/1.046, allocations: 6.973 MB / 0.8249 GB, free: 20.43 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006563/1.046, allocations: 76.53 kB / 0.8249 GB, free: 20.36 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002776/1.049, allocations: 4.812 MB / 0.8296 GB, free: 15.55 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001371/1.051, allocations: 1.177 MB / 0.8308 GB, free: 14.38 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001073/1.052, allocations: 180 kB / 0.831 GB, free: 14.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007198/1.052, allocations: 0.6904 MB / 0.8316 GB, free: 13.51 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005562/1.058, allocations: 3.668 MB / 0.8352 GB, free: 9.832 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008459/1.066, allocations: 8.977 MB / 0.844 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01743/1.084, allocations: 13.71 MB / 0.8574 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001723/1.084, allocations: 59.92 kB / 0.8574 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.2393/1.324, allocations: 13.92 MB / 0.871 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001613/1.324, allocations: 88.7 kB / 0.8711 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003433/1.324, allocations: 184.8 kB / 0.8713 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005008/1.329, allocations: 1.79 MB / 0.873 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00778/1.337, allocations: 2.114 MB / 0.8751 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01442/1.351, allocations: 12.01 MB / 0.8868 GB, free: 143.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006939/1.358, allocations: 0.5262 MB / 0.8874 GB, free: 143.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00108/1.359, allocations: 0.5348 MB / 0.8879 GB, free: 143 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 848 * Number of states: 0 () * Number of discrete variables: 63 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1102): * Single equations (assignments): 1095 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0045/1.364, allocations: 3.229 MB / 0.891 GB, free: 141.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009329/1.365, allocations: 0.5888 MB / 0.8916 GB, free: 141.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01019/1.375, allocations: 6.963 MB / 0.8984 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.929e-05/1.375, allocations: 35.12 kB / 0.8984 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-05/1.375, allocations: 9.688 kB / 0.8984 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.751e-05/1.375, allocations: 16.17 kB / 0.8985 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0276/1.403, allocations: 15.51 MB / 0.9136 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.404e-05/1.403, allocations: 5 kB / 0.9136 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002825/1.406, allocations: 0.519 MB / 0.9141 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004542/1.41, allocations: 1.531 MB / 0.9156 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006228/1.411, allocations: 55.84 kB / 0.9157 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01501/1.426, allocations: 11.16 MB / 0.9266 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/1.426, allocations: 6.094 kB / 0.9266 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01623/1.442, allocations: 11.31 MB / 0.9376 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002922/1.445, allocations: 1.168 MB / 0.9388 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/1.446, allocations: 60.09 kB / 0.9388 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003081/1.45, allocations: 208.6 kB / 0.939 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008025/1.45, allocations: 184.2 kB / 0.9392 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002211/1.451, allocations: 84.7 kB / 0.9393 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00702/1.458, allocations: 4.471 MB / 0.9436 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.91e-07/1.458, allocations: 0 / 0.9436 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009151/1.467, allocations: 1.672 MB / 0.9453 GB, free: 120.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (254): * Single equations (assignments): 249 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01629/1.483, allocations: 11.98 MB / 0.957 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01276/1.496, allocations: 8.981 MB / 0.9657 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.829e-06/1.496, allocations: 0 / 0.9657 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004857/1.501, allocations: 3.484 MB / 0.9691 GB, free: 97.57 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008083/1.509, allocations: 0.7384 MB / 0.9699 GB, free: 96.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09718/1.606, allocations: 67.93 MB / 1.036 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005588/1.612, allocations: 4.901 MB / 1.041 GB, free: 18.13 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003847/1.616, allocations: 3.276 MB / 1.044 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of SimCode: time 7.11e-07/1.616, allocations: 0 / 1.044 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.33/11.95, allocations: 179.2 MB / 1.219 GB, free: 58.5 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches