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.001328/0.001327, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001446, allocations: 197.2 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2223/0.2223, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 75.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.351, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02085/0.3719, allocations: 18.14 MB / 0.5482 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.3848, allocations: 5.294 MB / 0.5534 GB, free: 10.25 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005215/0.39, allocations: 111.7 kB / 0.5535 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006884/0.3969, allocations: 3.052 MB / 0.5565 GB, free: 7.082 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007805/0.4048, allocations: 2.541 MB / 0.559 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002718/0.4075, allocations: 1.014 MB / 0.56 GB, free: 3.516 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01114/0.4187, allocations: 7.666 MB / 0.5674 GB, free: 11.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006718/0.4255, allocations: 4.171 MB / 0.5715 GB, free: 7.613 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005147/0.4306, allocations: 2.262 MB / 0.5737 GB, free: 5.344 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005567/0.4363, allocations: 3.232 MB / 0.5769 GB, free: 2.102 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001891/0.4382, allocations: 452 kB / 0.5773 GB, free: 1.66 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00361/0.4418, allocations: 1.295 MB / 0.5786 GB, free: 372 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004314/0.4461, allocations: 2.813 MB / 0.5813 GB, free: 13.54 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007177/0.4533, allocations: 3.219 MB / 0.5845 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01515/0.4685, allocations: 10.04 MB / 0.5943 GB, free: 240 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.4686, allocations: 0 / 0.5943 GB, free: 240 kB / 446.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4686, allocations: 0 / 0.5943 GB, free: 240 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004728/0.4691, allocations: 7.938 kB / 0.5943 GB, free: 232 kB / 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.02351/0.4926, allocations: 7.325 MB / 0.6014 GB, free: 8.816 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.4927, allocations: 8.031 kB / 0.6014 GB, free: 8.809 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003064/0.4958, allocations: 1.01 MB / 0.6024 GB, free: 7.789 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02865/0.5244, allocations: 5.612 MB / 0.6079 GB, free: 2.16 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0119/0.5364, allocations: 4.873 MB / 0.6127 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000429/0.5369, allocations: 312.4 kB / 0.613 GB, free: 12.92 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002495/0.5394, allocations: 443.5 kB / 0.6134 GB, free: 12.48 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03481/0.5742, allocations: 15.53 MB / 0.6286 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004224/0.5747, allocations: 63.39 kB / 0.6286 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002588/0.5773, allocations: 195.8 kB / 0.6288 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006965/0.5843, allocations: 3.384 MB / 0.6321 GB, free: 8.586 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03257/0.6169, allocations: 14.68 MB / 0.6464 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09668/0.7136, allocations: 54.77 MB / 0.6999 GB, free: 1.922 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01971/0.7334, allocations: 8.154 MB / 0.7079 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007025/0.7405, allocations: 4.777 MB / 0.7126 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002287/0.7428, allocations: 2.208 MB / 0.7147 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.379e-05/0.7429, allocations: 69.08 kB / 0.7148 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 9.117e-06/0.743, allocations: 0 / 0.7148 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3767/1.12, allocations: 39.55 MB / 0.7534 GB, free: 144.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/1.12, allocations: 130.6 kB / 0.7535 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004395/1.124, allocations: 4.306 MB / 0.7577 GB, free: 140.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005062/1.125, allocations: 81.7 kB / 0.7578 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001455/1.126, allocations: 3.828 MB / 0.7615 GB, free: 136.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001067/1.127, allocations: 1.49 MB / 0.763 GB, free: 134.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001754/1.129, allocations: 1.516 MB / 0.7645 GB, free: 133.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.306e-05/1.129, allocations: 301.1 kB / 0.7648 GB, free: 133 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004184/1.133, allocations: 3.946 MB / 0.7686 GB, free: 129 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0056/1.139, allocations: 7.69 MB / 0.7761 GB, free: 119.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.011/1.15, allocations: 12.65 MB / 0.7885 GB, free: 105.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.469e-05/1.15, allocations: 44 kB / 0.7885 GB, free: 105.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.01991/1.17, allocations: 14.17 MB / 0.8024 GB, free: 90.87 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.612e-05/1.17, allocations: 63.94 kB / 0.8024 GB, free: 90.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-05/1.17, allocations: 128 kB / 0.8026 GB, free: 90.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00644/1.176, allocations: 2.676 MB / 0.8052 GB, free: 88 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00632/1.183, allocations: 1.758 MB / 0.8069 GB, free: 86.24 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.016/1.199, allocations: 15.21 MB / 0.8217 GB, free: 70.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006147/1.205, allocations: 499.6 kB / 0.8222 GB, free: 70.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009711/1.206, allocations: 423.9 kB / 0.8226 GB, free: 69.85 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.004157/1.21, allocations: 2.871 MB / 0.8254 GB, free: 66.98 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008214/1.211, allocations: 463.2 kB / 0.8259 GB, free: 66.52 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01533/1.226, allocations: 10.56 MB / 0.8362 GB, free: 55.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.622e-05/1.227, allocations: 71.42 kB / 0.8362 GB, free: 55.83 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.781e-05/1.227, allocations: 8.094 kB / 0.8363 GB, free: 55.82 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.678e-05/1.227, allocations: 19.88 kB / 0.8363 GB, free: 55.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03222/1.259, allocations: 21.22 MB / 0.857 GB, free: 34.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.051e-05/1.259, allocations: 12.19 kB / 0.857 GB, free: 34.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002997/1.262, allocations: 0.6864 MB / 0.8577 GB, free: 33.71 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006346/1.268, allocations: 2.475 MB / 0.8601 GB, free: 31.23 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006755/1.269, allocations: 87.83 kB / 0.8602 GB, free: 31.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01484/1.284, allocations: 13.82 MB / 0.8737 GB, free: 17.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.087e-06/1.284, allocations: 20 kB / 0.8737 GB, free: 17.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02103/1.305, allocations: 15.11 MB / 0.8884 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/1.306, allocations: 0.495 MB / 0.8889 GB, free: 1.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001173/1.308, allocations: 79.98 kB / 0.889 GB, free: 1.039 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002511/1.31, allocations: 307.1 kB / 0.8893 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006847/1.311, allocations: 258 kB / 0.8895 GB, free: 500 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002733/1.311, allocations: 111.9 kB / 0.8897 GB, free: 388 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004999/1.316, allocations: 2.71 MB / 0.8923 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.01e-07/1.316, allocations: 0 / 0.8923 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009021/1.325, allocations: 1.615 MB / 0.8939 GB, free: 12.06 MB / 0.5762 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.02694/1.352, allocations: 15.84 MB / 0.9093 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01902/1.371, allocations: 9.846 MB / 0.919 GB, free: 2.102 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.941e-05/1.371, allocations: 4.5 kB / 0.919 GB, free: 2.098 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008379/1.38, allocations: 4.311 MB / 0.9232 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006516/1.386, allocations: 0.7388 MB / 0.9239 GB, free: 13.04 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.39/1.776, allocations: 69.94 MB / 0.9922 GB, free: 187.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004426/1.781, allocations: 4.546 MB / 0.9966 GB, free: 182.8 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005334/1.786, allocations: 2.719 MB / 0.9993 GB, free: 180.1 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003457/1.789, allocations: 2.823 MB / 1.002 GB, free: 177.3 MB / 0.6231 GB Notification: Performance of SimCode: time 8.82e-07/1.789, allocations: 2.531 kB / 1.002 GB, free: 177.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.161/1.95, allocations: 115.1 MB / 1.114 GB, free: 62.75 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.13/23.08, allocations: 0 / 1.114 GB, free: 62.75 MB / 0.6231 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