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.001245/0.001245, allocations: 112.8 kB / 17.78 MB, free: 5.281 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.001216/0.001216, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.42/1.42, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2703/0.2703, allocations: 44.18 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 63.89 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3689/0.3708, allocations: 60.83 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01308/0.3839, allocations: 12.36 MB / 0.5305 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008776/0.3927, allocations: 3.939 MB / 0.5344 GB, free: 7.637 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002275/0.3949, allocations: 68.78 kB / 0.5344 GB, free: 7.621 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003143/0.3981, allocations: 1.332 MB / 0.5357 GB, free: 6.711 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004838/0.4029, allocations: 1.794 MB / 0.5375 GB, free: 5.492 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00149/0.4044, allocations: 490 kB / 0.5379 GB, free: 5.188 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005431/0.4098, allocations: 3.588 MB / 0.5414 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002957/0.4128, allocations: 1.785 MB / 0.5432 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002674/0.4155, allocations: 1.198 MB / 0.5444 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003185/0.4186, allocations: 1.717 MB / 0.546 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007958/0.4194, allocations: 236 kB / 0.5463 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002343/0.4218, allocations: 0.9556 MB / 0.5472 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001941/0.4237, allocations: 1.636 MB / 0.5488 GB, free: 12.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002777/0.4265, allocations: 1.898 MB / 0.5506 GB, free: 11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008836/0.4353, allocations: 6.278 MB / 0.5568 GB, free: 4.703 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.4353, allocations: 0 / 0.5568 GB, free: 4.703 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4353, allocations: 4 kB / 0.5568 GB, free: 4.699 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002102/0.4356, allocations: 4 kB / 0.5568 GB, free: 4.695 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.009921/0.4455, allocations: 4.273 MB / 0.561 GB, free: 356 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.4455, allocations: 8.031 kB / 0.561 GB, free: 348 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001389/0.4469, allocations: 0.7044 MB / 0.5616 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01125/0.4582, allocations: 3.114 MB / 0.5647 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004847/0.463, allocations: 2.221 MB / 0.5669 GB, free: 10.23 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000189/0.4632, allocations: 189 kB / 0.567 GB, free: 10.05 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008701/0.4641, allocations: 255.7 kB / 0.5673 GB, free: 9.797 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01813/0.4822, allocations: 10.48 MB / 0.5775 GB, free: 14.88 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-05/0.4823, allocations: 31.7 kB / 0.5775 GB, free: 14.85 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004405/0.4827, allocations: 119.8 kB / 0.5777 GB, free: 14.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004429/0.4872, allocations: 2.553 MB / 0.5802 GB, free: 12.18 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01962/0.5068, allocations: 9.915 MB / 0.5898 GB, free: 2.254 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05327/0.5601, allocations: 34.33 MB / 0.6234 GB, free: 15.09 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009892/0.5699, allocations: 4.972 MB / 0.6282 GB, free: 9.891 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003364/0.5733, allocations: 2.115 MB / 0.6303 GB, free: 7.773 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001974/0.5753, allocations: 1.876 MB / 0.6321 GB, free: 5.566 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.04e-05/0.5753, allocations: 48.56 kB / 0.6322 GB, free: 5.508 MB / 494.1 MB Notification: Performance of pre-optimization done (n=229): time 4.979e-06/0.5753, allocations: 0 / 0.6322 GB, free: 5.508 MB / 494.1 MB Notification: Performance of matching and sorting (n=235): time 0.03499/0.6103, allocations: 14.06 MB / 0.6459 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.029e-05/0.6104, allocations: 69.41 kB / 0.646 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003902/0.6143, allocations: 2.648 MB / 0.6485 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004232/0.6147, allocations: 57.64 kB / 0.6486 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002189/0.6169, allocations: 2.745 MB / 0.6513 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001267/0.6182, allocations: 0.8835 MB / 0.6521 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001738/0.6199, allocations: 1.041 MB / 0.6532 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.6201, allocations: 305.1 kB / 0.6535 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003398/0.6235, allocations: 2.196 MB / 0.6556 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006055/0.6295, allocations: 5.067 MB / 0.6605 GB, free: 6.895 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0109/0.6404, allocations: 7.957 MB / 0.6683 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001173/0.6405, allocations: 39.88 kB / 0.6684 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01606/0.6566, allocations: 7.873 MB / 0.676 GB, free: 5.602 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.023e-05/0.6567, allocations: 48 kB / 0.6761 GB, free: 5.555 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001327/0.6568, allocations: 104 kB / 0.6762 GB, free: 5.453 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002487/0.6593, allocations: 0.7849 MB / 0.677 GB, free: 4.664 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004358/0.6636, allocations: 1.181 MB / 0.6781 GB, free: 3.48 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006456/0.6701, allocations: 4.527 MB / 0.6825 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003792/0.6739, allocations: 291.8 kB / 0.6828 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000914/0.6748, allocations: 303.9 kB / 0.6831 GB, free: 14.23 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.004074/0.6789, allocations: 2.009 MB / 0.6851 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006015/0.6795, allocations: 278.2 kB / 0.6853 GB, free: 11.94 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008641/0.6881, allocations: 4.721 MB / 0.6899 GB, free: 7.188 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.125e-05/0.6882, allocations: 40 kB / 0.69 GB, free: 7.148 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.6882, allocations: 7.938 kB / 0.69 GB, free: 7.141 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-05/0.6882, allocations: 15.95 kB / 0.69 GB, free: 7.125 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01872/0.7069, allocations: 10.5 MB / 0.7002 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-05/0.7069, allocations: 4 kB / 0.7003 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/0.7085, allocations: 367.3 kB / 0.7006 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002069/0.7106, allocations: 0.6521 MB / 0.7012 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001787/0.7108, allocations: 48.12 kB / 0.7013 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005315/0.7161, allocations: 3.902 MB / 0.7051 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/0.7161, allocations: 11.94 kB / 0.7051 GB, free: 7.34 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01138/0.7275, allocations: 7.153 MB / 0.7121 GB, free: 72 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008132/0.7283, allocations: 319.2 kB / 0.7124 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004983/0.7288, allocations: 44.06 kB / 0.7124 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.7301, allocations: 139.8 kB / 0.7126 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003665/0.7304, allocations: 133 kB / 0.7127 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001729/0.7306, allocations: 67.98 kB / 0.7128 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002557/0.7332, allocations: 1.62 MB / 0.7143 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.7332, allocations: 0 / 0.7143 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004213/0.7374, allocations: 0.9296 MB / 0.7153 GB, free: 12.8 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.01198/0.7494, allocations: 7.795 MB / 0.7229 GB, free: 4.887 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.2732/1.023, allocations: 5.146 MB / 0.7279 GB, free: 190.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-05/1.023, allocations: 1.062 kB / 0.7279 GB, free: 190.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003866/1.026, allocations: 1.876 MB / 0.7297 GB, free: 190.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002627/1.029, allocations: 357.2 kB / 0.7301 GB, free: 190.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06481/1.094, allocations: 39.7 MB / 0.7688 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00486/1.099, allocations: 3.163 MB / 0.7719 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004077/1.103, allocations: 1.958 MB / 0.7738 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002817/1.106, allocations: 1.718 MB / 0.7755 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of SimCode: time 2.424e-06/1.106, allocations: 0 / 0.7755 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09422/1.2, allocations: 54.71 MB / 0.8289 GB, free: 100.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.22/22.42, allocations: 11.05 kB / 0.8289 GB, free: 100.1 MB / 0.5762 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