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.0008574/0.0008574, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001275/0.001275, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8953/0.8953, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.282/0.282, allocations: 34.24 MB / 294.8 MB, free: 0.6797 MB / 266.7 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 3.938 kB / 442.2 MB, free: 1.562 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.703e-05/1.847e-05, allocations: 5.094 kB / 442.2 MB, free: 1.559 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.2198/0.2198, allocations: 15.71 MB / 457.9 MB, free: 34.99 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.007114/0.2269, allocations: 5.099 MB / 463 MB, free: 31.75 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001486/0.2284, allocations: 128.6 kB / 463.1 MB, free: 31.71 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002633/0.2311, allocations: 3.125 MB / 466.2 MB, free: 30.39 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004048/0.2351, allocations: 2.708 MB / 468.9 MB, free: 29.13 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.2365, allocations: 1.133 MB / 470.1 MB, free: 28.66 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.006136/0.2426, allocations: 9.032 MB / 479.1 MB, free: 25.52 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003005/0.2456, allocations: 4.583 MB / 483.7 MB, free: 23.66 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003631/0.2492, allocations: 3.585 MB / 487.3 MB, free: 22.19 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004053/0.2533, allocations: 3.882 MB / 491.2 MB, free: 21.25 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008595/0.2542, allocations: 468.9 kB / 491.6 MB, free: 21.25 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002882/0.257, allocations: 1.285 MB / 492.9 MB, free: 21.05 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002961/0.26, allocations: 3.024 MB / 495.9 MB, free: 19.8 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003316/0.2633, allocations: 1.91 MB / 497.8 MB, free: 18.88 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01057/0.2739, allocations: 10.22 MB / 0.4962 GB, free: 13 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2739, allocations: 1.219 kB / 0.4962 GB, free: 13 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2739, allocations: 0 / 0.4962 GB, free: 13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003972/0.2743, allocations: 0 / 0.4962 GB, free: 13 MB / 410.7 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.01651/0.2908, allocations: 7.612 MB / 0.5036 GB, free: 7.203 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.2908, allocations: 20.02 kB / 0.5036 GB, free: 7.184 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009521/0.2918, allocations: 1.006 MB / 0.5046 GB, free: 6.168 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01409/0.3059, allocations: 5.929 MB / 0.5104 GB, free: 232 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005995/0.3119, allocations: 4.175 MB / 0.5145 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000148/0.312, allocations: 316.4 kB / 0.5148 GB, free: 11.69 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005869/0.3126, allocations: 432 kB / 0.5152 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01569/0.3283, allocations: 15.62 MB / 0.5304 GB, free: 10.9 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.3284, allocations: 55.53 kB / 0.5305 GB, free: 10.84 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004369/0.3289, allocations: 199.8 kB / 0.5307 GB, free: 10.65 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003535/0.3324, allocations: 3.376 MB / 0.534 GB, free: 7.27 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01922/0.3516, allocations: 14.66 MB / 0.5483 GB, free: 8.605 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06571/0.4173, allocations: 53.12 MB / 0.6001 GB, free: 2.32 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01148/0.4288, allocations: 7.123 MB / 0.6071 GB, free: 11.19 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004833/0.4337, allocations: 4.418 MB / 0.6114 GB, free: 6.766 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001137/0.4348, allocations: 0.6422 MB / 0.612 GB, free: 6.121 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.67e-05/0.4348, allocations: 73.02 kB / 0.6121 GB, free: 6.039 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=367): time 7.084e-06/0.4348, allocations: 0 / 0.6121 GB, free: 6.039 MB / 0.5105 GB Notification: Performance of matching and sorting (n=419): time 0.295/0.7298, allocations: 40.79 MB / 0.652 GB, free: 145.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.071e-05/0.7299, allocations: 117.2 kB / 0.6521 GB, free: 145.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007751/0.7377, allocations: 5.187 MB / 0.6571 GB, free: 143.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001752/0.7394, allocations: 85.45 kB / 0.6572 GB, free: 143.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002665/0.7421, allocations: 3.934 MB / 0.6611 GB, free: 140.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003364/0.7454, allocations: 1.539 MB / 0.6626 GB, free: 139.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002249/0.7477, allocations: 1.508 MB / 0.664 GB, free: 138.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.056e-05/0.7478, allocations: 302.2 kB / 0.6643 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005712/0.7535, allocations: 3.954 MB / 0.6682 GB, free: 136.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007653/0.7611, allocations: 7.72 MB / 0.6757 GB, free: 130.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/0.7749, allocations: 12.64 MB / 0.6881 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001675/0.775, allocations: 40.5 kB / 0.6881 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02316/0.7982, allocations: 14.16 MB / 0.7019 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.864e-05/0.7983, allocations: 63.88 kB / 0.702 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001264/0.7984, allocations: 128 kB / 0.7021 GB, free: 117.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006553/0.8049, allocations: 2.666 MB / 0.7047 GB, free: 115.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005474/0.8104, allocations: 1.766 MB / 0.7064 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01314/0.8236, allocations: 14.9 MB / 0.721 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005986/0.8295, allocations: 0.601 MB / 0.7216 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001178/0.8307, allocations: 427 kB / 0.722 GB, free: 100.3 MB / 0.5261 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.00518/0.8359, allocations: 2.864 MB / 0.7248 GB, free: 97.82 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001251/0.8371, allocations: 488.8 kB / 0.7253 GB, free: 97.34 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01044/0.8476, allocations: 10.53 MB / 0.7355 GB, free: 87.91 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.279e-05/0.8477, allocations: 63.98 kB / 0.7356 GB, free: 87.85 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-05/0.8477, allocations: 10.38 kB / 0.7356 GB, free: 87.84 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.053e-05/0.8477, allocations: 19.94 kB / 0.7356 GB, free: 87.82 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02633/0.874, allocations: 20.64 MB / 0.7558 GB, free: 67.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.751e-05/0.8741, allocations: 12 kB / 0.7558 GB, free: 67.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/0.8758, allocations: 0.6786 MB / 0.7565 GB, free: 66.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003697/0.8795, allocations: 2.483 MB / 0.7589 GB, free: 63.85 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003583/0.8799, allocations: 83.98 kB / 0.759 GB, free: 63.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01025/0.8901, allocations: 13.51 MB / 0.7722 GB, free: 50.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.403e-06/0.8901, allocations: 21.38 kB / 0.7722 GB, free: 50.02 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01513/0.9053, allocations: 15.08 MB / 0.7869 GB, free: 34.67 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001649/0.9069, allocations: 0.5435 MB / 0.7874 GB, free: 34.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008355/0.9078, allocations: 76 kB / 0.7875 GB, free: 34.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002019/0.9098, allocations: 423.3 kB / 0.7879 GB, free: 33.63 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000507/0.9103, allocations: 281.7 kB / 0.7882 GB, free: 33.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002082/0.9105, allocations: 115.6 kB / 0.7883 GB, free: 33.25 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003498/0.914, allocations: 3.221 MB / 0.7914 GB, free: 30.02 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/0.914, allocations: 0 / 0.7914 GB, free: 30.02 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00767/0.9217, allocations: 1.832 MB / 0.7932 GB, free: 28.19 MB / 0.5261 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.01601/0.9377, allocations: 15.81 MB / 0.8087 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0119/0.9496, allocations: 9.43 MB / 0.8179 GB, free: 2.664 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.82e-05/0.9496, allocations: 0 / 0.8179 GB, free: 2.664 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005101/0.9547, allocations: 4.024 MB / 0.8218 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004705/0.9594, allocations: 0.7392 MB / 0.8225 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3011/1.26, allocations: 72.34 MB / 0.8932 GB, free: 127.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006296/1.267, allocations: 4.036 MB / 0.8971 GB, free: 126.7 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005287/1.272, allocations: 2.746 MB / 0.8998 GB, free: 126.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004595/1.277, allocations: 2.846 MB / 0.9026 GB, free: 124.3 MB / 0.5417 GB Notification: Performance of SimCode: time 1.743e-06/1.277, allocations: 2.469 kB / 0.9026 GB, free: 124.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1287/1.405, allocations: 120.1 MB / 1.02 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/13.46, allocations: 8.016 kB / 1.02 GB, free: 10.89 MB / 0.5417 GB " [Timeout remaining time 646] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.035619596019387]