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.001382/0.001382, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001479/0.001479, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, 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.2306/0.2306, allocations: 46.11 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 81.27 kB / 416.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.134, allocations: 62.44 MB / 479.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3232/0.4572, allocations: 63.13 MB / 0.5298 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03247/0.4897, allocations: 12.6 MB / 0.5421 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0181/0.5079, allocations: 278.3 kB / 0.5424 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006561/0.5145, allocations: 3.001 MB / 0.5453 GB, free: 15.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007156/0.5217, allocations: 2.398 MB / 0.5476 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002597/0.5244, allocations: 0.9409 MB / 0.5486 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01256/0.5369, allocations: 10.35 MB / 0.5587 GB, free: 6.145 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006988/0.544, allocations: 4.047 MB / 0.5626 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004282/0.5483, allocations: 1.973 MB / 0.5646 GB, free: 84 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005739/0.554, allocations: 3.415 MB / 0.5679 GB, free: 12.65 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001795/0.5559, allocations: 316 kB / 0.5682 GB, free: 12.34 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003765/0.5597, allocations: 1.229 MB / 0.5694 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003927/0.5636, allocations: 2.688 MB / 0.572 GB, free: 8.422 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006178/0.5698, allocations: 3.086 MB / 0.575 GB, free: 5.316 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0126/0.5824, allocations: 9.548 MB / 0.5844 GB, free: 11.73 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.042e-05/0.5825, allocations: 4 kB / 0.5844 GB, free: 11.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.157e-06/0.5825, allocations: 3.938 kB / 0.5844 GB, free: 11.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004158/0.5829, allocations: 3.938 kB / 0.5844 GB, free: 11.72 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.02113/0.6041, allocations: 7.325 MB / 0.5915 GB, free: 4.32 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.6041, allocations: 12.88 kB / 0.5915 GB, free: 4.309 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002962/0.6071, allocations: 1.014 MB / 0.5925 GB, free: 3.285 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02918/0.6363, allocations: 5.604 MB / 0.598 GB, free: 13.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01109/0.6474, allocations: 4.807 MB / 0.6027 GB, free: 8.797 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003946/0.6478, allocations: 316.5 kB / 0.603 GB, free: 8.484 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002589/0.6504, allocations: 443.5 kB / 0.6034 GB, free: 8.051 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03259/0.683, allocations: 15.51 MB / 0.6186 GB, free: 7.801 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003537/0.6835, allocations: 67.42 kB / 0.6186 GB, free: 7.734 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002178/0.6857, allocations: 195.8 kB / 0.6188 GB, free: 7.543 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00635/0.692, allocations: 3.38 MB / 0.6221 GB, free: 4.16 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03207/0.7241, allocations: 14.69 MB / 0.6365 GB, free: 5.449 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09693/0.8211, allocations: 55.07 MB / 0.6902 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01892/0.8401, allocations: 8.153 MB / 0.6982 GB, free: 4.812 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006991/0.8471, allocations: 4.765 MB / 0.7029 GB, free: 40 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002484/0.8496, allocations: 2.212 MB / 0.705 GB, free: 13.44 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001049/0.8497, allocations: 65.08 kB / 0.7051 GB, free: 13.36 MB / 0.545 GB Notification: Performance of pre-optimization done (n=367): time 1.021e-05/0.8498, allocations: 0 / 0.7051 GB, free: 13.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=419): time 0.353/1.203, allocations: 39.55 MB / 0.7437 GB, free: 190.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.91e-05/1.203, allocations: 117.5 kB / 0.7438 GB, free: 190.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005069/1.208, allocations: 4.304 MB / 0.748 GB, free: 189.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008754/1.209, allocations: 88.97 kB / 0.7481 GB, free: 189 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001875/1.211, allocations: 3.819 MB / 0.7518 GB, free: 186.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001561/1.212, allocations: 1.494 MB / 0.7533 GB, free: 184.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001886/1.214, allocations: 1.517 MB / 0.7548 GB, free: 184.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.039e-05/1.214, allocations: 305.1 kB / 0.7551 GB, free: 184 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004673/1.219, allocations: 3.948 MB / 0.7589 GB, free: 182.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00629/1.225, allocations: 7.693 MB / 0.7664 GB, free: 173.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0127/1.238, allocations: 12.64 MB / 0.7788 GB, free: 158.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-05/1.238, allocations: 40 kB / 0.7788 GB, free: 158.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02112/1.259, allocations: 14.17 MB / 0.7927 GB, free: 144.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.695e-05/1.259, allocations: 60 kB / 0.7927 GB, free: 144.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-05/1.259, allocations: 128 kB / 0.7928 GB, free: 144.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006696/1.266, allocations: 2.675 MB / 0.7955 GB, free: 141.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005454/1.272, allocations: 1.762 MB / 0.7972 GB, free: 140.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01499/1.287, allocations: 14.16 MB / 0.811 GB, free: 125.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005897/1.293, allocations: 0.4955 MB / 0.8115 GB, free: 125.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009035/1.293, allocations: 427.9 kB / 0.8119 GB, free: 124.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.005294/1.299, allocations: 2.859 MB / 0.8147 GB, free: 121.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001064/1.3, allocations: 458.1 kB / 0.8151 GB, free: 121.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01569/1.316, allocations: 10.57 MB / 0.8254 GB, free: 110.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.208e-05/1.316, allocations: 63.98 kB / 0.8255 GB, free: 110.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.695e-05/1.316, allocations: 12 kB / 0.8255 GB, free: 110.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-05/1.316, allocations: 15.94 kB / 0.8255 GB, free: 110.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03635/1.352, allocations: 21.34 MB / 0.8464 GB, free: 89.14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.628e-05/1.352, allocations: 9.625 kB / 0.8464 GB, free: 89.13 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003014/1.355, allocations: 0.6864 MB / 0.847 GB, free: 88.44 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006567/1.362, allocations: 2.479 MB / 0.8495 GB, free: 85.95 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006147/1.362, allocations: 83.83 kB / 0.8495 GB, free: 85.88 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01399/1.376, allocations: 12.9 MB / 0.8621 GB, free: 72.71 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/1.376, allocations: 19.88 kB / 0.8622 GB, free: 72.69 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02051/1.397, allocations: 15.11 MB / 0.8769 GB, free: 57.31 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/1.398, allocations: 0.4912 MB / 0.8774 GB, free: 56.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/1.399, allocations: 79.34 kB / 0.8775 GB, free: 56.72 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002615/1.402, allocations: 303.8 kB / 0.8778 GB, free: 56.43 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007527/1.402, allocations: 269.9 kB / 0.878 GB, free: 56.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002911/1.403, allocations: 120 kB / 0.8781 GB, free: 56.04 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003274/1.406, allocations: 2.706 MB / 0.8808 GB, free: 53.34 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/1.406, allocations: 0 / 0.8808 GB, free: 53.34 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005882/1.412, allocations: 1.612 MB / 0.8823 GB, free: 51.73 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.02074/1.433, allocations: 15.82 MB / 0.8978 GB, free: 35.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0129/1.446, allocations: 9.797 MB / 0.9074 GB, free: 25.83 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.391e-05/1.446, allocations: 0 / 0.9074 GB, free: 25.83 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00562/1.451, allocations: 4.309 MB / 0.9116 GB, free: 21.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004267/1.456, allocations: 0.6946 MB / 0.9122 GB, free: 20.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3364/1.792, allocations: 82.71 MB / 0.993 GB, free: 135.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004465/1.796, allocations: 4.538 MB / 0.9975 GB, free: 130.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005853/1.802, allocations: 2.727 MB / 1 GB, free: 128.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003483/1.806, allocations: 2.819 MB / 1.003 GB, free: 125.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/1.806, allocations: 0 / 1.003 GB, free: 125.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1477/1.954, allocations: 114.2 MB / 1.114 GB, free: 11.42 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001478/1.954, allocations: 221.6 kB / 1.115 GB, free: 11.16 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.843/6.796, allocations: 0 / 1.115 GB, free: 11.16 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