Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001078/0.001078, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2288/0.2288, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 80.58 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.116, allocations: 62.43 MB / 480.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01318/0.1292, allocations: 12.27 MB / 492.4 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00789/0.1372, allocations: 3.944 MB / 496.3 MB, free: 4.906 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001935/0.1391, allocations: 59.88 kB / 496.4 MB, free: 4.848 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002942/0.1422, allocations: 1.311 MB / 497.7 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005172/0.1474, allocations: 1.724 MB / 499.4 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001589/0.149, allocations: 499 kB / 499.9 MB, free: 1.312 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005544/0.1545, allocations: 3.595 MB / 0.4917 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003015/0.1576, allocations: 2.005 MB / 0.4937 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002012/0.1596, allocations: 1.191 MB / 0.4948 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002408/0.162, allocations: 1.705 MB / 0.4965 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000798/0.1628, allocations: 239.9 kB / 0.4967 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002273/0.1651, allocations: 0.9361 MB / 0.4976 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00215/0.1673, allocations: 1.574 MB / 0.4992 GB, free: 6.012 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003428/0.1707, allocations: 1.879 MB / 0.501 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.231/0.4018, allocations: 5.891 MB / 0.5068 GB, free: 18.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.4018, allocations: 1.406 kB / 0.5068 GB, free: 18.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.4018, allocations: 0.5625 kB / 0.5068 GB, free: 18.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002487/0.4021, allocations: 0 / 0.5068 GB, free: 18.46 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.008923/0.411, allocations: 4.137 MB / 0.5108 GB, free: 16.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.4111, allocations: 10.69 kB / 0.5108 GB, free: 16.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001117/0.4122, allocations: 0.7081 MB / 0.5115 GB, free: 16.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01167/0.4239, allocations: 3.087 MB / 0.5145 GB, free: 16.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005562/0.4295, allocations: 2.082 MB / 0.5166 GB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002218/0.4297, allocations: 191.9 kB / 0.5167 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001086/0.4308, allocations: 246.1 kB / 0.517 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01661/0.4474, allocations: 10.49 MB / 0.5272 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.081e-05/0.4476, allocations: 26.53 kB / 0.5272 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003911/0.448, allocations: 122 kB / 0.5274 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0039/0.4519, allocations: 2.548 MB / 0.5298 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01659/0.4685, allocations: 9.929 MB / 0.5395 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04816/0.5167, allocations: 34.47 MB / 0.5732 GB, free: 4.035 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01029/0.527, allocations: 5.186 MB / 0.5783 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003478/0.5305, allocations: 2.296 MB / 0.5805 GB, free: 12.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001647/0.5322, allocations: 1.886 MB / 0.5824 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.892e-05/0.5323, allocations: 52.56 kB / 0.5824 GB, free: 10.08 MB / 430.1 MB Notification: Performance of pre-optimization done (n=229): time 5.791e-06/0.5323, allocations: 5.641 kB / 0.5824 GB, free: 10.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=235): time 0.03452/0.5668, allocations: 13.97 MB / 0.5961 GB, free: 12.08 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.286e-05/0.5669, allocations: 77.34 kB / 0.5961 GB, free: 11.99 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004606/0.5715, allocations: 2.638 MB / 0.5987 GB, free: 9.336 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003464/0.5719, allocations: 56.67 kB / 0.5988 GB, free: 9.277 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/0.5738, allocations: 2.619 MB / 0.6013 GB, free: 6.668 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001085/0.5749, allocations: 0.858 MB / 0.6022 GB, free: 5.816 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001862/0.5768, allocations: 1.035 MB / 0.6032 GB, free: 4.773 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.79e-05/0.5769, allocations: 305.1 kB / 0.6035 GB, free: 4.473 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003379/0.5803, allocations: 2.196 MB / 0.6056 GB, free: 2.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005028/0.5853, allocations: 5.059 MB / 0.6105 GB, free: 11.86 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009112/0.5944, allocations: 7.959 MB / 0.6183 GB, free: 2.91 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.829e-05/0.5945, allocations: 28 kB / 0.6183 GB, free: 2.883 MB / 462.1 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01404/0.6086, allocations: 7.867 MB / 0.626 GB, free: 11.41 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.495e-05/0.6087, allocations: 48 kB / 0.6261 GB, free: 11.37 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001404/0.6089, allocations: 100 kB / 0.6262 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002303/0.6112, allocations: 0.7906 MB / 0.6269 GB, free: 10.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003776/0.615, allocations: 1.183 MB / 0.6281 GB, free: 9.293 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006552/0.6215, allocations: 4.523 MB / 0.6325 GB, free: 4.633 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004172/0.6257, allocations: 291.7 kB / 0.6328 GB, free: 4.348 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009236/0.6267, allocations: 302.9 kB / 0.6331 GB, free: 4.055 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (631): * Single equations (assignments): 624 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00452/0.6312, allocations: 2.02 MB / 0.6351 GB, free: 2.023 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007804/0.632, allocations: 256.6 kB / 0.6353 GB, free: 1.77 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009285/0.6413, allocations: 4.724 MB / 0.6399 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.868e-05/0.6414, allocations: 54.06 kB / 0.64 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/0.6414, allocations: 4 kB / 0.64 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.81e-05/0.6414, allocations: 11.91 kB / 0.64 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02211/0.6636, allocations: 10.53 MB / 0.6503 GB, free: 2.316 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.739e-05/0.6636, allocations: 9.422 kB / 0.6503 GB, free: 2.309 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001727/0.6654, allocations: 363.4 kB / 0.6506 GB, free: 1.953 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/0.6675, allocations: 0.6561 MB / 0.6513 GB, free: 1.293 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003216/0.6679, allocations: 40 kB / 0.6513 GB, free: 1.254 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005776/0.6737, allocations: 3.907 MB / 0.6551 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.251e-05/0.6737, allocations: 11.94 kB / 0.6551 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01157/0.6853, allocations: 7.139 MB / 0.6621 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000978/0.6863, allocations: 305.7 kB / 0.6624 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008028/0.6871, allocations: 40 kB / 0.6624 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001676/0.6888, allocations: 149.9 kB / 0.6626 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003781/0.6892, allocations: 133 kB / 0.6627 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000183/0.6894, allocations: 74.81 kB / 0.6628 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003101/0.6925, allocations: 1.612 MB / 0.6643 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6925, allocations: 0 / 0.6643 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004766/0.6973, allocations: 0.914 MB / 0.6652 GB, free: 2.711 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01132/0.7086, allocations: 7.784 MB / 0.6728 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01413/0.7228, allocations: 8.668 MB / 0.6813 GB, free: 2.152 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/0.7228, allocations: 0 / 0.6813 GB, free: 2.152 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003069/0.7259, allocations: 2.023 MB / 0.6833 GB, free: 116 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002639/0.7286, allocations: 363.1 kB / 0.6836 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.287/1.016, allocations: 42.31 MB / 0.7249 GB, free: 190.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005492/1.021, allocations: 3.16 MB / 0.728 GB, free: 189.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006153/1.027, allocations: 1.961 MB / 0.7299 GB, free: 189.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002791/1.03, allocations: 1.714 MB / 0.7316 GB, free: 187.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.202e-06/1.03, allocations: 0 / 0.7316 GB, free: 187.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.11/1.14, allocations: 57.23 MB / 0.7875 GB, free: 140 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/11.26, allocations: 8.859 kB / 0.7875 GB, free: 140 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches