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.0008401/0.0008402, allocations: 96.56 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 205.2 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.7 MB / 246.8 MB, free: 11.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1932/0.1932, allocations: 46.17 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002526, allocations: 11.98 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1144, allocations: 63.56 MB / 483.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.2934/0.4079, allocations: 61.52 MB / 0.5319 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0277/0.4356, allocations: 12.53 MB / 0.5442 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01227/0.448, allocations: 272.5 kB / 0.5444 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002231/0.4502, allocations: 0.6123 MB / 0.545 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007066/0.4573, allocations: 2.416 MB / 0.5474 GB, free: 340 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002096/0.4594, allocations: 0.9393 MB / 0.5483 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01259/0.472, allocations: 10.35 MB / 0.5584 GB, free: 9.723 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00894/0.481, allocations: 5.388 MB / 0.5637 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003739/0.4848, allocations: 1.731 MB / 0.5654 GB, free: 2.535 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004931/0.4897, allocations: 3.119 MB / 0.5684 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001409/0.4912, allocations: 220 kB / 0.5686 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00375/0.4949, allocations: 1.127 MB / 0.5697 GB, free: 14.06 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003778/0.4987, allocations: 2.559 MB / 0.5722 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005818/0.5046, allocations: 2.932 MB / 0.5751 GB, free: 8.539 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01264/0.5173, allocations: 9.307 MB / 0.5842 GB, free: 15.2 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.5173, allocations: 0 / 0.5842 GB, free: 15.2 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.5173, allocations: 0 / 0.5842 GB, free: 15.2 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004747/0.5178, allocations: 0 / 0.5842 GB, free: 15.2 MB / 430.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.01841/0.5362, allocations: 6.047 MB / 0.5901 GB, free: 9.074 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/0.5363, allocations: 16.86 kB / 0.5901 GB, free: 9.059 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003135/0.5395, allocations: 1.01 MB / 0.5911 GB, free: 8.039 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03064/0.5701, allocations: 5.729 MB / 0.5967 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01036/0.5805, allocations: 4.799 MB / 0.6014 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003993/0.581, allocations: 312.6 kB / 0.6017 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002589/0.5836, allocations: 447.4 kB / 0.6021 GB, free: 12.69 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03333/0.6169, allocations: 15.56 MB / 0.6173 GB, free: 12.39 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002873/0.6172, allocations: 59.48 kB / 0.6173 GB, free: 12.34 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001558/0.6188, allocations: 203.8 kB / 0.6175 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006789/0.6256, allocations: 3.38 MB / 0.6208 GB, free: 8.746 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03286/0.6585, allocations: 14.73 MB / 0.6352 GB, free: 9.996 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09391/0.7525, allocations: 55.03 MB / 0.689 GB, free: 1.781 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01887/0.7714, allocations: 8.143 MB / 0.6969 GB, free: 9.406 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006707/0.7781, allocations: 4.767 MB / 0.7016 GB, free: 4.633 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002215/0.7804, allocations: 2.212 MB / 0.7037 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.617e-05/0.7805, allocations: 69.02 kB / 0.7038 GB, free: 1.953 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 8.756e-06/0.7805, allocations: 0 / 0.7038 GB, free: 1.953 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.3197/1.1, allocations: 39.55 MB / 0.7424 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/1.1, allocations: 120 kB / 0.7425 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005057/1.105, allocations: 4.307 MB / 0.7467 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008577/1.106, allocations: 87.5 kB / 0.7468 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001752/1.108, allocations: 3.821 MB / 0.7505 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001503/1.11, allocations: 1.482 MB / 0.752 GB, free: 158.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007543/1.11, allocations: 0.6525 MB / 0.7526 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.139e-05/1.11, allocations: 305 kB / 0.7529 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004479/1.115, allocations: 3.947 MB / 0.7568 GB, free: 154 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005738/1.121, allocations: 7.691 MB / 0.7643 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01174/1.132, allocations: 12.65 MB / 0.7766 GB, free: 130.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.259e-05/1.132, allocations: 40 kB / 0.7767 GB, free: 130.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02206/1.155, allocations: 14.18 MB / 0.7905 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.374e-05/1.155, allocations: 67.92 kB / 0.7906 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/1.155, allocations: 131.9 kB / 0.7907 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00681/1.162, allocations: 2.671 MB / 0.7933 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005595/1.167, allocations: 1.758 MB / 0.795 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01571/1.183, allocations: 14.16 MB / 0.8089 GB, free: 96.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005524/1.188, allocations: 0.4898 MB / 0.8093 GB, free: 96.31 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00119/1.19, allocations: 423.9 kB / 0.8098 GB, free: 95.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.005172/1.195, allocations: 2.868 MB / 0.8126 GB, free: 93.02 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00116/1.196, allocations: 466 kB / 0.813 GB, free: 92.56 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01797/1.214, allocations: 10.56 MB / 0.8233 GB, free: 81.95 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-05/1.214, allocations: 62.58 kB / 0.8234 GB, free: 81.89 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.514e-05/1.214, allocations: 12 kB / 0.8234 GB, free: 81.88 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.391e-05/1.214, allocations: 23.86 kB / 0.8234 GB, free: 81.85 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04227/1.257, allocations: 21.34 MB / 0.8442 GB, free: 60.28 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.247e-05/1.257, allocations: 12 kB / 0.8443 GB, free: 60.27 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00334/1.26, allocations: 0.6748 MB / 0.8449 GB, free: 59.59 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0069/1.267, allocations: 2.487 MB / 0.8473 GB, free: 57.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007987/1.268, allocations: 80.8 kB / 0.8474 GB, free: 57.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01488/1.283, allocations: 12.9 MB / 0.86 GB, free: 43.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.065e-05/1.283, allocations: 19.88 kB / 0.86 GB, free: 43.82 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02185/1.305, allocations: 15.1 MB / 0.8748 GB, free: 28.45 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/1.306, allocations: 0.4989 MB / 0.8753 GB, free: 27.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001393/1.307, allocations: 81.16 kB / 0.8754 GB, free: 27.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003548/1.311, allocations: 304.7 kB / 0.8756 GB, free: 27.55 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001022/1.312, allocations: 262 kB / 0.8759 GB, free: 27.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004875/1.312, allocations: 117.2 kB / 0.876 GB, free: 27.18 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004707/1.317, allocations: 2.706 MB / 0.8786 GB, free: 24.48 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.91e-07/1.317, allocations: 0 / 0.8786 GB, free: 24.48 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006576/1.324, allocations: 1.61 MB / 0.8802 GB, free: 22.87 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.02113/1.345, allocations: 15.83 MB / 0.8957 GB, free: 6.777 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2617/1.607, allocations: 9.784 MB / 0.9052 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/1.607, allocations: 2.438 kB / 0.9052 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007827/1.614, allocations: 4.313 MB / 0.9094 GB, free: 187.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01138/1.626, allocations: 0.698 MB / 0.9101 GB, free: 187.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1055/1.731, allocations: 82.86 MB / 0.991 GB, free: 118.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006206/1.738, allocations: 4.543 MB / 0.9955 GB, free: 113.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006909/1.745, allocations: 2.724 MB / 0.9981 GB, free: 110.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004121/1.749, allocations: 2.823 MB / 1.001 GB, free: 108.1 MB / 0.545 GB Notification: Performance of SimCode: time 2.305e-06/1.749, allocations: 0 / 1.001 GB, free: 108.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4779/2.227, allocations: 112.4 MB / 1.111 GB, free: 166.4 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/2.227, allocations: 215.4 kB / 1.111 GB, free: 166.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.49/6.717, allocations: 0 / 1.111 GB, free: 166.1 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