Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_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.001807/0.001807, allocations: 109 kB / 16.41 MB, free: 6.488 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.002/0.002001, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.72/1.72, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2471/0.2471, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 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.002193/0.002194, allocations: 69.45 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.129, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02011/0.1492, allocations: 18.6 MB / 0.5056 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01307/0.1623, allocations: 5.354 MB / 0.5108 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003629/0.166, allocations: 115.7 kB / 0.5109 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006827/0.1728, allocations: 3.064 MB / 0.5139 GB, free: 1.047 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008466/0.1814, allocations: 2.622 MB / 0.5165 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003228/0.1847, allocations: 1.026 MB / 0.5175 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01302/0.1978, allocations: 7.414 MB / 0.5247 GB, free: 5.957 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007727/0.2056, allocations: 4.25 MB / 0.5289 GB, free: 1.645 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2956/0.5012, allocations: 2.286 MB / 0.5311 GB, free: 8.773 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006893/0.5081, allocations: 3.274 MB / 0.5343 GB, free: 8.773 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002594/0.5108, allocations: 458.3 kB / 0.5347 GB, free: 8.773 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005632/0.5164, allocations: 1.305 MB / 0.536 GB, free: 8.773 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005983/0.5225, allocations: 2.881 MB / 0.5388 GB, free: 8.488 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008748/0.5313, allocations: 3.308 MB / 0.5421 GB, free: 7.312 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01615/0.5474, allocations: 10.31 MB / 0.5521 GB, free: 5.652 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.307e-06/0.5475, allocations: 3.719 kB / 0.5521 GB, free: 5.652 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.5475, allocations: 1.062 kB / 0.5521 GB, free: 5.652 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004629/0.548, allocations: 0 / 0.5521 GB, free: 5.652 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: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.02933/0.5773, allocations: 7.657 MB / 0.5596 GB, free: 2.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.5774, allocations: 12.95 kB / 0.5596 GB, free: 2.156 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00438/0.5818, allocations: 1.033 MB / 0.5606 GB, free: 1.617 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02989/0.6117, allocations: 5.657 MB / 0.5662 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01302/0.6248, allocations: 5.935 MB / 0.5719 GB, free: 11.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003525/0.6252, allocations: 326.8 kB / 0.5723 GB, free: 11.6 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002438/0.6276, allocations: 437.3 kB / 0.5727 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03903/0.6667, allocations: 15.74 MB / 0.588 GB, free: 13.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003487/0.6671, allocations: 57.98 kB / 0.5881 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00263/0.6697, allocations: 203.7 kB / 0.5883 GB, free: 13.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007576/0.6773, allocations: 3.472 MB / 0.5917 GB, free: 10.01 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03395/0.7113, allocations: 14.79 MB / 0.6061 GB, free: 11.39 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0966/0.8079, allocations: 55.74 MB / 0.6606 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02034/0.8283, allocations: 8.15 MB / 0.6685 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007409/0.8357, allocations: 4.773 MB / 0.6732 GB, free: 6.176 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002342/0.8381, allocations: 2.212 MB / 0.6753 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.833e-05/0.8382, allocations: 65.08 kB / 0.6754 GB, free: 3.52 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=367): time 7.364e-06/0.8382, allocations: 3.562 kB / 0.6754 GB, free: 3.52 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.1538/0.992, allocations: 39.91 MB / 0.7144 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.9921, allocations: 120 kB / 0.7145 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009858/1.002, allocations: 4.418 MB / 0.7188 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001069/1.003, allocations: 88.44 kB / 0.7189 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00438/1.007, allocations: 4.045 MB / 0.7228 GB, free: 2.977 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002913/1.01, allocations: 1.557 MB / 0.7244 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00333/1.014, allocations: 1.546 MB / 0.7259 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001613/1.014, allocations: 309.1 kB / 0.7262 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006626/1.021, allocations: 3.958 MB / 0.73 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01139/1.032, allocations: 7.76 MB / 0.7376 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01995/1.052, allocations: 12.73 MB / 0.75 GB, free: 4.07 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001088/1.052, allocations: 40 kB / 0.7501 GB, free: 4.031 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.2655/1.318, allocations: 14.26 MB / 0.764 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001638/1.318, allocations: 63.84 kB / 0.7641 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002576/1.318, allocations: 130.3 kB / 0.7642 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009181/1.327, allocations: 2.681 MB / 0.7668 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00836/1.336, allocations: 1.784 MB / 0.7686 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01802/1.354, allocations: 15.23 MB / 0.7834 GB, free: 195.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006884/1.361, allocations: 492.5 kB / 0.7839 GB, free: 195.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001736/1.362, allocations: 434 kB / 0.7843 GB, free: 195.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 592 * Number of states: 0 () * Number of discrete variables: 48 (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 (920): * Single equations (assignments): 912 * 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.007766/1.37, allocations: 2.915 MB / 0.7872 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/1.372, allocations: 494.5 kB / 0.7876 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0174/1.389, allocations: 10.57 MB / 0.798 GB, free: 189.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.285e-05/1.389, allocations: 67.47 kB / 0.798 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-05/1.389, allocations: 11.94 kB / 0.798 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-05/1.389, allocations: 17.86 kB / 0.798 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03219/1.421, allocations: 21.32 MB / 0.8189 GB, free: 168.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.192e-05/1.421, allocations: 8 kB / 0.8189 GB, free: 168.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003006/1.424, allocations: 0.6864 MB / 0.8195 GB, free: 167.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006478/1.431, allocations: 2.489 MB / 0.822 GB, free: 165.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006257/1.432, allocations: 76 kB / 0.822 GB, free: 165.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01441/1.446, allocations: 13.83 MB / 0.8356 GB, free: 151.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/1.446, allocations: 20.91 kB / 0.8356 GB, free: 151.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02141/1.467, allocations: 15.14 MB / 0.8504 GB, free: 135.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002859/1.47, allocations: 1.19 MB / 0.8515 GB, free: 134.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001219/1.472, allocations: 76.86 kB / 0.8516 GB, free: 134.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003029/1.475, allocations: 300.4 kB / 0.8519 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007665/1.475, allocations: 272 kB / 0.8521 GB, free: 133.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002985/1.476, allocations: 112 kB / 0.8523 GB, free: 133.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00344/1.479, allocations: 2.776 MB / 0.855 GB, free: 131 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/1.479, allocations: 0 / 0.855 GB, free: 131 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005907/1.485, allocations: 1.657 MB / 0.8566 GB, free: 129.4 MB / 0.5919 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.01837/1.504, allocations: 15.85 MB / 0.8721 GB, free: 113.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01181/1.515, allocations: 9.887 MB / 0.8817 GB, free: 103.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/1.515, allocations: 4 kB / 0.8817 GB, free: 103.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004746/1.52, allocations: 4.309 MB / 0.8859 GB, free: 99.04 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00404/1.524, allocations: 0.7371 MB / 0.8866 GB, free: 98.32 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0968/1.621, allocations: 71.18 MB / 0.9562 GB, free: 21.05 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004617/1.626, allocations: 4.624 MB / 0.9607 GB, free: 16.38 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005448/1.631, allocations: 2.74 MB / 0.9633 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003895/1.635, allocations: 2.909 MB / 0.9662 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of SimCode: time 1.192e-06/1.635, allocations: 0 / 0.9662 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4764/2.112, allocations: 113.9 MB / 1.077 GB, free: 124.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.1/24.21, allocations: 11.84 kB / 1.077 GB, free: 124.4 MB / 0.5919 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches