Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute",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.001403/0.001403, allocations: 106 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.00148/0.00148, allocations: 189.2 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.484/1.484, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2185/0.2185, 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.001577/0.001577, allocations: 69.02 kB / 382.8 MB, free: 56.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1064, allocations: 57.79 MB / 440.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01205/0.1185, allocations: 12.67 MB / 453.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009472/0.1281, allocations: 3.961 MB / 457.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002124/0.1303, allocations: 59.88 kB / 457.3 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002642/0.133, allocations: 1.335 MB / 458.6 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004084/0.1371, allocations: 1.778 MB / 460.4 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.1384, allocations: 499 kB / 460.9 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004418/0.1429, allocations: 3.656 MB / 464.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002537/0.1454, allocations: 2.044 MB / 466.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001843/0.1473, allocations: 1.23 MB / 467.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002986/0.1503, allocations: 1.752 MB / 469.6 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005908/0.1509, allocations: 240 kB / 469.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001791/0.1527, allocations: 0.9439 MB / 470.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001318/0.154, allocations: 1.632 MB / 472.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001738/0.1558, allocations: 1.945 MB / 474.4 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006422/0.1622, allocations: 6.074 MB / 480.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.1623, allocations: 0 / 480.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.786e-06/0.1623, allocations: 3.938 kB / 480.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001466/0.1624, allocations: 4 kB / 480.4 MB, free: 14.82 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1571 * Number of variables: 1571 Notification: Performance of Generate backend data structure: time 0.008788/0.1712, allocations: 4.257 MB / 484.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.082e-05/0.1713, allocations: 15.89 kB / 484.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001296/0.1726, allocations: 0.7211 MB / 485.4 MB, free: 9.738 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01088/0.1835, allocations: 3.087 MB / 488.5 MB, free: 6.641 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006106/0.1897, allocations: 2.357 MB / 490.9 MB, free: 4.238 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.1899, allocations: 189.2 kB / 491.1 MB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009307/0.1908, allocations: 259.7 kB / 491.3 MB, free: 3.797 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01721/0.208, allocations: 10.7 MB / 0.4902 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.738e-05/0.2081, allocations: 31.75 kB / 0.4903 GB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003543/0.2085, allocations: 119.8 kB / 0.4904 GB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004442/0.213, allocations: 2.643 MB / 0.493 GB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02095/0.2339, allocations: 10.02 MB / 0.5028 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2708/0.5048, allocations: 35.29 MB / 0.5372 GB, free: 66.92 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01121/0.516, allocations: 5.178 MB / 0.5423 GB, free: 65.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003466/0.5196, allocations: 2.297 MB / 0.5445 GB, free: 65.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001415/0.521, allocations: 1.879 MB / 0.5464 GB, free: 64.03 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.521, allocations: 52.97 kB / 0.5464 GB, free: 63.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=229): time 6.132e-06/0.5211, allocations: 0 / 0.5464 GB, free: 63.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=235): time 0.0316/0.5527, allocations: 14.07 MB / 0.5602 GB, free: 60.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.5528, allocations: 76.34 kB / 0.5602 GB, free: 60.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0037/0.5565, allocations: 2.684 MB / 0.5628 GB, free: 59.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003737/0.5569, allocations: 55.66 kB / 0.5629 GB, free: 59.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001673/0.5586, allocations: 2.709 MB / 0.5655 GB, free: 57.3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00101/0.5596, allocations: 0.853 MB / 0.5664 GB, free: 56.67 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001385/0.561, allocations: 1.043 MB / 0.5674 GB, free: 56.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.036e-05/0.5611, allocations: 305.1 kB / 0.5677 GB, free: 55.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002743/0.5638, allocations: 2.204 MB / 0.5698 GB, free: 54.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003884/0.5677, allocations: 5.13 MB / 0.5749 GB, free: 47.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007231/0.575, allocations: 8.052 MB / 0.5827 GB, free: 38.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.023e-05/0.5751, allocations: 30.44 kB / 0.5827 GB, free: 38.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01063/0.5857, allocations: 7.933 MB / 0.5905 GB, free: 30.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.7e-05/0.5858, allocations: 53.39 kB / 0.5905 GB, free: 30.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.538e-05/0.5859, allocations: 100 kB / 0.5906 GB, free: 30.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002008/0.5879, allocations: 0.7944 MB / 0.5914 GB, free: 29.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003529/0.5914, allocations: 1.201 MB / 0.5926 GB, free: 28.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004787/0.5962, allocations: 4.522 MB / 0.597 GB, free: 23.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003507/0.5997, allocations: 291.8 kB / 0.5973 GB, free: 23.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003784/0.6001, allocations: 307.9 kB / 0.5976 GB, free: 23.05 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 463 * Number of states: 0 () * Number of discrete variables: 27 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (640): * Single equations (assignments): 633 * Array equations: 6 * 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 {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003132/0.6033, allocations: 2.069 MB / 0.5996 GB, free: 20.97 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004776/0.6038, allocations: 260.5 kB / 0.5998 GB, free: 20.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006497/0.6103, allocations: 4.73 MB / 0.6045 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.211e-05/0.6103, allocations: 43.34 kB / 0.6045 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.6104, allocations: 4.75 kB / 0.6045 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.742e-05/0.6104, allocations: 7.969 kB / 0.6045 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01402/0.6244, allocations: 10.63 MB / 0.6149 GB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.6244, allocations: 8 kB / 0.6149 GB, free: 5.176 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/0.6258, allocations: 359.3 kB / 0.6152 GB, free: 4.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001817/0.6276, allocations: 0.6641 MB / 0.6159 GB, free: 4.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001392/0.6278, allocations: 40 kB / 0.6159 GB, free: 4.121 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003838/0.6316, allocations: 3.905 MB / 0.6197 GB, free: 80 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.6317, allocations: 11.94 kB / 0.6198 GB, free: 68 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/0.6422, allocations: 7.138 MB / 0.6267 GB, free: 8.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001793/0.644, allocations: 0.6459 MB / 0.6274 GB, free: 8.152 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004834/0.6445, allocations: 43.94 kB / 0.6274 GB, free: 8.109 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/0.6458, allocations: 143.8 kB / 0.6275 GB, free: 7.969 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003792/0.6462, allocations: 129.1 kB / 0.6277 GB, free: 7.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001779/0.6464, allocations: 67.83 kB / 0.6277 GB, free: 7.777 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002962/0.6494, allocations: 1.656 MB / 0.6293 GB, free: 6.113 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6494, allocations: 4 kB / 0.6293 GB, free: 6.109 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005674/0.6551, allocations: 0.9323 MB / 0.6303 GB, free: 5.18 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * Array equations: 6 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01176/0.6668, allocations: 7.807 MB / 0.6379 GB, free: 13.26 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01399/0.6809, allocations: 8.698 MB / 0.6464 GB, free: 4.598 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/0.6809, allocations: 0 / 0.6464 GB, free: 4.598 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002797/0.6837, allocations: 2.028 MB / 0.6484 GB, free: 2.566 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/0.6863, allocations: 352.8 kB / 0.6487 GB, free: 2.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07765/0.764, allocations: 43.08 MB / 0.6908 GB, free: 1.457 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006014/0.7701, allocations: 3.225 MB / 0.6939 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005244/0.7754, allocations: 1.971 MB / 0.6958 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003443/0.7788, allocations: 1.761 MB / 0.6976 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of SimCode: time 1.163e-06/0.7789, allocations: 0 / 0.6976 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3275/1.106, allocations: 57.83 MB / 0.754 GB, free: 175.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/12.09, allocations: 8.047 kB / 0.754 GB, free: 175 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches