Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001525/0.001524, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00164/0.00164, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2086/0.2086, allocations: 46.1 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 75.22 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1142, allocations: 62.45 MB / 480.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01835/0.1325, allocations: 18.14 MB / 498.3 MB, free: 2.992 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01092/0.1435, allocations: 5.292 MB / 0.4918 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002893/0.1464, allocations: 111.8 kB / 0.4919 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005986/0.1525, allocations: 3.048 MB / 0.4948 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00609/0.1586, allocations: 2.545 MB / 0.4973 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002562/0.1612, allocations: 1.014 MB / 0.4983 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2194/0.3806, allocations: 7.654 MB / 0.5058 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006078/0.3867, allocations: 4.178 MB / 0.5099 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004025/0.3908, allocations: 2.238 MB / 0.5121 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005653/0.3965, allocations: 3.234 MB / 0.5152 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001721/0.3982, allocations: 452.1 kB / 0.5156 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003396/0.4016, allocations: 1.295 MB / 0.5169 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003175/0.4048, allocations: 2.798 MB / 0.5196 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004024/0.4089, allocations: 3.225 MB / 0.5228 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009631/0.4185, allocations: 9.682 MB / 0.5322 GB, free: 6.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.4186, allocations: 0 / 0.5322 GB, free: 6.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4186, allocations: 0 / 0.5322 GB, free: 6.707 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003252/0.4189, allocations: 0 / 0.5322 GB, free: 6.707 MB / 382.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.01625/0.4352, allocations: 7.326 MB / 0.5394 GB, free: 1.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.4352, allocations: 9.656 kB / 0.5394 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001452/0.4367, allocations: 1.012 MB / 0.5404 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02743/0.4641, allocations: 5.603 MB / 0.5459 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01006/0.4742, allocations: 4.814 MB / 0.5506 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002797/0.4745, allocations: 316.8 kB / 0.5509 GB, free: 9.383 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001714/0.4763, allocations: 437.1 kB / 0.5513 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0287/0.505, allocations: 15.52 MB / 0.5664 GB, free: 9.008 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001702/0.5052, allocations: 61.73 kB / 0.5665 GB, free: 8.969 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007473/0.5059, allocations: 198.4 kB / 0.5667 GB, free: 8.828 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006066/0.512, allocations: 3.373 MB / 0.57 GB, free: 5.488 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02932/0.5413, allocations: 14.69 MB / 0.5843 GB, free: 6.965 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08467/0.626, allocations: 55.09 MB / 0.6381 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01712/0.6432, allocations: 8.148 MB / 0.6461 GB, free: 7.094 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006763/0.65, allocations: 4.768 MB / 0.6507 GB, free: 2.316 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00213/0.6521, allocations: 2.211 MB / 0.6529 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.038e-05/0.6522, allocations: 65.08 kB / 0.653 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=367): time 1.073e-05/0.6523, allocations: 7.984 kB / 0.653 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=419): time 0.1156/0.7679, allocations: 39.56 MB / 0.6916 GB, free: 8.16 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.7681, allocations: 122.7 kB / 0.6917 GB, free: 8.023 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009799/0.7779, allocations: 4.313 MB / 0.6959 GB, free: 3.695 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001357/0.7793, allocations: 81.7 kB / 0.696 GB, free: 3.609 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004004/0.7833, allocations: 3.821 MB / 0.6997 GB, free: 15.78 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002979/0.7863, allocations: 1.487 MB / 0.7012 GB, free: 14.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005069/0.7914, allocations: 1.516 MB / 0.7027 GB, free: 12.78 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.7915, allocations: 309.1 kB / 0.703 GB, free: 12.48 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006714/0.7982, allocations: 3.938 MB / 0.7068 GB, free: 8.535 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2414/1.04, allocations: 7.699 MB / 0.7143 GB, free: 185.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01674/1.056, allocations: 12.65 MB / 0.7267 GB, free: 178.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001628/1.057, allocations: 37.34 kB / 0.7267 GB, free: 178.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.03098/1.088, allocations: 14.17 MB / 0.7406 GB, free: 173.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.132e-05/1.088, allocations: 62.5 kB / 0.7406 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001429/1.088, allocations: 127.8 kB / 0.7407 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007191/1.095, allocations: 2.685 MB / 0.7434 GB, free: 173.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006318/1.101, allocations: 1.756 MB / 0.7451 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01836/1.12, allocations: 15.23 MB / 0.7599 GB, free: 165.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008047/1.128, allocations: 496.5 kB / 0.7604 GB, free: 165.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001754/1.13, allocations: 430.4 kB / 0.7608 GB, free: 164.7 MB / 0.545 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.006229/1.136, allocations: 2.869 MB / 0.7636 GB, free: 162.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001372/1.137, allocations: 462.4 kB / 0.7641 GB, free: 162.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01707/1.154, allocations: 10.56 MB / 0.7744 GB, free: 153.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.453e-05/1.154, allocations: 63.92 kB / 0.7745 GB, free: 153 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-05/1.155, allocations: 11.83 kB / 0.7745 GB, free: 153 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-05/1.155, allocations: 15.94 kB / 0.7745 GB, free: 153 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03177/1.186, allocations: 21.33 MB / 0.7953 GB, free: 131.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.111e-05/1.186, allocations: 14.69 kB / 0.7953 GB, free: 131.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002928/1.189, allocations: 0.6903 MB / 0.796 GB, free: 130.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006491/1.196, allocations: 2.488 MB / 0.7984 GB, free: 128.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005659/1.196, allocations: 79.28 kB / 0.7985 GB, free: 128.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01501/1.211, allocations: 13.83 MB / 0.812 GB, free: 114.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/1.212, allocations: 16.31 kB / 0.812 GB, free: 114.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02076/1.232, allocations: 15.11 MB / 0.8268 GB, free: 98.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/1.233, allocations: 0.4909 MB / 0.8273 GB, free: 98.39 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009077/1.234, allocations: 77.41 kB / 0.8273 GB, free: 98.31 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002525/1.237, allocations: 308.5 kB / 0.8276 GB, free: 98.01 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007231/1.238, allocations: 262 kB / 0.8279 GB, free: 97.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002695/1.238, allocations: 124.7 kB / 0.828 GB, free: 97.64 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003366/1.241, allocations: 2.702 MB / 0.8306 GB, free: 94.93 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/1.241, allocations: 0 / 0.8306 GB, free: 94.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005513/1.247, allocations: 1.618 MB / 0.8322 GB, free: 93.32 MB / 0.545 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.02028/1.267, allocations: 15.81 MB / 0.8477 GB, free: 77.25 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02912/1.296, allocations: 19.72 MB / 0.8669 GB, free: 57.52 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/1.296, allocations: 0 / 0.8669 GB, free: 57.52 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005532/1.302, allocations: 4.309 MB / 0.8711 GB, free: 53.18 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0041/1.306, allocations: 0.7386 MB / 0.8718 GB, free: 52.46 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2913/1.597, allocations: 79.82 MB / 0.9498 GB, free: 162.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004697/1.602, allocations: 4.537 MB / 0.9542 GB, free: 161 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005619/1.608, allocations: 2.718 MB / 0.9569 GB, free: 160.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003629/1.611, allocations: 2.826 MB / 0.9596 GB, free: 158.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.232e-06/1.611, allocations: 0 / 0.9596 GB, free: 158.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1861/1.797, allocations: 117.1 MB / 1.074 GB, free: 48.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/14.13, allocations: 3.938 kB / 1.074 GB, free: 48.19 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches