Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_4_0_0_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.001129/0.001129, allocations: 104.7 kB / 17.63 MB, free: 5.344 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.001007/0.001007, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2072/0.2072, allocations: 44.18 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 62.89 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1161, allocations: 60.83 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01413/0.1303, allocations: 12.31 MB / 481.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008891/0.1393, allocations: 3.929 MB / 485.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001988/0.1413, allocations: 59.88 kB / 485.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002976/0.1443, allocations: 1.319 MB / 487 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004399/0.1487, allocations: 1.759 MB / 488.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.1501, allocations: 483 kB / 489.2 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004951/0.1551, allocations: 3.59 MB / 492.8 MB, free: 6.746 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003242/0.1584, allocations: 2.021 MB / 494.8 MB, free: 4.684 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002678/0.1611, allocations: 1.199 MB / 496 MB, free: 3.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002829/0.1639, allocations: 1.721 MB / 497.7 MB, free: 1.754 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001201/0.1651, allocations: 236 kB / 498 MB, free: 1.523 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002668/0.1678, allocations: 0.9517 MB / 498.9 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002175/0.17, allocations: 1.593 MB / 0.4888 GB, free: 14.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003462/0.1735, allocations: 1.902 MB / 0.4906 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007846/0.1813, allocations: 5.954 MB / 0.4965 GB, free: 7.086 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.1814, allocations: 0 / 0.4965 GB, free: 7.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.24e-06/0.1814, allocations: 0 / 0.4965 GB, free: 7.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002052/0.1816, allocations: 3.938 kB / 0.4965 GB, free: 7.082 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.00823/0.1899, allocations: 4.175 MB / 0.5005 GB, free: 2.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.1899, allocations: 11.97 kB / 0.5005 GB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008725/0.1908, allocations: 0.7083 MB / 0.5012 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2295/0.4203, allocations: 3.075 MB / 0.5042 GB, free: 46.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00477/0.4251, allocations: 2.193 MB / 0.5064 GB, free: 45.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.4254, allocations: 186.8 kB / 0.5066 GB, free: 45.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001272/0.4267, allocations: 248.8 kB / 0.5068 GB, free: 45.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01922/0.4459, allocations: 10.48 MB / 0.517 GB, free: 41.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001015/0.4461, allocations: 30.69 kB / 0.5171 GB, free: 41.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000423/0.4465, allocations: 124.3 kB / 0.5172 GB, free: 41.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004615/0.4511, allocations: 2.55 MB / 0.5197 GB, free: 40.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01812/0.4693, allocations: 9.919 MB / 0.5294 GB, free: 33.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04173/0.511, allocations: 34.47 MB / 0.563 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009672/0.5208, allocations: 5.195 MB / 0.5681 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003307/0.5241, allocations: 2.296 MB / 0.5703 GB, free: 6.219 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001672/0.5258, allocations: 1.884 MB / 0.5722 GB, free: 4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/0.5259, allocations: 48.56 kB / 0.5722 GB, free: 3.945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=229): time 6.592e-06/0.5259, allocations: 4 kB / 0.5722 GB, free: 3.941 MB / 398.1 MB Notification: Performance of matching and sorting (n=235): time 0.03246/0.5583, allocations: 13.99 MB / 0.5859 GB, free: 5.898 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/0.5584, allocations: 77.41 kB / 0.586 GB, free: 5.812 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003459/0.5619, allocations: 2.643 MB / 0.5885 GB, free: 3.148 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000417/0.5623, allocations: 53.7 kB / 0.5886 GB, free: 3.09 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002256/0.5646, allocations: 2.632 MB / 0.5912 GB, free: 428 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001528/0.5662, allocations: 0.8517 MB / 0.592 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001906/0.5681, allocations: 1.036 MB / 0.593 GB, free: 14.51 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.5682, allocations: 313 kB / 0.5933 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003058/0.5713, allocations: 2.193 MB / 0.5954 GB, free: 12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005001/0.5763, allocations: 5.063 MB / 0.6004 GB, free: 5.531 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009713/0.586, allocations: 7.957 MB / 0.6082 GB, free: 12.17 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-05/0.5862, allocations: 32 kB / 0.6082 GB, free: 12.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01609/0.6023, allocations: 7.868 MB / 0.6159 GB, free: 4.254 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.906e-05/0.6024, allocations: 48 kB / 0.6159 GB, free: 4.207 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001591/0.6026, allocations: 103.9 kB / 0.616 GB, free: 4.105 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002282/0.6049, allocations: 0.789 MB / 0.6168 GB, free: 3.312 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004539/0.6094, allocations: 1.181 MB / 0.6179 GB, free: 2.129 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006604/0.6161, allocations: 4.516 MB / 0.6224 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004174/0.6203, allocations: 287.8 kB / 0.6226 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001255/0.6216, allocations: 308 kB / 0.6229 GB, free: 12.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (631): * Single equations (assignments): 624 * 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.005811/0.6274, allocations: 2.016 MB / 0.6249 GB, free: 10.87 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001036/0.6285, allocations: 260.5 kB / 0.6251 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009076/0.6376, allocations: 4.722 MB / 0.6297 GB, free: 5.863 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.95e-05/0.6377, allocations: 43.98 kB / 0.6298 GB, free: 5.82 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/0.6377, allocations: 4 kB / 0.6298 GB, free: 5.816 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.917e-05/0.6377, allocations: 11.95 kB / 0.6298 GB, free: 5.805 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01795/0.6557, allocations: 10.53 MB / 0.6401 GB, free: 11.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/0.6558, allocations: 8 kB / 0.6401 GB, free: 11.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001661/0.6574, allocations: 360.4 kB / 0.6404 GB, free: 10.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002018/0.6595, allocations: 0.656 MB / 0.6411 GB, free: 10.09 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003227/0.6598, allocations: 51.98 kB / 0.6411 GB, free: 10.04 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004816/0.6646, allocations: 3.906 MB / 0.6449 GB, free: 5.992 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/0.6647, allocations: 11.94 kB / 0.645 GB, free: 5.98 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01089/0.6756, allocations: 7.146 MB / 0.6519 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009853/0.6766, allocations: 313.5 kB / 0.6522 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005377/0.6772, allocations: 43.98 kB / 0.6523 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/0.6784, allocations: 139.8 kB / 0.6524 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003536/0.6788, allocations: 133.1 kB / 0.6525 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001494/0.6789, allocations: 60 kB / 0.6526 GB, free: 14.03 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002365/0.6813, allocations: 1.628 MB / 0.6542 GB, free: 12.39 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6813, allocations: 0 / 0.6542 GB, free: 12.39 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004657/0.686, allocations: 0.9283 MB / 0.6551 GB, free: 11.46 MB / 494.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.01167/0.6977, allocations: 7.795 MB / 0.6627 GB, free: 3.551 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01378/0.7115, allocations: 8.662 MB / 0.6712 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/0.7116, allocations: 0.9375 kB / 0.6712 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00282/0.7144, allocations: 2.027 MB / 0.6731 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00219/0.7166, allocations: 358.4 kB / 0.6735 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2738/0.9904, allocations: 42.35 MB / 0.7148 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003272/0.9938, allocations: 3.174 MB / 0.7179 GB, free: 160.7 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003871/0.9976, allocations: 1.958 MB / 0.7199 GB, free: 160.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002085/0.9997, allocations: 1.713 MB / 0.7215 GB, free: 159.1 MB / 0.5137 GB Notification: Performance of SimCode: time 7.61e-07/0.9998, allocations: 0 / 0.7215 GB, free: 159.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1426/1.142, allocations: 57.32 MB / 0.7775 GB, free: 108.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.96, allocations: 7.328 kB / 0.7775 GB, free: 108.7 MB / 0.5137 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_MultiBody_Joints_Revolute.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches