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.001136/0.001136, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001217/0.001217, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2285/0.2285, allocations: 46.11 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 77.69 kB / 416.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1181, allocations: 62.44 MB / 479.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.02821/0.1463, allocations: 29.53 MB / 0.497 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01557/0.162, allocations: 6.781 MB / 0.5036 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004744/0.1667, allocations: 123.7 kB / 0.5037 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2281/0.3949, allocations: 1.268 MB / 0.505 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004699/0.3997, allocations: 1.604 MB / 0.5065 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001193/0.4009, allocations: 455.6 kB / 0.507 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006262/0.4072, allocations: 5.031 MB / 0.5119 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002745/0.4099, allocations: 1.969 MB / 0.5138 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00178/0.4117, allocations: 1.04 MB / 0.5148 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002583/0.4143, allocations: 1.797 MB / 0.5166 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004236/0.4147, allocations: 166 kB / 0.5167 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00172/0.4165, allocations: 0.9271 MB / 0.5176 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001255/0.4177, allocations: 1.523 MB / 0.5191 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001503/0.4193, allocations: 1.819 MB / 0.5209 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005042/0.4243, allocations: 5.848 MB / 0.5266 GB, free: 6.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.4243, allocations: 0 / 0.5266 GB, free: 6.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4243, allocations: 0 / 0.5266 GB, free: 6.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.553e-05/0.4244, allocations: 4 kB / 0.5266 GB, free: 6.551 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.006175/0.4306, allocations: 4.135 MB / 0.5307 GB, free: 3.734 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.4307, allocations: 10.31 kB / 0.5307 GB, free: 3.734 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000682/0.4314, allocations: 0.7067 MB / 0.5314 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009444/0.4408, allocations: 3.089 MB / 0.5344 GB, free: 1.691 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003537/0.4444, allocations: 2.078 MB / 0.5364 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.4445, allocations: 194.3 kB / 0.5366 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004429/0.4449, allocations: 241.6 kB / 0.5368 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/0.4594, allocations: 10.49 MB / 0.5471 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.062e-05/0.4595, allocations: 26.59 kB / 0.5471 GB, free: 7.379 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003543/0.4598, allocations: 116.6 kB / 0.5472 GB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003933/0.4638, allocations: 2.559 MB / 0.5497 GB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01689/0.4807, allocations: 9.916 MB / 0.5594 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05066/0.5314, allocations: 34.47 MB / 0.593 GB, free: 8.176 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009784/0.5412, allocations: 5.187 MB / 0.5981 GB, free: 2.773 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003028/0.5443, allocations: 2.296 MB / 0.6004 GB, free: 492 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001669/0.5459, allocations: 1.875 MB / 0.6022 GB, free: 14.28 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.114e-05/0.546, allocations: 56.56 kB / 0.6022 GB, free: 14.22 MB / 462.1 MB Notification: Performance of pre-optimization done (n=229): time 4.969e-06/0.546, allocations: 3.938 kB / 0.6022 GB, free: 14.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=235): time 0.03242/0.5785, allocations: 13.99 MB / 0.6159 GB, free: 204 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.196e-05/0.5785, allocations: 77.34 kB / 0.616 GB, free: 116 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004663/0.5832, allocations: 2.627 MB / 0.6185 GB, free: 13.47 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001459/0.5834, allocations: 57.7 kB / 0.6186 GB, free: 13.41 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002077/0.5855, allocations: 2.63 MB / 0.6212 GB, free: 10.77 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009085/0.5864, allocations: 0.8463 MB / 0.622 GB, free: 9.934 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001669/0.5881, allocations: 1.036 MB / 0.623 GB, free: 8.887 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.5882, allocations: 301.1 kB / 0.6233 GB, free: 8.59 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003302/0.5915, allocations: 2.204 MB / 0.6254 GB, free: 6.379 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005457/0.597, allocations: 5.058 MB / 0.6304 GB, free: 15.96 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0107/0.6077, allocations: 7.965 MB / 0.6382 GB, free: 6.863 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.315e-05/0.6078, allocations: 32 kB / 0.6382 GB, free: 6.832 MB / 494.1 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.0165/0.6243, allocations: 7.858 MB / 0.6459 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000122/0.6245, allocations: 44 kB / 0.6459 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002207/0.6247, allocations: 100 kB / 0.646 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002635/0.6273, allocations: 0.7931 MB / 0.6468 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004056/0.6314, allocations: 1.181 MB / 0.6479 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006401/0.6378, allocations: 4.205 MB / 0.652 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003155/0.641, allocations: 299.8 kB / 0.6523 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005935/0.6416, allocations: 299.2 kB / 0.6526 GB, free: 7.922 MB / 0.4981 GB 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.004695/0.6463, allocations: 2.028 MB / 0.6546 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000755/0.6471, allocations: 260.6 kB / 0.6548 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009404/0.6565, allocations: 4.725 MB / 0.6594 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.434e-05/0.6565, allocations: 44 kB / 0.6595 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/0.6566, allocations: 7.984 kB / 0.6595 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.6566, allocations: 7.969 kB / 0.6595 GB, free: 0.8125 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01857/0.6752, allocations: 10.55 MB / 0.6698 GB, free: 6.156 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.589e-05/0.6752, allocations: 8 kB / 0.6698 GB, free: 6.148 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001525/0.6767, allocations: 367.4 kB / 0.6702 GB, free: 5.789 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/0.6788, allocations: 0.6483 MB / 0.6708 GB, free: 5.137 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001756/0.679, allocations: 44.19 kB / 0.6708 GB, free: 5.094 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005165/0.6842, allocations: 3.662 MB / 0.6744 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/0.6842, allocations: 11.94 kB / 0.6744 GB, free: 1.281 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01087/0.6951, allocations: 7.134 MB / 0.6814 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006665/0.6958, allocations: 305.7 kB / 0.6817 GB, free: 9.723 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000465/0.6962, allocations: 43.52 kB / 0.6817 GB, free: 9.684 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.6974, allocations: 139.8 kB / 0.6819 GB, free: 9.547 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000334/0.6978, allocations: 137 kB / 0.682 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/0.698, allocations: 60 kB / 0.682 GB, free: 9.352 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002673/0.7006, allocations: 1.627 MB / 0.6836 GB, free: 7.715 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/0.7007, allocations: 0 / 0.6836 GB, free: 7.715 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004472/0.7051, allocations: 0.9054 MB / 0.6845 GB, free: 6.812 MB / 0.5294 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.0108/0.7159, allocations: 7.787 MB / 0.6921 GB, free: 14.91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00822/0.7242, allocations: 5.337 MB / 0.6973 GB, free: 9.582 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.7242, allocations: 0 / 0.6973 GB, free: 9.582 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002666/0.7269, allocations: 2.032 MB / 0.6993 GB, free: 7.539 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.7289, allocations: 348.8 kB / 0.6997 GB, free: 7.203 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2461/0.975, allocations: 44.24 MB / 0.7429 GB, free: 177.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00296/0.978, allocations: 3.161 MB / 0.7459 GB, free: 176.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003716/0.9817, allocations: 1.954 MB / 0.7478 GB, free: 174.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001813/0.9835, allocations: 1.711 MB / 0.7495 GB, free: 173.3 MB / 0.545 GB Notification: Performance of SimCode: time 8.82e-07/0.9835, allocations: 0 / 0.7495 GB, free: 173.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06234/1.046, allocations: 56 MB / 0.8042 GB, free: 118 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001403/1.046, allocations: 229.2 kB / 0.8044 GB, free: 117.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.684/4.731, allocations: 3.938 kB / 0.8044 GB, free: 117.7 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