Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.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.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint",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.001237/0.001237, allocations: 103.9 kB / 16.4 MB, free: 6.453 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.001298/0.001298, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.438/1.438, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2244/0.2244, allocations: 43.52 MB / 314.1 MB, free: 452 kB / 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.001808/0.001808, allocations: 73.47 kB / 441.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1263, allocations: 57.8 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01208/0.1384, allocations: 10.22 MB / 0.4974 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009396/0.1478, allocations: 3.918 MB / 0.5012 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002308/0.1502, allocations: 59.81 kB / 0.5013 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005317/0.1556, allocations: 2.309 MB / 0.5035 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005466/0.1611, allocations: 1.743 MB / 0.5052 GB, free: 9.949 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002253/0.1634, allocations: 0.694 MB / 0.5059 GB, free: 9.254 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007257/0.1707, allocations: 3.813 MB / 0.5096 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004824/0.1755, allocations: 2.985 MB / 0.5125 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002773/0.1783, allocations: 1.374 MB / 0.5139 GB, free: 1.012 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003142/0.1815, allocations: 1.861 MB / 0.5157 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001215/0.1827, allocations: 308 kB / 0.516 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003042/0.1858, allocations: 1.186 MB / 0.5172 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00239/0.1882, allocations: 1.726 MB / 0.5188 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003503/0.1917, allocations: 2.055 MB / 0.5208 GB, free: 9.859 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008543/0.2003, allocations: 6.825 MB / 0.5275 GB, free: 3.012 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.2003, allocations: 0 / 0.5275 GB, free: 3.012 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.2004, allocations: 0 / 0.5275 GB, free: 3.012 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001693/0.2005, allocations: 7.938 kB / 0.5275 GB, free: 3.004 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1391 * Number of variables: 1391 Notification: Performance of Generate backend data structure: time 0.3063/0.5069, allocations: 4.519 MB / 0.5319 GB, free: 36.88 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.994e-05/0.5069, allocations: 10.39 kB / 0.5319 GB, free: 36.88 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001466/0.5084, allocations: 0.6637 MB / 0.5326 GB, free: 36.8 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02406/0.5325, allocations: 3.803 MB / 0.5363 GB, free: 36.54 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009464/0.542, allocations: 2.868 MB / 0.5391 GB, free: 35.53 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002195/0.5422, allocations: 213.7 kB / 0.5393 GB, free: 35.46 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009874/0.5432, allocations: 275.5 kB / 0.5396 GB, free: 35.4 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01966/0.5629, allocations: 9.223 MB / 0.5486 GB, free: 31.08 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001369/0.5631, allocations: 43.67 kB / 0.5486 GB, free: 31.06 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003766/0.5635, allocations: 132 kB / 0.5487 GB, free: 30.98 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003367/0.5669, allocations: 1.92 MB / 0.5506 GB, free: 30.29 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01515/0.582, allocations: 8.042 MB / 0.5585 GB, free: 25.72 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0445/0.6266, allocations: 35.93 MB / 0.5936 GB, free: 4.844 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007959/0.6346, allocations: 3.606 MB / 0.5971 GB, free: 1.09 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002753/0.6374, allocations: 2.013 MB / 0.599 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004676/0.6379, allocations: 348.1 kB / 0.5994 GB, free: 14.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.6379, allocations: 51.44 kB / 0.5994 GB, free: 14.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 4.007e-06/0.6379, allocations: 0 / 0.5994 GB, free: 14.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=177): time 0.03869/0.6766, allocations: 15.36 MB / 0.6144 GB, free: 15.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.6768, allocations: 171.2 kB / 0.6146 GB, free: 14.89 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006655/0.6834, allocations: 3.653 MB / 0.6182 GB, free: 11.25 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006564/0.6841, allocations: 49.7 kB / 0.6182 GB, free: 11.19 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002518/0.6867, allocations: 2.825 MB / 0.621 GB, free: 8.328 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001009/0.6877, allocations: 0.6787 MB / 0.6216 GB, free: 7.641 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001612/0.6893, allocations: 1.119 MB / 0.6227 GB, free: 6.512 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.6894, allocations: 301.1 kB / 0.623 GB, free: 6.215 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003148/0.6926, allocations: 2.185 MB / 0.6251 GB, free: 4.023 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005805/0.6984, allocations: 5.528 MB / 0.6305 GB, free: 12.82 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01095/0.7094, allocations: 8.358 MB / 0.6387 GB, free: 2.816 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001085/0.7095, allocations: 32 kB / 0.6387 GB, free: 2.785 MB / 478.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01773/0.7273, allocations: 8.271 MB / 0.6468 GB, free: 10.49 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/0.7275, allocations: 56 kB / 0.6469 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002034/0.7277, allocations: 116.9 kB / 0.647 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002589/0.7303, allocations: 0.9725 MB / 0.6479 GB, free: 9.348 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004653/0.7349, allocations: 1.263 MB / 0.6492 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009538/0.7445, allocations: 6.925 MB / 0.6559 GB, free: 1.012 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004377/0.7489, allocations: 323.5 kB / 0.6562 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009559/0.7499, allocations: 340.2 kB / 0.6565 GB, free: 372 kB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 536 * Number of states: 0 () * Number of discrete variables: 24 (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 (671): * Single equations (assignments): 667 * 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.003879/0.7538, allocations: 1.977 MB / 0.6585 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000863/0.7546, allocations: 315.9 kB / 0.6588 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006807/0.7615, allocations: 3.563 MB / 0.6623 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.465e-05/0.7615, allocations: 20 kB / 0.6623 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.687e-05/0.7615, allocations: 7.938 kB / 0.6623 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.157e-05/0.7616, allocations: 7.969 kB / 0.6623 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01775/0.7793, allocations: 8.575 MB / 0.6707 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-05/0.7794, allocations: 4 kB / 0.6707 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.7808, allocations: 271.6 kB / 0.6709 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002197/0.783, allocations: 0.8085 MB / 0.6717 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001869/0.7832, allocations: 31.98 kB / 0.6717 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008911/0.7921, allocations: 6.484 MB / 0.6781 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.7921, allocations: 0 / 0.6781 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009648/0.8018, allocations: 6.397 MB / 0.6843 GB, free: 3.641 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001971/0.8038, allocations: 0.6608 MB / 0.685 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007335/0.8045, allocations: 27.94 kB / 0.685 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001712/0.8063, allocations: 107.8 kB / 0.6851 GB, free: 2.824 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003043/0.8066, allocations: 100.9 kB / 0.6852 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/0.8067, allocations: 43.98 kB / 0.6852 GB, free: 2.684 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004711/0.8115, allocations: 2.294 MB / 0.6875 GB, free: 412 kB / 0.5137 GB Notification: Performance of sort global known variables: time 3.61e-07/0.8115, allocations: 0 / 0.6875 GB, free: 412 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0054/0.8169, allocations: 0.9363 MB / 0.6884 GB, free: 15.46 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 (137): * Single equations (assignments): 133 * 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.01028/0.8272, allocations: 7.042 MB / 0.6953 GB, free: 8.395 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00955/0.8367, allocations: 5.277 MB / 0.7004 GB, free: 3.129 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.8368, allocations: 0 / 0.7004 GB, free: 3.129 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003443/0.8402, allocations: 1.955 MB / 0.7023 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003567/0.8438, allocations: 411.8 kB / 0.7027 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08509/0.9289, allocations: 43.42 MB / 0.7451 GB, free: 192 kB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2691/1.198, allocations: 3.058 MB / 0.7481 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004957/1.203, allocations: 1.81 MB / 0.7499 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00247/1.206, allocations: 1.732 MB / 0.7516 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.083e-06/1.206, allocations: 2.75 kB / 0.7516 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1135/1.319, allocations: 67.51 MB / 0.8175 GB, free: 147.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.09/18.41, allocations: 0 / 0.8175 GB, free: 147.4 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_CheckConstaintTorqueUniversalJoint.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/CheckConstaintTorqueUniversalJoint/CheckConstaintTorqueUniversalJoint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches