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.001216/0.001216, allocations: 107 kB / 17.33 MB, free: 6 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.001364/0.001364, allocations: 193.3 kB / 18.25 MB, free: 5.09 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.492/1.492, allocations: 222.9 MB / 241.9 MB, free: 15.38 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.2265/0.2265, allocations: 44.18 MB / 336.2 MB, free: 2.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 59.25 kB / 408 MB, free: 27.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1291, allocations: 60.83 MB / 468.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3299/0.459, allocations: 63.54 MB / 0.5199 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03196/0.491, allocations: 12.65 MB / 0.5322 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01594/0.507, allocations: 272.9 kB / 0.5325 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006136/0.5131, allocations: 2.927 MB / 0.5354 GB, free: 5.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007087/0.5203, allocations: 2.415 MB / 0.5377 GB, free: 4.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002353/0.5227, allocations: 0.9617 MB / 0.5387 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009233/0.5319, allocations: 7.629 MB / 0.5461 GB, free: 412 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006138/0.5381, allocations: 4.377 MB / 0.5504 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004782/0.5429, allocations: 2.284 MB / 0.5526 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006006/0.549, allocations: 3.549 MB / 0.5561 GB, free: 8.297 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001851/0.5508, allocations: 452 kB / 0.5565 GB, free: 7.855 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004295/0.5551, allocations: 1.326 MB / 0.5578 GB, free: 6.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004091/0.5593, allocations: 2.859 MB / 0.5606 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006084/0.5654, allocations: 3.26 MB / 0.5638 GB, free: 468 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01402/0.5794, allocations: 9.8 MB / 0.5734 GB, free: 6.891 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.5795, allocations: 4 kB / 0.5734 GB, free: 6.887 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.5795, allocations: 0 / 0.5734 GB, free: 6.887 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004214/0.5799, allocations: 0 / 0.5734 GB, free: 6.887 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: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02205/0.602, allocations: 7.33 MB / 0.5805 GB, free: 15.63 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.396e-05/0.6021, allocations: 8.031 kB / 0.5805 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003586/0.6056, allocations: 1.014 MB / 0.5815 GB, free: 14.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02974/0.6354, allocations: 5.604 MB / 0.587 GB, free: 9.039 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01139/0.6469, allocations: 5.24 MB / 0.5921 GB, free: 3.828 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003465/0.6472, allocations: 315.9 kB / 0.5924 GB, free: 3.57 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002059/0.6493, allocations: 432.9 kB / 0.5928 GB, free: 3.203 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0323/0.6816, allocations: 15.52 MB / 0.608 GB, free: 3.117 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003459/0.682, allocations: 59.48 kB / 0.608 GB, free: 3.059 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001801/0.6839, allocations: 194.4 kB / 0.6082 GB, free: 2.922 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006475/0.6903, allocations: 3.374 MB / 0.6115 GB, free: 15.56 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03241/0.7228, allocations: 14.7 MB / 0.6259 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09242/0.8152, allocations: 55.07 MB / 0.6797 GB, free: 8.914 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01956/0.8348, allocations: 8.145 MB / 0.6876 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007638/0.8425, allocations: 4.776 MB / 0.6923 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002744/0.8453, allocations: 2.202 MB / 0.6944 GB, free: 9.188 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.69e-05/0.8454, allocations: 73.06 kB / 0.6945 GB, free: 9.105 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 1.049e-05/0.8455, allocations: 0 / 0.6945 GB, free: 9.105 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.3562/1.202, allocations: 39.56 MB / 0.7331 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.349e-05/1.202, allocations: 126.1 kB / 0.7332 GB, free: 180.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005325/1.207, allocations: 4.314 MB / 0.7375 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009451/1.208, allocations: 88.14 kB / 0.7375 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001731/1.21, allocations: 3.82 MB / 0.7413 GB, free: 175 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001667/1.211, allocations: 1.487 MB / 0.7427 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001973/1.213, allocations: 1.517 MB / 0.7442 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.27e-05/1.213, allocations: 301.1 kB / 0.7445 GB, free: 172 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00467/1.218, allocations: 3.949 MB / 0.7484 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006991/1.225, allocations: 7.701 MB / 0.7559 GB, free: 158.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01315/1.238, allocations: 12.64 MB / 0.7682 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001017/1.239, allocations: 36 kB / 0.7683 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02474/1.263, allocations: 14.18 MB / 0.7821 GB, free: 130 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.349e-05/1.263, allocations: 63.94 kB / 0.7822 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/1.264, allocations: 131 kB / 0.7823 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006877/1.27, allocations: 2.679 MB / 0.7849 GB, free: 127.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006091/1.277, allocations: 1.766 MB / 0.7866 GB, free: 125.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01629/1.293, allocations: 15.22 MB / 0.8015 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006403/1.299, allocations: 499.6 kB / 0.802 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001471/1.301, allocations: 427.2 kB / 0.8024 GB, free: 108.9 MB / 0.5294 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.004977/1.306, allocations: 2.871 MB / 0.8052 GB, free: 106.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009498/1.307, allocations: 462.1 kB / 0.8056 GB, free: 105.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01546/1.322, allocations: 10.56 MB / 0.8159 GB, free: 94.99 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.513e-05/1.322, allocations: 67.42 kB / 0.816 GB, free: 94.93 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.088e-05/1.322, allocations: 8 kB / 0.816 GB, free: 94.92 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.957e-05/1.322, allocations: 19.92 kB / 0.816 GB, free: 94.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03261/1.355, allocations: 21.33 MB / 0.8369 GB, free: 73.35 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.45e-05/1.355, allocations: 20 kB / 0.8369 GB, free: 73.33 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003033/1.358, allocations: 0.6786 MB / 0.8375 GB, free: 72.65 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00644/1.365, allocations: 2.49 MB / 0.84 GB, free: 70.15 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000737/1.365, allocations: 87.73 kB / 0.84 GB, free: 70.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01543/1.381, allocations: 13.83 MB / 0.8536 GB, free: 55.96 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.898e-06/1.381, allocations: 15.94 kB / 0.8536 GB, free: 55.95 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02315/1.404, allocations: 15.1 MB / 0.8683 GB, free: 40.57 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00139/1.405, allocations: 0.4912 MB / 0.8688 GB, free: 40.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001761/1.407, allocations: 79.98 kB / 0.8689 GB, free: 39.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003643/1.411, allocations: 299.5 kB / 0.8692 GB, free: 39.68 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001173/1.412, allocations: 266 kB / 0.8694 GB, free: 39.42 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005851/1.413, allocations: 116 kB / 0.8695 GB, free: 39.31 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004321/1.417, allocations: 2.71 MB / 0.8722 GB, free: 36.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.954e-06/1.417, allocations: 0 / 0.8722 GB, free: 36.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007627/1.425, allocations: 1.645 MB / 0.8738 GB, free: 34.96 MB / 0.5294 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.02141/1.446, allocations: 15.82 MB / 0.8892 GB, free: 18.87 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2555/1.702, allocations: 19.72 MB / 0.9085 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.272e-05/1.702, allocations: 3.188 kB / 0.9085 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007919/1.71, allocations: 4.305 MB / 0.9127 GB, free: 181.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005631/1.715, allocations: 0.7347 MB / 0.9134 GB, free: 180.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1181/1.833, allocations: 82.77 MB / 0.9942 GB, free: 98.66 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00504/1.839, allocations: 4.547 MB / 0.9987 GB, free: 94.07 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005831/1.844, allocations: 2.72 MB / 1.001 GB, free: 91.34 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004077/1.849, allocations: 2.827 MB / 1.004 GB, free: 88.51 MB / 0.5294 GB Notification: Performance of SimCode: time 1.052e-06/1.849, allocations: 4 kB / 1.004 GB, free: 88.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3968/2.245, allocations: 117.1 MB / 1.118 GB, free: 161.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/2.246, allocations: 221.4 kB / 1.119 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.267/7.513, allocations: 0.625 kB / 1.119 GB, free: 161.4 MB / 0.5294 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