Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.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.FrameTorques,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001195/0.001195, allocations: 103.5 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.00115/0.00115, 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.378/1.378, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2178/0.2178, allocations: 46.1 MB / 343.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 77.55 kB / 416.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1294, allocations: 62.45 MB / 479.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques): time 0.3174/0.4469, allocations: 64.73 MB / 0.5314 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03054/0.4775, allocations: 13.01 MB / 0.5441 GB, free: 15.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02117/0.4987, allocations: 285.2 kB / 0.5443 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0077/0.5064, allocations: 3.711 MB / 0.548 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006848/0.5134, allocations: 2.044 MB / 0.55 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00246/0.5159, allocations: 0.9318 MB / 0.5509 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01183/0.5277, allocations: 8.679 MB / 0.5593 GB, free: 5.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005418/0.5332, allocations: 4.501 MB / 0.5637 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002807/0.536, allocations: 1.736 MB / 0.5654 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003857/0.5399, allocations: 2.812 MB / 0.5682 GB, free: 12.41 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009422/0.5409, allocations: 288 kB / 0.5685 GB, free: 12.13 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002836/0.5437, allocations: 1.416 MB / 0.5698 GB, free: 10.71 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002222/0.5459, allocations: 2.341 MB / 0.5721 GB, free: 8.367 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003153/0.5491, allocations: 2.656 MB / 0.5747 GB, free: 5.695 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008337/0.5575, allocations: 8.411 MB / 0.5829 GB, free: 13.26 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.5575, allocations: 4 kB / 0.5829 GB, free: 13.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5575, allocations: 0 / 0.5829 GB, free: 13.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002134/0.5577, allocations: 3.938 kB / 0.5829 GB, free: 13.25 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01351/0.5712, allocations: 6.188 MB / 0.589 GB, free: 6.988 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.5713, allocations: 12.81 kB / 0.589 GB, free: 6.977 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001495/0.5728, allocations: 0.8267 MB / 0.5898 GB, free: 6.141 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03483/0.6076, allocations: 6.024 MB / 0.5957 GB, free: 104 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009035/0.6167, allocations: 4.067 MB / 0.5997 GB, free: 11.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002428/0.617, allocations: 279.5 kB / 0.5999 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/0.6183, allocations: 387.6 kB / 0.6003 GB, free: 11.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0186/0.6369, allocations: 11.48 MB / 0.6115 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001368/0.6371, allocations: 55.53 kB / 0.6116 GB, free: 14.94 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004604/0.6376, allocations: 175.8 kB / 0.6117 GB, free: 14.77 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003253/0.6408, allocations: 2.147 MB / 0.6138 GB, free: 12.62 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01793/0.6588, allocations: 9.371 MB / 0.623 GB, free: 3.227 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06193/0.7208, allocations: 45.46 MB / 0.6674 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01048/0.7313, allocations: 3.788 MB / 0.6711 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003063/0.7344, allocations: 2.006 MB / 0.673 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01124/0.7456, allocations: 5.644 MB / 0.6785 GB, free: 8.785 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/0.7457, allocations: 47.06 kB / 0.6786 GB, free: 8.73 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=150): time 6.232e-06/0.7458, allocations: 8 kB / 0.6786 GB, free: 8.723 MB / 0.5137 GB Notification: Performance of matching and sorting (n=162): time 0.04616/0.7919, allocations: 15.58 MB / 0.6938 GB, free: 8.926 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001578/0.7921, allocations: 218.5 kB / 0.694 GB, free: 8.664 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01204/0.8042, allocations: 5.623 MB / 0.6995 GB, free: 3.062 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003357/0.8046, allocations: 49.7 kB / 0.6996 GB, free: 3.008 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003532/0.8081, allocations: 3.776 MB / 0.7032 GB, free: 15.18 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000948/0.8091, allocations: 0.656 MB / 0.7039 GB, free: 14.51 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002908/0.812, allocations: 1.336 MB / 0.7052 GB, free: 13.16 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.8121, allocations: 301.1 kB / 0.7055 GB, free: 12.87 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003487/0.8156, allocations: 2.074 MB / 0.7075 GB, free: 10.79 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007018/0.8227, allocations: 6.31 MB / 0.7137 GB, free: 2.359 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2413/1.064, allocations: 9.134 MB / 0.7226 GB, free: 185 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001727/1.064, allocations: 43.98 kB / 0.7226 GB, free: 185 MB / 0.545 GB Notification: Performance of matching and sorting (n=860) (initialization): time 0.01755/1.082, allocations: 8.597 MB / 0.731 GB, free: 182.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001226/1.082, allocations: 69.09 kB / 0.7311 GB, free: 182.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000252/1.082, allocations: 150.1 kB / 0.7312 GB, free: 182.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002068/1.084, allocations: 0.7244 MB / 0.7319 GB, free: 182.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00486/1.089, allocations: 1.503 MB / 0.7334 GB, free: 181.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007387/1.097, allocations: 6.474 MB / 0.7397 GB, free: 177.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005215/1.102, allocations: 341.5 kB / 0.7401 GB, free: 177.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008486/1.103, allocations: 415.3 kB / 0.7404 GB, free: 177.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 686 * Number of states: 0 () * Number of discrete variables: 49 (frameTorque2.arrow.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,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 (798): * Single equations (assignments): 791 * 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.003549/1.106, allocations: 2.456 MB / 0.7428 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008869/1.107, allocations: 461.8 kB / 0.7433 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00396/1.111, allocations: 2.656 MB / 0.7459 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.649e-05/1.111, allocations: 18.66 kB / 0.7459 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/1.111, allocations: 5.344 kB / 0.7459 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/1.111, allocations: 11.16 kB / 0.7459 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/1.122, allocations: 7.477 MB / 0.7532 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/1.122, allocations: 2.125 kB / 0.7532 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/1.124, allocations: 257.2 kB / 0.7535 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001282/1.125, allocations: 0.4973 MB / 0.754 GB, free: 172.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/1.125, allocations: 28.84 kB / 0.754 GB, free: 172.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005256/1.13, allocations: 5.792 MB / 0.7596 GB, free: 168.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/1.13, allocations: 4.719 kB / 0.7596 GB, free: 168.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005459/1.136, allocations: 4.942 MB / 0.7645 GB, free: 164.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/1.137, allocations: 0.5186 MB / 0.765 GB, free: 163.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004684/1.137, allocations: 27.94 kB / 0.765 GB, free: 163.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/1.139, allocations: 75.91 kB / 0.7651 GB, free: 163.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000239/1.139, allocations: 108.4 kB / 0.7652 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.606e-05/1.139, allocations: 40.61 kB / 0.7652 GB, free: 163.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004253/1.143, allocations: 3.61 MB / 0.7687 GB, free: 160 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/1.143, allocations: 0 / 0.7687 GB, free: 160 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005644/1.149, allocations: 1.091 MB / 0.7698 GB, free: 158.9 MB / 0.545 GB 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 (120): * Single equations (assignments): 115 * 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.005827/1.155, allocations: 5.585 MB / 0.7753 GB, free: 153.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007204/1.162, allocations: 5.139 MB / 0.7803 GB, free: 148.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/1.162, allocations: 0 / 0.7803 GB, free: 148.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001636/1.164, allocations: 1.497 MB / 0.7817 GB, free: 146.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003637/1.167, allocations: 0.5963 MB / 0.7823 GB, free: 146.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07904/1.246, allocations: 67.45 MB / 0.8482 GB, free: 69.26 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003211/1.25, allocations: 3.768 MB / 0.8519 GB, free: 65.46 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004523/1.254, allocations: 2.123 MB / 0.8539 GB, free: 63.33 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002338/1.257, allocations: 2.307 MB / 0.8562 GB, free: 61.02 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/1.257, allocations: 0 / 0.8562 GB, free: 61.02 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.367/1.623, allocations: 86.9 MB / 0.9411 GB, free: 180.8 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001376/1.624, allocations: 216.6 kB / 0.9413 GB, free: 180.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.544/6.168, allocations: 0 / 0.9413 GB, free: 180.6 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_FrameTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_FrameTorques.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques/FrameTorques.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches