Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001208/0.001208, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00116/0.00116, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2252/0.2252, allocations: 46.1 MB / 343.6 MB, free: 11.84 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 73.17 kB / 416.9 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1202, allocations: 62.46 MB / 479.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3321/0.4523, allocations: 81.44 MB / 0.5477 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03985/0.4922, allocations: 15.64 MB / 0.563 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01964/0.5119, allocations: 358.4 kB / 0.5633 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009662/0.5216, allocations: 5.013 MB / 0.5682 GB, free: 12.44 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008813/0.5305, allocations: 2.32 MB / 0.5705 GB, free: 10.11 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003431/0.534, allocations: 0.9986 MB / 0.5714 GB, free: 9.113 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0142/0.5482, allocations: 9.995 MB / 0.5812 GB, free: 15.1 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009475/0.5578, allocations: 5.686 MB / 0.5867 GB, free: 9.352 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004478/0.5623, allocations: 2.129 MB / 0.5888 GB, free: 7.215 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005516/0.5678, allocations: 3.45 MB / 0.5922 GB, free: 3.754 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00177/0.5696, allocations: 368 kB / 0.5925 GB, free: 3.395 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003729/0.5734, allocations: 1.319 MB / 0.5938 GB, free: 2.074 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004053/0.5775, allocations: 2.883 MB / 0.5967 GB, free: 15.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006451/0.5839, allocations: 3.266 MB / 0.5998 GB, free: 11.9 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01428/0.5983, allocations: 10.05 MB / 0.6097 GB, free: 1.816 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.5983, allocations: 7.938 kB / 0.6097 GB, free: 1.809 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.5983, allocations: 0 / 0.6097 GB, free: 1.809 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004365/0.5988, allocations: 0 / 0.6097 GB, free: 1.809 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.02065/0.6194, allocations: 7.576 MB / 0.6171 GB, free: 10.14 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.802e-05/0.6195, allocations: 12.88 kB / 0.6171 GB, free: 10.13 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00286/0.6224, allocations: 1.025 MB / 0.6181 GB, free: 9.098 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03649/0.6589, allocations: 6.182 MB / 0.6241 GB, free: 2.898 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01057/0.6695, allocations: 4.578 MB / 0.6286 GB, free: 14.24 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003368/0.6699, allocations: 361.5 kB / 0.6289 GB, free: 13.88 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001908/0.6718, allocations: 479.6 kB / 0.6294 GB, free: 13.41 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02552/0.6973, allocations: 14.12 MB / 0.6432 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001813/0.6976, allocations: 71.36 kB / 0.6432 GB, free: 14.21 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005492/0.6981, allocations: 227.8 kB / 0.6435 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004327/0.7025, allocations: 2.699 MB / 0.6461 GB, free: 11.28 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02247/0.7249, allocations: 11.78 MB / 0.6576 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07389/0.7989, allocations: 57.05 MB / 0.7133 GB, free: 4.945 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2466/1.046, allocations: 6.147 MB / 0.7193 GB, free: 196.7 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004905/1.05, allocations: 3.585 MB / 0.7228 GB, free: 196 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01424/1.065, allocations: 8.308 MB / 0.7309 GB, free: 192.3 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.849e-05/1.065, allocations: 58.03 kB / 0.731 GB, free: 192.3 MB / 0.545 GB Notification: Performance of pre-optimization done (n=236): time 5.611e-06/1.065, allocations: 0 / 0.731 GB, free: 192.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=278): time 0.06807/1.133, allocations: 28.76 MB / 0.7591 GB, free: 180 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.843e-05/1.133, allocations: 231.6 kB / 0.7593 GB, free: 179.7 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007406/1.14, allocations: 6.709 MB / 0.7658 GB, free: 173 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005908/1.141, allocations: 61.7 kB / 0.7659 GB, free: 173 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001935/1.143, allocations: 4.47 MB / 0.7703 GB, free: 168.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009449/1.144, allocations: 1.061 MB / 0.7713 GB, free: 167.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001766/1.146, allocations: 1.717 MB / 0.773 GB, free: 165.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.367e-05/1.146, allocations: 301.1 kB / 0.7733 GB, free: 165.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003814/1.15, allocations: 3.354 MB / 0.7765 GB, free: 162.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005305/1.155, allocations: 8.41 MB / 0.7848 GB, free: 151.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/1.165, allocations: 12.75 MB / 0.7972 GB, free: 136.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.841e-05/1.165, allocations: 52 kB / 0.7973 GB, free: 136.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.01892/1.184, allocations: 13.03 MB / 0.81 GB, free: 123 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.889e-05/1.184, allocations: 80 kB / 0.8101 GB, free: 122.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001614/1.185, allocations: 176 kB / 0.8102 GB, free: 122.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003825/1.188, allocations: 1.786 MB / 0.812 GB, free: 121 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005716/1.194, allocations: 1.945 MB / 0.8139 GB, free: 119 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01264/1.207, allocations: 12.01 MB / 0.8256 GB, free: 106.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01081/1.218, allocations: 483.2 kB / 0.8261 GB, free: 106.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001836/1.22, allocations: 0.5077 MB / 0.8266 GB, free: 105.8 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1020): * Single equations (assignments): 1013 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007681/1.227, allocations: 2.985 MB / 0.8295 GB, free: 102.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001647/1.229, allocations: 0.563 MB / 0.83 GB, free: 102.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01472/1.244, allocations: 6.346 MB / 0.8362 GB, free: 95.84 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.939e-05/1.244, allocations: 28 kB / 0.8362 GB, free: 95.82 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.403e-05/1.244, allocations: 11.94 kB / 0.8363 GB, free: 95.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.082e-05/1.244, allocations: 15.95 kB / 0.8363 GB, free: 95.79 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03592/1.28, allocations: 14.18 MB / 0.8501 GB, free: 81.56 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.29e-05/1.28, allocations: 4.469 kB / 0.8501 GB, free: 81.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003437/1.283, allocations: 467.3 kB / 0.8506 GB, free: 81.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005924/1.289, allocations: 1.522 MB / 0.8521 GB, free: 79.57 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005494/1.29, allocations: 48 kB / 0.8521 GB, free: 79.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01975/1.31, allocations: 11.21 MB / 0.863 GB, free: 68.05 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/1.31, allocations: 11.94 kB / 0.8631 GB, free: 68.04 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02178/1.331, allocations: 10.31 MB / 0.8731 GB, free: 57.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002348/1.334, allocations: 0.6264 MB / 0.8737 GB, free: 56.95 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002044/1.336, allocations: 55.94 kB / 0.8738 GB, free: 56.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0044/1.34, allocations: 179.7 kB / 0.874 GB, free: 56.71 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000852/1.341, allocations: 173.6 kB / 0.8741 GB, free: 56.55 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000408/1.342, allocations: 75.92 kB / 0.8742 GB, free: 56.47 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009714/1.351, allocations: 4.306 MB / 0.8784 GB, free: 52.18 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.51e-07/1.351, allocations: 0 / 0.8784 GB, free: 52.18 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01314/1.364, allocations: 1.514 MB / 0.8799 GB, free: 50.67 MB / 0.545 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 (220): * Single equations (assignments): 215 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01933/1.384, allocations: 10.98 MB / 0.8906 GB, free: 39.54 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01047/1.394, allocations: 8.246 MB / 0.8987 GB, free: 31.29 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.394, allocations: 0 / 0.8987 GB, free: 31.29 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004431/1.399, allocations: 3.231 MB / 0.9018 GB, free: 28.04 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005095/1.404, allocations: 0.7174 MB / 0.9025 GB, free: 27.32 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3455/1.749, allocations: 96.55 MB / 0.9968 GB, free: 114.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004801/1.754, allocations: 4.531 MB / 1.001 GB, free: 110.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006063/1.76, allocations: 2.776 MB / 1.004 GB, free: 107.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004269/1.765, allocations: 2.932 MB / 1.007 GB, free: 104.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.192e-06/1.765, allocations: 4 kB / 1.007 GB, free: 104.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.146/1.911, allocations: 119.5 MB / 1.124 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001785/1.911, allocations: 210.5 kB / 1.124 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.997/7.908, allocations: 0 / 1.124 GB, free: 1.074 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches