Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00148/0.00148, allocations: 117.6 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001643/0.001643, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.605/1.605, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2234/0.2234, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 75.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.3901, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01439/0.4045, allocations: 12.28 MB / 0.5425 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01022/0.4148, allocations: 3.933 MB / 0.5464 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002745/0.4176, allocations: 61.44 kB / 0.5464 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002983/0.4206, allocations: 1.312 MB / 0.5477 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00485/0.4255, allocations: 1.766 MB / 0.5494 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001382/0.4269, allocations: 499 kB / 0.5499 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004913/0.4318, allocations: 3.617 MB / 0.5534 GB, free: 10.25 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002443/0.4343, allocations: 1.99 MB / 0.5554 GB, free: 8.223 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001851/0.4362, allocations: 1.195 MB / 0.5565 GB, free: 7.023 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002094/0.4383, allocations: 1.709 MB / 0.5582 GB, free: 5.309 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005211/0.4388, allocations: 240 kB / 0.5584 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001857/0.4407, allocations: 0.94 MB / 0.5594 GB, free: 4.133 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001496/0.4422, allocations: 1.574 MB / 0.5609 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0019/0.4441, allocations: 1.879 MB / 0.5627 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007002/0.4511, allocations: 6.208 MB / 0.5688 GB, free: 10.43 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.4512, allocations: 0 / 0.5688 GB, free: 10.43 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4512, allocations: 0 / 0.5688 GB, free: 10.43 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001599/0.4514, allocations: 0 / 0.5688 GB, free: 10.43 MB / 430.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.008182/0.4595, allocations: 4.253 MB / 0.5729 GB, free: 6.102 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.4596, allocations: 11.97 kB / 0.573 GB, free: 6.09 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001372/0.461, allocations: 0.7122 MB / 0.5737 GB, free: 5.367 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01115/0.4721, allocations: 3.114 MB / 0.5767 GB, free: 2.246 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005308/0.4775, allocations: 2.092 MB / 0.5787 GB, free: 108 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001906/0.4777, allocations: 193.1 kB / 0.5789 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008434/0.4786, allocations: 251.7 kB / 0.5792 GB, free: 15.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01725/0.4958, allocations: 10.49 MB / 0.5894 GB, free: 4.742 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.683e-05/0.496, allocations: 23.8 kB / 0.5894 GB, free: 4.719 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003999/0.4964, allocations: 115.8 kB / 0.5895 GB, free: 4.605 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004526/0.5009, allocations: 2.553 MB / 0.592 GB, free: 2.047 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01922/0.5202, allocations: 9.915 MB / 0.6017 GB, free: 8.121 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05378/0.574, allocations: 34.35 MB / 0.6353 GB, free: 4.945 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01048/0.5845, allocations: 5.178 MB / 0.6403 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003592/0.5882, allocations: 2.291 MB / 0.6426 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001988/0.5902, allocations: 1.885 MB / 0.6444 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.814e-05/0.5903, allocations: 52.56 kB / 0.6444 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=229): time 6.512e-06/0.5903, allocations: 0 / 0.6444 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of matching and sorting (n=235): time 0.03504/0.6253, allocations: 14.06 MB / 0.6582 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.6254, allocations: 69.41 kB / 0.6582 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004731/0.6302, allocations: 2.644 MB / 0.6608 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000299/0.6305, allocations: 49.7 kB / 0.6609 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002134/0.6327, allocations: 2.745 MB / 0.6636 GB, free: 7.281 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001136/0.6338, allocations: 0.8952 MB / 0.6644 GB, free: 6.379 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002022/0.6359, allocations: 1.037 MB / 0.6654 GB, free: 5.332 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.636, allocations: 305.1 kB / 0.6657 GB, free: 5.031 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003417/0.6394, allocations: 2.2 MB / 0.6679 GB, free: 2.824 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005436/0.6449, allocations: 5.055 MB / 0.6728 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00966/0.6545, allocations: 7.965 MB / 0.6806 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/0.6547, allocations: 28 kB / 0.6806 GB, free: 2.969 MB / 0.5294 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01464/0.6693, allocations: 7.876 MB / 0.6883 GB, free: 11.08 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.6695, allocations: 50.66 kB / 0.6884 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002026/0.6697, allocations: 100.9 kB / 0.6885 GB, free: 10.94 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002452/0.6722, allocations: 0.7944 MB / 0.6892 GB, free: 10.14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004223/0.6764, allocations: 1.185 MB / 0.6904 GB, free: 8.953 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006139/0.6826, allocations: 4.512 MB / 0.6948 GB, free: 4.305 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003677/0.6863, allocations: 291.8 kB / 0.6951 GB, free: 4.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009525/0.6873, allocations: 300 kB / 0.6954 GB, free: 3.727 MB / 0.545 GB 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.003799/0.6911, allocations: 2.012 MB / 0.6973 GB, free: 1.703 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006624/0.6918, allocations: 278.1 kB / 0.6976 GB, free: 1.43 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008333/0.7001, allocations: 4.721 MB / 0.7022 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.424e-05/0.7002, allocations: 48.02 kB / 0.7022 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.25e-05/0.7002, allocations: 11.88 kB / 0.7023 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.308e-05/0.7003, allocations: 11.95 kB / 0.7023 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01942/0.7197, allocations: 10.51 MB / 0.7125 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.418e-05/0.7198, allocations: 8.906 kB / 0.7125 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/0.7214, allocations: 363.4 kB / 0.7129 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002048/0.7235, allocations: 0.656 MB / 0.7135 GB, free: 0.9062 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/0.7237, allocations: 44 kB / 0.7136 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005041/0.7287, allocations: 3.895 MB / 0.7174 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.769e-06/0.7288, allocations: 11.94 kB / 0.7174 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01039/0.7392, allocations: 7.153 MB / 0.7244 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008296/0.74, allocations: 323.2 kB / 0.7247 GB, free: 5.215 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006136/0.7407, allocations: 43.98 kB / 0.7247 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00155/0.7422, allocations: 139.8 kB / 0.7249 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003473/0.7426, allocations: 129 kB / 0.725 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001785/0.7428, allocations: 72.25 kB / 0.725 GB, free: 4.836 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003081/0.7459, allocations: 1.619 MB / 0.7266 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.893e-06/0.7459, allocations: 0 / 0.7266 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004766/0.7507, allocations: 0.9139 MB / 0.7275 GB, free: 2.293 MB / 0.5762 GB 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.3169/1.068, allocations: 7.789 MB / 0.7351 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009382/1.077, allocations: 5.385 MB / 0.7404 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.698e-05/1.077, allocations: 0 / 0.7404 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002807/1.08, allocations: 2.022 MB / 0.7424 GB, free: 173.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002196/1.082, allocations: 365.3 kB / 0.7427 GB, free: 173.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05081/1.133, allocations: 39.68 MB / 0.7815 GB, free: 138.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002999/1.136, allocations: 3.163 MB / 0.7845 GB, free: 135.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003586/1.14, allocations: 1.965 MB / 0.7865 GB, free: 133.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002091/1.142, allocations: 1.702 MB / 0.7881 GB, free: 131.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.092e-06/1.142, allocations: 4 kB / 0.7881 GB, free: 131.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08556/1.227, allocations: 54.42 MB / 0.8413 GB, free: 77.61 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.97/22.2, allocations: 12.11 kB / 0.8413 GB, free: 77.6 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Joints_Revolute.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches