Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",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.001201/0.001201, allocations: 113.4 kB / 17.78 MB, free: 5.266 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.001241/0.001241, allocations: 184.1 kB / 18.71 MB, free: 4.344 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.365/1.365, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2029/0.2029, allocations: 44.18 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 63.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3797/0.3811, allocations: 60.83 MB / 0.5184 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.021/0.4022, allocations: 18.2 MB / 0.5362 GB, free: 6.051 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01411/0.4163, allocations: 5.297 MB / 0.5414 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004233/0.4206, allocations: 109.9 kB / 0.5415 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006205/0.4269, allocations: 3.065 MB / 0.5445 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008108/0.435, allocations: 2.57 MB / 0.547 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002669/0.4377, allocations: 1.019 MB / 0.548 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0112/0.4489, allocations: 7.478 MB / 0.5553 GB, free: 6.293 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006008/0.4549, allocations: 4.179 MB / 0.5594 GB, free: 2.059 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004257/0.4592, allocations: 2.266 MB / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00511/0.4644, allocations: 3.232 MB / 0.5647 GB, free: 12.54 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001164/0.4655, allocations: 452 kB / 0.5652 GB, free: 12.1 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003251/0.4688, allocations: 1.315 MB / 0.5664 GB, free: 10.79 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002712/0.4715, allocations: 2.844 MB / 0.5692 GB, free: 7.934 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003709/0.4752, allocations: 3.243 MB / 0.5724 GB, free: 4.672 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0111/0.4863, allocations: 10.11 MB / 0.5823 GB, free: 10.53 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.4864, allocations: 0 / 0.5823 GB, free: 10.53 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4864, allocations: 0 / 0.5823 GB, free: 10.53 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002686/0.4867, allocations: 0 / 0.5823 GB, free: 10.53 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.01719/0.5039, allocations: 7.325 MB / 0.5894 GB, free: 3.125 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.994e-05/0.5039, allocations: 8.031 kB / 0.5894 GB, free: 3.117 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001769/0.5057, allocations: 1.017 MB / 0.5904 GB, free: 2.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03/0.5357, allocations: 5.604 MB / 0.5959 GB, free: 12.46 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01207/0.5478, allocations: 5.31 MB / 0.6011 GB, free: 7.094 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002591/0.5481, allocations: 320.4 kB / 0.6014 GB, free: 6.777 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001548/0.5497, allocations: 431.5 kB / 0.6018 GB, free: 6.355 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02705/0.5768, allocations: 15.52 MB / 0.6169 GB, free: 6.105 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001737/0.577, allocations: 63.44 kB / 0.617 GB, free: 6.043 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005775/0.5776, allocations: 195.8 kB / 0.6172 GB, free: 5.852 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006051/0.5836, allocations: 3.376 MB / 0.6205 GB, free: 2.473 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02987/0.6135, allocations: 14.7 MB / 0.6348 GB, free: 3.758 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08853/0.7021, allocations: 54.77 MB / 0.6883 GB, free: 11.79 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01868/0.7208, allocations: 8.146 MB / 0.6963 GB, free: 3.414 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007041/0.7279, allocations: 4.769 MB / 0.7009 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002514/0.7304, allocations: 2.208 MB / 0.7031 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.379e-05/0.7305, allocations: 65.08 kB / 0.7032 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 9.547e-06/0.7306, allocations: 0 / 0.7032 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.356/1.087, allocations: 39.58 MB / 0.7418 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/1.087, allocations: 121.3 kB / 0.7419 GB, free: 161.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006201/1.093, allocations: 4.315 MB / 0.7461 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001306/1.094, allocations: 88.86 kB / 0.7462 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002831/1.097, allocations: 3.813 MB / 0.7499 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002029/1.099, allocations: 1.49 MB / 0.7514 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003074/1.102, allocations: 1.52 MB / 0.7529 GB, free: 152.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.656e-05/1.102, allocations: 312 kB / 0.7532 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00481/1.107, allocations: 3.942 MB / 0.757 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006639/1.114, allocations: 7.687 MB / 0.7645 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01222/1.126, allocations: 12.66 MB / 0.7769 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.004e-05/1.126, allocations: 36 kB / 0.7769 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02192/1.148, allocations: 14.17 MB / 0.7908 GB, free: 110.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.02e-05/1.148, allocations: 59.09 kB / 0.7908 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001135/1.148, allocations: 128 kB / 0.791 GB, free: 110.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007012/1.155, allocations: 2.676 MB / 0.7936 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005923/1.161, allocations: 1.758 MB / 0.7953 GB, free: 105.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01631/1.178, allocations: 15.23 MB / 0.8102 GB, free: 90.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005897/1.184, allocations: 495.3 kB / 0.8106 GB, free: 89.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001144/1.185, allocations: 423.9 kB / 0.811 GB, free: 89.45 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],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 (911): * Single equations (assignments): 903 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004325/1.189, allocations: 2.872 MB / 0.8138 GB, free: 86.57 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000931/1.19, allocations: 466 kB / 0.8143 GB, free: 86.11 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01607/1.206, allocations: 10.56 MB / 0.8246 GB, free: 75.49 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.479e-05/1.206, allocations: 60 kB / 0.8247 GB, free: 75.43 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.239e-05/1.206, allocations: 15.92 kB / 0.8247 GB, free: 75.42 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.599e-05/1.206, allocations: 15.94 kB / 0.8247 GB, free: 75.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03312/1.239, allocations: 21.21 MB / 0.8454 GB, free: 54.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.114e-05/1.239, allocations: 12 kB / 0.8454 GB, free: 54.01 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003173/1.243, allocations: 0.6865 MB / 0.8461 GB, free: 53.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006695/1.249, allocations: 2.491 MB / 0.8485 GB, free: 50.82 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006032/1.25, allocations: 79.36 kB / 0.8486 GB, free: 50.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01457/1.265, allocations: 13.82 MB / 0.8621 GB, free: 36.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.265e-06/1.265, allocations: 15.94 kB / 0.8621 GB, free: 36.62 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02031/1.285, allocations: 15.12 MB / 0.8769 GB, free: 21.23 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001405/1.286, allocations: 495.1 kB / 0.8773 GB, free: 20.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009924/1.287, allocations: 72 kB / 0.8774 GB, free: 20.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002847/1.29, allocations: 310.6 kB / 0.8777 GB, free: 20.36 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007237/1.291, allocations: 265.9 kB / 0.878 GB, free: 20.09 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002864/1.291, allocations: 108 kB / 0.8781 GB, free: 19.99 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003486/1.295, allocations: 2.714 MB / 0.8807 GB, free: 17.27 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/1.295, allocations: 384 / 0.8807 GB, free: 17.27 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007056/1.302, allocations: 1.643 MB / 0.8823 GB, free: 15.64 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02229/1.324, allocations: 15.84 MB / 0.8978 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01674/1.341, allocations: 9.849 MB / 0.9074 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.637e-05/1.341, allocations: 2 kB / 0.9074 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006979/1.348, allocations: 4.315 MB / 0.9116 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004338/1.352, allocations: 0.7402 MB / 0.9123 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4442/1.797, allocations: 69.96 MB / 0.9807 GB, free: 185.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004704/1.801, allocations: 4.544 MB / 0.9851 GB, free: 180.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.005347/1.807, allocations: 2.723 MB / 0.9877 GB, free: 178.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003331/1.81, allocations: 2.825 MB / 0.9905 GB, free: 175.3 MB / 0.6075 GB Notification: Performance of SimCode: time 1.333e-06/1.81, allocations: 4 kB / 0.9905 GB, free: 175.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1848/1.995, allocations: 115.2 MB / 1.103 GB, free: 60.74 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.73/22.72, allocations: 8.047 kB / 1.103 GB, free: 60.73 MB / 0.6075 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches