Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.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) 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 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001896/0.001896, allocations: 103 kB / 16.27 MB, free: 5.93 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.002454/0.002454, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.446/1.446, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2203/0.2203, allocations: 43.53 MB / 313.9 MB, free: 0.5273 MB / 254.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.001816/0.001816, allocations: 72.42 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1081, allocations: 57.79 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques): time 0.01592/0.1241, allocations: 14.23 MB / 454.8 MB, free: 8.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01207/0.1362, allocations: 4.657 MB / 459.5 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002579/0.1388, allocations: 91.75 kB / 459.6 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00678/0.1456, allocations: 3.777 MB / 463.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006107/0.1518, allocations: 2.412 MB / 465.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002202/0.1541, allocations: 1.01 MB / 466.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00814/0.1622, allocations: 6.018 MB / 472.8 MB, free: 6.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00629/0.1685, allocations: 4.749 MB / 477.6 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00373/0.1723, allocations: 2.118 MB / 479.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004331/0.1766, allocations: 2.889 MB / 482.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001247/0.1779, allocations: 456 kB / 483 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003351/0.1813, allocations: 1.482 MB / 484.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003243/0.1845, allocations: 2.685 MB / 487.2 MB, free: 8.043 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005017/0.1896, allocations: 3.092 MB / 490.3 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01525/0.2048, allocations: 9.494 MB / 499.8 MB, free: 11.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.331e-05/0.2049, allocations: 0 / 499.8 MB, free: 11.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.589e-06/0.2049, allocations: 7.984 kB / 499.8 MB, free: 11.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004494/0.2054, allocations: 0 / 499.8 MB, free: 11.4 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1959 * Number of variables: 1959 Notification: Performance of Generate backend data structure: time 0.02464/0.23, allocations: 6.745 MB / 0.4946 GB, free: 4.574 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.304e-05/0.2302, allocations: 11.89 kB / 0.4947 GB, free: 4.562 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003522/0.2337, allocations: 0.93 MB / 0.4956 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04058/0.2743, allocations: 6.14 MB / 0.5016 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01028/0.2846, allocations: 4.778 MB / 0.5062 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002772/0.2849, allocations: 308 kB / 0.5065 GB, free: 8.297 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001434/0.2864, allocations: 415.6 kB / 0.5069 GB, free: 7.891 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02357/0.31, allocations: 12.87 MB / 0.5195 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001666/0.3102, allocations: 59.53 kB / 0.5195 GB, free: 10.06 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005315/0.3107, allocations: 191.8 kB / 0.5197 GB, free: 9.871 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004123/0.3149, allocations: 2.503 MB / 0.5222 GB, free: 7.363 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.247/0.5618, allocations: 10.58 MB / 0.5325 GB, free: 79.42 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0572/0.6191, allocations: 49.68 MB / 0.581 GB, free: 43.58 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01009/0.6292, allocations: 4.426 MB / 0.5853 GB, free: 40.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004322/0.6336, allocations: 2.333 MB / 0.5876 GB, free: 38.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01037/0.644, allocations: 6.486 MB / 0.594 GB, free: 31.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.6441, allocations: 71.5 kB / 0.594 GB, free: 31.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 5.71e-06/0.6441, allocations: 0 / 0.594 GB, free: 31.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=195): time 0.03786/0.6819, allocations: 17.62 MB / 0.6112 GB, free: 13.71 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.682, allocations: 227.1 kB / 0.6115 GB, free: 13.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006163/0.6882, allocations: 5.941 MB / 0.6173 GB, free: 7.516 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002563/0.6885, allocations: 53.7 kB / 0.6173 GB, free: 7.457 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001967/0.6904, allocations: 4.112 MB / 0.6213 GB, free: 3.348 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008855/0.6913, allocations: 0.7721 MB / 0.6221 GB, free: 2.582 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001631/0.693, allocations: 1.458 MB / 0.6235 GB, free: 1.117 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.51e-05/0.6931, allocations: 301.1 kB / 0.6238 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003299/0.6964, allocations: 2.418 MB / 0.6261 GB, free: 14.4 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007114/0.7035, allocations: 6.933 MB / 0.6329 GB, free: 5.234 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01215/0.7157, allocations: 10.14 MB / 0.6428 GB, free: 8.871 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001258/0.7158, allocations: 44 kB / 0.6429 GB, free: 8.828 MB / 446.1 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.01931/0.7351, allocations: 9.574 MB / 0.6522 GB, free: 15.23 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002407/0.7354, allocations: 75.98 kB / 0.6523 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004352/0.7359, allocations: 160 kB / 0.6524 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002323/0.7382, allocations: 0.7426 MB / 0.6532 GB, free: 14.26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005925/0.7442, allocations: 1.661 MB / 0.6548 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008649/0.7529, allocations: 6.987 MB / 0.6616 GB, free: 5.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005747/0.7586, allocations: 393.8 kB / 0.662 GB, free: 4.957 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001116/0.7598, allocations: 444 kB / 0.6624 GB, free: 4.523 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 726 * Number of states: 0 () * Number of discrete variables: 45 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.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 (880): * Single equations (assignments): 873 * 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 {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004704/0.7645, allocations: 2.702 MB / 0.665 GB, free: 1.812 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/0.7656, allocations: 497.5 kB / 0.6655 GB, free: 1.32 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006157/0.7718, allocations: 3.289 MB / 0.6687 GB, free: 14.01 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.17e-05/0.7718, allocations: 23.94 kB / 0.6688 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.752e-05/0.7718, allocations: 4 kB / 0.6688 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-05/0.7719, allocations: 19.95 kB / 0.6688 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01596/0.7878, allocations: 8.833 MB / 0.6774 GB, free: 5.062 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/0.7879, allocations: 4 kB / 0.6774 GB, free: 5.059 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/0.7895, allocations: 323.5 kB / 0.6777 GB, free: 4.742 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001425/0.7909, allocations: 0.5011 MB / 0.6782 GB, free: 4.234 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001594/0.7911, allocations: 32 kB / 0.6782 GB, free: 4.203 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00713/0.7983, allocations: 6.307 MB / 0.6844 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.7983, allocations: 7.938 kB / 0.6844 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009457/0.8077, allocations: 5.97 MB / 0.6902 GB, free: 7.598 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002462/0.8102, allocations: 0.807 MB / 0.691 GB, free: 6.766 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001147/0.8114, allocations: 40.27 kB / 0.6911 GB, free: 6.727 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002259/0.8137, allocations: 103.8 kB / 0.6912 GB, free: 6.625 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003147/0.814, allocations: 105.1 kB / 0.6913 GB, free: 6.523 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000157/0.8142, allocations: 63.92 kB / 0.6913 GB, free: 6.461 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007799/0.822, allocations: 3.804 MB / 0.695 GB, free: 2.684 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.822, allocations: 3.938 kB / 0.695 GB, free: 2.68 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01085/0.8329, allocations: 1.237 MB / 0.6962 GB, free: 1.449 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (154): * Single equations (assignments): 149 * 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 {(1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01468/0.8476, allocations: 6.624 MB / 0.7027 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01761/0.8652, allocations: 6.549 MB / 0.7091 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/0.8653, allocations: 0.5 kB / 0.7091 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004357/0.8697, allocations: 1.784 MB / 0.7108 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006513/0.8762, allocations: 0.6578 MB / 0.7115 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3224/1.199, allocations: 72.75 MB / 0.7825 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003639/1.202, allocations: 4.135 MB / 0.7866 GB, free: 128 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004935/1.207, allocations: 2.318 MB / 0.7888 GB, free: 125.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002585/1.21, allocations: 2.569 MB / 0.7913 GB, free: 123.1 MB / 0.5137 GB Notification: Performance of SimCode: time 1.162e-06/1.21, allocations: 0 / 0.7913 GB, free: 123.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1745/1.384, allocations: 95.81 MB / 0.8849 GB, free: 27.29 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/13.5, allocations: 0 / 0.8849 GB, free: 27.29 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/FrameTorques/FrameTorques.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches