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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001616/0.001616, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001648/0.001648, allocations: 213.5 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 230.5 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.229/0.229, allocations: 46.95 MB / 361.6 MB, free: 3.922 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002501/0.002501, allocations: 79.88 kB / 0.4969 GB, free: 7.547 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3116, allocations: 66.08 MB / 0.5614 GB, free: 3.898 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01905/0.3306, allocations: 15.61 MB / 0.5767 GB, free: 4.219 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01269/0.3433, allocations: 5.074 MB / 0.5816 GB, free: 15.13 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002896/0.3462, allocations: 135.4 kB / 0.5818 GB, free: 15 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00685/0.3531, allocations: 2.978 MB / 0.5847 GB, free: 12.01 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01065/0.3637, allocations: 2.634 MB / 0.5873 GB, free: 9.363 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003658/0.3674, allocations: 1.026 MB / 0.5883 GB, free: 8.336 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01346/0.3808, allocations: 7.667 MB / 0.5957 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007159/0.388, allocations: 3.609 MB / 0.5993 GB, free: 13 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004847/0.3928, allocations: 2.297 MB / 0.6015 GB, free: 10.69 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005691/0.3985, allocations: 3.516 MB / 0.6049 GB, free: 7.164 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001781/0.4003, allocations: 456 kB / 0.6054 GB, free: 6.719 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003381/0.4037, allocations: 1.206 MB / 0.6066 GB, free: 5.512 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003919/0.4076, allocations: 2.875 MB / 0.6094 GB, free: 2.629 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004853/0.4125, allocations: 2.407 MB / 0.6117 GB, free: 212 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01576/0.4282, allocations: 10.13 MB / 0.6216 GB, free: 6.031 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.4282, allocations: 3.938 kB / 0.6216 GB, free: 6.027 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4282, allocations: 0 / 0.6216 GB, free: 6.027 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003241/0.4286, allocations: 3.938 kB / 0.6216 GB, free: 6.023 MB / 462.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.01803/0.4466, allocations: 7.431 MB / 0.6289 GB, free: 14.52 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.4466, allocations: 8.031 kB / 0.6289 GB, free: 14.51 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001881/0.4468, allocations: 144.5 kB / 0.629 GB, free: 14.37 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002212/0.449, allocations: 1.01 MB / 0.63 GB, free: 13.35 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03037/0.4794, allocations: 5.652 MB / 0.6355 GB, free: 7.684 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01129/0.4907, allocations: 4.83 MB / 0.6402 GB, free: 2.801 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003618/0.4911, allocations: 320.2 kB / 0.6405 GB, free: 2.484 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001479/0.4925, allocations: 431.7 kB / 0.641 GB, free: 2.062 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02831/0.5208, allocations: 15.61 MB / 0.6562 GB, free: 1.707 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001758/0.521, allocations: 59.53 kB / 0.6563 GB, free: 1.648 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000626/0.5216, allocations: 195.8 kB / 0.6564 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006674/0.5283, allocations: 3.372 MB / 0.6597 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03177/0.5601, allocations: 14.7 MB / 0.6741 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08569/0.6458, allocations: 52.46 MB / 0.7253 GB, free: 9.703 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01821/0.664, allocations: 6.873 MB / 0.732 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2722/0.9362, allocations: 4.418 MB / 0.7363 GB, free: 155 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001481/0.9377, allocations: 0.6409 MB / 0.737 GB, free: 155 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.901e-05/0.9378, allocations: 67.41 kB / 0.737 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 7.554e-06/0.9378, allocations: 0 / 0.737 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.09204/1.03, allocations: 39.49 MB / 0.7756 GB, free: 127.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/1.03, allocations: 116 kB / 0.7757 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004477/1.034, allocations: 4.322 MB / 0.7799 GB, free: 123.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006273/1.035, allocations: 81.7 kB / 0.78 GB, free: 123 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001518/1.036, allocations: 3.973 MB / 0.7839 GB, free: 119.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001159/1.038, allocations: 1.554 MB / 0.7854 GB, free: 118 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00182/1.039, allocations: 1.528 MB / 0.7869 GB, free: 116.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.145e-05/1.039, allocations: 301.1 kB / 0.7872 GB, free: 116.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004164/1.044, allocations: 3.946 MB / 0.791 GB, free: 112.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005517/1.049, allocations: 7.713 MB / 0.7986 GB, free: 102.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/1.06, allocations: 12.66 MB / 0.8109 GB, free: 88.25 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.072e-05/1.061, allocations: 36 kB / 0.811 GB, free: 88.22 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02196/1.082, allocations: 14.17 MB / 0.8248 GB, free: 74 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.599e-05/1.083, allocations: 60 kB / 0.8249 GB, free: 73.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/1.083, allocations: 130.2 kB / 0.825 GB, free: 73.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007422/1.09, allocations: 2.666 MB / 0.8276 GB, free: 71.14 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006156/1.096, allocations: 1.766 MB / 0.8293 GB, free: 69.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01572/1.112, allocations: 14.88 MB / 0.8439 GB, free: 54.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005862/1.118, allocations: 499.7 kB / 0.8443 GB, free: 53.78 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001292/1.119, allocations: 427.9 kB / 0.8447 GB, free: 53.36 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.00479/1.124, allocations: 2.866 MB / 0.8475 GB, free: 50.49 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009021/1.125, allocations: 488.7 kB / 0.848 GB, free: 50.01 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01506/1.14, allocations: 10.53 MB / 0.8583 GB, free: 39.43 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.431e-05/1.14, allocations: 63.98 kB / 0.8583 GB, free: 39.36 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.416e-05/1.14, allocations: 12 kB / 0.8584 GB, free: 39.35 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.926e-05/1.14, allocations: 19.92 kB / 0.8584 GB, free: 39.33 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03194/1.172, allocations: 20.42 MB / 0.8783 GB, free: 18.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.413e-05/1.172, allocations: 12 kB / 0.8783 GB, free: 18.72 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003279/1.175, allocations: 0.6786 MB / 0.879 GB, free: 18.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006429/1.182, allocations: 2.487 MB / 0.8814 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007009/1.183, allocations: 87.81 kB / 0.8815 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/1.197, allocations: 13.48 MB / 0.8947 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.074e-05/1.197, allocations: 23.98 kB / 0.8947 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02749/1.224, allocations: 15.1 MB / 0.9094 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001854/1.226, allocations: 452.7 kB / 0.9099 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001915/1.228, allocations: 72 kB / 0.9099 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003617/1.232, allocations: 307.1 kB / 0.9102 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/1.233, allocations: 273.8 kB / 0.9105 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003434/1.233, allocations: 112 kB / 0.9106 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004617/1.238, allocations: 2.715 MB / 0.9133 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.238, allocations: 7.938 kB / 0.9133 GB, free: 14.44 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00846/1.246, allocations: 1.617 MB / 0.9148 GB, free: 12.82 MB / 0.5919 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.02784/1.274, allocations: 15.81 MB / 0.9303 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01812/1.292, allocations: 9.432 MB / 0.9395 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.127e-05/1.292, allocations: 448 / 0.9395 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.007543/1.3, allocations: 4.022 MB / 0.9434 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005553/1.305, allocations: 0.7295 MB / 0.9441 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4046/1.71, allocations: 70.27 MB / 1.013 GB, free: 215.9 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005915/1.716, allocations: 4.049 MB / 1.017 GB, free: 212.9 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.005429/1.721, allocations: 2.72 MB / 1.019 GB, free: 210.9 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003948/1.725, allocations: 2.823 MB / 1.022 GB, free: 208.1 MB / 0.6544 GB Notification: Performance of SimCode: time 1.693e-06/1.725, allocations: 0 / 1.022 GB, free: 208.1 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1537/1.879, allocations: 118.4 MB / 1.138 GB, free: 90.52 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.11/24.98, allocations: 8 kB / 1.138 GB, free: 90.52 MB / 0.6544 GB " [Timeout remaining time 635] (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 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 29.62711776397191]