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.001965/0.001965, allocations: 113.7 kB / 16.41 MB, free: 6.457 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.00214/0.00214, allocations: 185.5 kB / 17.34 MB, free: 5.715 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.506/1.506, 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.2256/0.2256, allocations: 43.53 MB / 314.1 MB, free: 448 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.002418/0.002418, allocations: 75.89 kB / 441.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1265, allocations: 57.78 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.01423/0.1408, allocations: 10.21 MB / 0.4974 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009353/0.1502, allocations: 3.925 MB / 0.5012 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001919/0.1522, allocations: 51.88 kB / 0.5013 GB, free: 14.03 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005595/0.1579, allocations: 2.313 MB / 0.5035 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005933/0.1638, allocations: 1.743 MB / 0.5052 GB, free: 9.957 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002208/0.1661, allocations: 0.7018 MB / 0.5059 GB, free: 9.254 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007059/0.1732, allocations: 3.805 MB / 0.5096 GB, free: 5.438 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004815/0.1781, allocations: 2.996 MB / 0.5126 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002846/0.181, allocations: 1.367 MB / 0.5139 GB, free: 1.012 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003501/0.1845, allocations: 1.857 MB / 0.5157 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001185/0.1857, allocations: 308 kB / 0.516 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003546/0.1893, allocations: 1.182 MB / 0.5172 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002957/0.1923, allocations: 1.714 MB / 0.5188 GB, free: 11.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004318/0.1966, allocations: 2.058 MB / 0.5208 GB, free: 9.875 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0113/0.208, allocations: 6.844 MB / 0.5275 GB, free: 3.004 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.208, allocations: 0 / 0.5275 GB, free: 3.004 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2081, allocations: 4 kB / 0.5275 GB, free: 3 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000248/0.2083, allocations: 4 kB / 0.5275 GB, free: 2.996 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.2749/0.4833, allocations: 4.635 MB / 0.5321 GB, free: 36.79 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.4833, allocations: 15.64 kB / 0.5321 GB, free: 36.79 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002226/0.4856, allocations: 0.659 MB / 0.5327 GB, free: 36.72 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02441/0.51, allocations: 3.824 MB / 0.5364 GB, free: 36.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007274/0.5173, allocations: 2.887 MB / 0.5393 GB, free: 35.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000268/0.5176, allocations: 206.4 kB / 0.5395 GB, free: 35.52 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001494/0.5192, allocations: 287.1 kB / 0.5397 GB, free: 35.45 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02075/0.5399, allocations: 9.214 MB / 0.5487 GB, free: 31.14 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002321/0.5402, allocations: 37.58 kB / 0.5488 GB, free: 31.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001125/0.5413, allocations: 138.6 kB / 0.5489 GB, free: 31.05 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00383/0.5452, allocations: 1.918 MB / 0.5508 GB, free: 30.29 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/0.5616, allocations: 8.039 MB / 0.5586 GB, free: 25.71 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0459/0.6076, allocations: 35.99 MB / 0.5938 GB, free: 4.965 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008791/0.6164, allocations: 3.611 MB / 0.5973 GB, free: 1.211 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003131/0.6196, allocations: 2.021 MB / 0.5993 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005624/0.6202, allocations: 340 kB / 0.5996 GB, free: 14.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.674e-05/0.6203, allocations: 55.55 kB / 0.5997 GB, free: 14.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 5.269e-06/0.6203, allocations: 0 / 0.5997 GB, free: 14.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=177): time 0.04666/0.667, allocations: 15.57 MB / 0.6149 GB, free: 15.05 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.6672, allocations: 171.2 kB / 0.615 GB, free: 14.84 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007638/0.6748, allocations: 3.665 MB / 0.6186 GB, free: 11.18 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004374/0.6753, allocations: 49.7 kB / 0.6187 GB, free: 11.13 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002928/0.6782, allocations: 2.933 MB / 0.6215 GB, free: 8.168 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001181/0.6794, allocations: 0.7055 MB / 0.6222 GB, free: 7.457 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003081/0.6826, allocations: 1.129 MB / 0.6233 GB, free: 6.32 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.6827, allocations: 301.1 kB / 0.6236 GB, free: 6.023 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004329/0.6871, allocations: 2.181 MB / 0.6257 GB, free: 3.836 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008124/0.6952, allocations: 5.536 MB / 0.6311 GB, free: 12.62 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01263/0.7079, allocations: 8.35 MB / 0.6393 GB, free: 2.629 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001228/0.7081, allocations: 36 kB / 0.6393 GB, free: 2.594 MB / 478.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01916/0.7273, allocations: 8.286 MB / 0.6474 GB, free: 10.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000182/0.7275, allocations: 56 kB / 0.6475 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002358/0.7277, allocations: 120.1 kB / 0.6476 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00302/0.7308, allocations: 0.9687 MB / 0.6485 GB, free: 9.148 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00503/0.7359, allocations: 1.259 MB / 0.6498 GB, free: 7.887 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/0.7475, allocations: 6.933 MB / 0.6565 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005782/0.7534, allocations: 319.6 kB / 0.6568 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001627/0.7551, allocations: 340.2 kB / 0.6572 GB, free: 160 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.006327/0.7614, allocations: 1.973 MB / 0.6591 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001295/0.7627, allocations: 337.8 kB / 0.6594 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00949/0.7723, allocations: 3.566 MB / 0.6629 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.343e-05/0.7724, allocations: 20 kB / 0.6629 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.7e-05/0.7724, allocations: 7.938 kB / 0.6629 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.64e-05/0.7725, allocations: 11.97 kB / 0.6629 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02174/0.7942, allocations: 8.571 MB / 0.6713 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-05/0.7943, allocations: 0 / 0.6713 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001544/0.7958, allocations: 275.5 kB / 0.6716 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002369/0.7982, allocations: 0.8085 MB / 0.6723 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002872/0.7985, allocations: 28 kB / 0.6724 GB, free: 476 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009852/0.8084, allocations: 6.488 MB / 0.6787 GB, free: 9.836 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.8084, allocations: 8.031 kB / 0.6787 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01204/0.8205, allocations: 6.41 MB / 0.685 GB, free: 3.395 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001978/0.8225, allocations: 0.6744 MB / 0.6856 GB, free: 2.699 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001082/0.8236, allocations: 31.94 kB / 0.6857 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002118/0.8258, allocations: 115.8 kB / 0.6858 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004317/0.8262, allocations: 96.8 kB / 0.6859 GB, free: 2.461 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002211/0.8264, allocations: 44 kB / 0.6859 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004692/0.8311, allocations: 2.294 MB / 0.6882 GB, free: 140 kB / 0.5137 GB Notification: Performance of sort global known variables: time 8.42e-07/0.8312, allocations: 4 kB / 0.6882 GB, free: 136 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005466/0.8366, allocations: 0.9336 MB / 0.6891 GB, free: 15.2 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.01257/0.8493, allocations: 7.062 MB / 0.696 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01048/0.8598, allocations: 5.278 MB / 0.7011 GB, free: 2.836 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.8598, allocations: 0 / 0.7011 GB, free: 2.836 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004478/0.8643, allocations: 1.955 MB / 0.703 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004363/0.8687, allocations: 417.8 kB / 0.7034 GB, free: 480 kB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3369/1.206, allocations: 43.57 MB / 0.746 GB, free: 194.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005267/1.211, allocations: 3.062 MB / 0.749 GB, free: 194.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00454/1.216, allocations: 1.806 MB / 0.7507 GB, free: 194.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002639/1.218, allocations: 1.735 MB / 0.7524 GB, free: 194.1 MB / 0.5762 GB Notification: Performance of SimCode: time 9.42e-07/1.218, allocations: 0 / 0.7524 GB, free: 194.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1589/1.377, allocations: 66.51 MB / 0.8174 GB, free: 147.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.87/19.25, allocations: 0 / 0.8174 GB, free: 147.7 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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