Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.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.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001334/0.001334, allocations: 104.2 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, 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.495/1.495, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2302/0.2302, allocations: 46.11 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001433, allocations: 83.77 kB / 416.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1313, allocations: 62.44 MB / 479.4 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.03529/0.1667, allocations: 37.21 MB / 0.5045 GB, free: 316 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.285/0.4517, allocations: 8.441 MB / 0.5127 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01022/0.462, allocations: 159.2 kB / 0.5129 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004903/0.467, allocations: 2.278 MB / 0.5151 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004909/0.4719, allocations: 1.503 MB / 0.5166 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001961/0.4739, allocations: 0.6357 MB / 0.5172 GB, free: 9.039 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008178/0.4821, allocations: 5.417 MB / 0.5225 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004123/0.4862, allocations: 2.832 MB / 0.5252 GB, free: 6.797 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002374/0.4886, allocations: 1.122 MB / 0.5263 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002587/0.4912, allocations: 1.847 MB / 0.5281 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005026/0.4918, allocations: 190.2 kB / 0.5283 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002129/0.4939, allocations: 1.131 MB / 0.5294 GB, free: 4.945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001287/0.4952, allocations: 1.514 MB / 0.5309 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.4968, allocations: 1.806 MB / 0.5327 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005823/0.5026, allocations: 6.017 MB / 0.5386 GB, free: 14.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.5026, allocations: 0 / 0.5386 GB, free: 14.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.5027, allocations: 3.938 kB / 0.5386 GB, free: 14.78 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001738/0.5028, allocations: 4 kB / 0.5386 GB, free: 14.78 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1276 * Number of variables: 1276 Notification: Performance of Generate backend data structure: time 0.01014/0.513, allocations: 4.236 MB / 0.5427 GB, free: 11.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.513, allocations: 10.88 kB / 0.5427 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009744/0.514, allocations: 0.61 MB / 0.5433 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02092/0.535, allocations: 3.739 MB / 0.547 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005481/0.5405, allocations: 2.486 MB / 0.5494 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.5406, allocations: 195.7 kB / 0.5496 GB, free: 5.219 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006439/0.5413, allocations: 270.6 kB / 0.5498 GB, free: 4.984 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01366/0.5549, allocations: 8.512 MB / 0.5581 GB, free: 11.95 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.943e-05/0.5551, allocations: 35.66 kB / 0.5582 GB, free: 11.92 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003484/0.5554, allocations: 127.6 kB / 0.5583 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002849/0.5583, allocations: 1.741 MB / 0.56 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01306/0.5714, allocations: 7.432 MB / 0.5673 GB, free: 2.648 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03963/0.611, allocations: 34.02 MB / 0.6005 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006731/0.6178, allocations: 3.026 MB / 0.6034 GB, free: 12.65 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002183/0.62, allocations: 1.847 MB / 0.6052 GB, free: 10.79 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003672/0.6204, allocations: 331.4 kB / 0.6056 GB, free: 10.42 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.6204, allocations: 51.16 kB / 0.6056 GB, free: 10.36 MB / 462.1 MB Notification: Performance of pre-optimization done (n=135): time 4.018e-06/0.6205, allocations: 0 / 0.6056 GB, free: 10.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.03683/0.6573, allocations: 14.36 MB / 0.6196 GB, free: 11.86 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.6574, allocations: 175.2 kB / 0.6198 GB, free: 11.65 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006387/0.6638, allocations: 3.525 MB / 0.6232 GB, free: 8.125 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003305/0.6642, allocations: 45.7 kB / 0.6233 GB, free: 8.074 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002206/0.6664, allocations: 2.654 MB / 0.6259 GB, free: 5.422 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008591/0.6673, allocations: 0.6055 MB / 0.6265 GB, free: 4.82 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002324/0.6696, allocations: 1.065 MB / 0.6275 GB, free: 3.746 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.6697, allocations: 301.1 kB / 0.6278 GB, free: 3.449 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003195/0.6729, allocations: 2.013 MB / 0.6298 GB, free: 1.43 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005272/0.6782, allocations: 5.222 MB / 0.6349 GB, free: 10.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00885/0.6871, allocations: 7.853 MB / 0.6425 GB, free: 1.152 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001021/0.6873, allocations: 36 kB / 0.6426 GB, free: 1.117 MB / 494.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.0156/0.7029, allocations: 7.784 MB / 0.6502 GB, free: 9.32 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.703, allocations: 55.94 kB / 0.6502 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001732/0.7032, allocations: 112 kB / 0.6503 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002423/0.7056, allocations: 0.9648 MB / 0.6513 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003951/0.7096, allocations: 1.185 MB / 0.6524 GB, free: 7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008387/0.718, allocations: 6.461 MB / 0.6587 GB, free: 420 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004458/0.7225, allocations: 307.5 kB / 0.659 GB, free: 112 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001167/0.7237, allocations: 320 kB / 0.6593 GB, free: 15.8 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 26 (torque.arrow.twoHeadedArrow,torque.arrow.headAtOrigin,universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],torque.color[3],torque.color[2],torque.color[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[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 (630): * Single equations (assignments): 626 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004717/0.7284, allocations: 1.851 MB / 0.6611 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001115/0.7296, allocations: 304.1 kB / 0.6614 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006518/0.7361, allocations: 3.206 MB / 0.6646 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.014e-05/0.7362, allocations: 20 kB / 0.6646 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.798e-05/0.7362, allocations: 7.938 kB / 0.6646 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.959e-05/0.7362, allocations: 7.984 kB / 0.6646 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01723/0.7535, allocations: 7.932 MB / 0.6723 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.285e-05/0.7535, allocations: 4 kB / 0.6723 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/0.7548, allocations: 227.6 kB / 0.6726 GB, free: 2.184 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002341/0.7572, allocations: 0.8046 MB / 0.6733 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002632/0.7575, allocations: 27.94 kB / 0.6734 GB, free: 1.348 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009726/0.7672, allocations: 5.98 MB / 0.6792 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.7672, allocations: 3.938 kB / 0.6792 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0101/0.7774, allocations: 5.803 MB / 0.6849 GB, free: 5.406 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.7785, allocations: 361 kB / 0.6852 GB, free: 5.031 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007982/0.7793, allocations: 28 kB / 0.6852 GB, free: 5.004 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001701/0.781, allocations: 95.88 kB / 0.6853 GB, free: 4.91 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003171/0.7813, allocations: 92.75 kB / 0.6854 GB, free: 4.82 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.7815, allocations: 36 kB / 0.6855 GB, free: 4.785 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004583/0.7861, allocations: 2.209 MB / 0.6876 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.7e-07/0.7861, allocations: 0 / 0.6876 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00497/0.7911, allocations: 0.8616 MB / 0.6885 GB, free: 1.727 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (115): * Single equations (assignments): 111 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.009599/0.8007, allocations: 6.442 MB / 0.6948 GB, free: 11.25 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008842/0.8095, allocations: 4.868 MB / 0.6995 GB, free: 6.391 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.8096, allocations: 0 / 0.6995 GB, free: 6.391 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003418/0.813, allocations: 1.777 MB / 0.7012 GB, free: 4.602 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003292/0.8163, allocations: 375 kB / 0.7016 GB, free: 4.238 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2941/1.11, allocations: 46.56 MB / 0.7471 GB, free: 171.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00518/1.116, allocations: 2.887 MB / 0.7499 GB, free: 170 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006437/1.122, allocations: 1.709 MB / 0.7516 GB, free: 169.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003089/1.125, allocations: 1.548 MB / 0.7531 GB, free: 168.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.473e-06/1.125, allocations: 4 kB / 0.7531 GB, free: 168.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07744/1.203, allocations: 64.33 MB / 0.8159 GB, free: 105.3 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001603/1.203, allocations: 247 kB / 0.8161 GB, free: 105 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.649/4.852, allocations: 0 / 0.8161 GB, free: 105 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/CheckConstaintTorqueUniversalJoint/CheckConstaintTorqueUniversalJoint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches