Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute") translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001549, allocations: 101.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001888/0.001888, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.757/1.757, allocations: 222.9 MB / 242.4 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2046/0.2046, allocations: 44.18 MB / 336.8 MB, free: 3.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 64.59 kB / 408.4 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1077, allocations: 60.82 MB / 469.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.02624/0.134, allocations: 29.72 MB / 498.9 MB, free: 1.004 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01425/0.1483, allocations: 6.816 MB / 0.4939 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005473/0.1538, allocations: 123.7 kB / 0.494 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002957/0.1568, allocations: 1.281 MB / 0.4952 GB, free: 8.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003929/0.1608, allocations: 1.647 MB / 0.4968 GB, free: 7.105 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.1619, allocations: 447.3 kB / 0.4973 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005104/0.167, allocations: 5.01 MB / 0.5022 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2116/0.3787, allocations: 1.971 MB / 0.5041 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002823/0.3816, allocations: 1.042 MB / 0.5051 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003978/0.3856, allocations: 1.81 MB / 0.5069 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001364/0.387, allocations: 167.3 kB / 0.507 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003374/0.3904, allocations: 0.945 MB / 0.5079 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003034/0.3935, allocations: 1.544 MB / 0.5095 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004328/0.3978, allocations: 1.847 MB / 0.5113 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007475/0.4053, allocations: 4.811 MB / 0.516 GB, free: 10.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.168e-06/0.4054, allocations: 1.656 kB / 0.516 GB, free: 10.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4054, allocations: 1.75 kB / 0.516 GB, free: 10.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000301/0.4057, allocations: 0 / 0.516 GB, free: 10.39 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.01378/0.4195, allocations: 4.15 MB / 0.52 GB, free: 8.637 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.4196, allocations: 10.62 kB / 0.52 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01171/0.4313, allocations: 3.082 MB / 0.523 GB, free: 8.336 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005317/0.4367, allocations: 1.885 MB / 0.5249 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002023/0.4369, allocations: 192.6 kB / 0.5251 GB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001322/0.4382, allocations: 247.2 kB / 0.5253 GB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01868/0.4569, allocations: 10.49 MB / 0.5355 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/0.4571, allocations: 23.78 kB / 0.5356 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007547/0.4579, allocations: 116.5 kB / 0.5357 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003886/0.4618, allocations: 2.553 MB / 0.5382 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02017/0.482, allocations: 9.925 MB / 0.5479 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05961/0.5416, allocations: 34.47 MB / 0.5815 GB, free: 6.434 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01032/0.552, allocations: 5.188 MB / 0.5866 GB, free: 1.027 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003433/0.5555, allocations: 2.296 MB / 0.5888 GB, free: 14.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001773/0.5573, allocations: 1.877 MB / 0.5907 GB, free: 12.54 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.057e-05/0.5574, allocations: 56.56 kB / 0.5907 GB, free: 12.47 MB / 446.1 MB Notification: Performance of pre-optimization done (n=229): time 6.863e-06/0.5574, allocations: 0 / 0.5907 GB, free: 12.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=235): time 0.03843/0.5958, allocations: 13.99 MB / 0.6044 GB, free: 14.45 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.5959, allocations: 73.41 kB / 0.6045 GB, free: 14.37 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00467/0.6006, allocations: 2.635 MB / 0.607 GB, free: 11.71 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005693/0.6012, allocations: 53.7 kB / 0.6071 GB, free: 11.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002143/0.6034, allocations: 2.635 MB / 0.6097 GB, free: 9.016 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001336/0.6047, allocations: 0.8459 MB / 0.6105 GB, free: 8.176 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002828/0.6076, allocations: 1.047 MB / 0.6115 GB, free: 7.121 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.6077, allocations: 305.1 kB / 0.6118 GB, free: 6.82 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003952/0.6117, allocations: 2.204 MB / 0.6139 GB, free: 4.609 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006175/0.6179, allocations: 5.071 MB / 0.6189 GB, free: 14.18 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/0.6281, allocations: 7.975 MB / 0.6267 GB, free: 5.215 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.683e-05/0.6283, allocations: 28 kB / 0.6267 GB, free: 5.188 MB / 478.1 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01579/0.6441, allocations: 7.885 MB / 0.6344 GB, free: 13.89 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.6443, allocations: 48.56 kB / 0.6345 GB, free: 13.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001738/0.6444, allocations: 100 kB / 0.6346 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002413/0.6469, allocations: 0.7943 MB / 0.6353 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00435/0.6512, allocations: 1.185 MB / 0.6365 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005778/0.657, allocations: 4.204 MB / 0.6406 GB, free: 7.578 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004117/0.6612, allocations: 295.8 kB / 0.6409 GB, free: 7.289 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001268/0.6625, allocations: 298.6 kB / 0.6412 GB, free: 7 MB / 494.1 MB 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 (635): * Single equations (assignments): 628 * 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.004783/0.6673, allocations: 2.025 MB / 0.6431 GB, free: 5.059 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007278/0.668, allocations: 260.6 kB / 0.6434 GB, free: 4.801 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008502/0.6766, allocations: 4.723 MB / 0.648 GB, free: 56 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.922e-05/0.6767, allocations: 43.98 kB / 0.648 GB, free: 12 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/0.6767, allocations: 4 kB / 0.648 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.472e-05/0.6767, allocations: 7.969 kB / 0.6481 GB, free: 0 / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0219/0.6986, allocations: 10.54 MB / 0.6583 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.237e-05/0.6987, allocations: 8 kB / 0.6584 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001672/0.7004, allocations: 359.5 kB / 0.6587 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/0.7025, allocations: 0.6566 MB / 0.6593 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005846/0.7031, allocations: 53.95 kB / 0.6594 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00513/0.7083, allocations: 3.659 MB / 0.663 GB, free: 492 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/0.7083, allocations: 11.94 kB / 0.663 GB, free: 480 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.012/0.7204, allocations: 7.137 MB / 0.6699 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008689/0.7213, allocations: 305.8 kB / 0.6702 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009744/0.7223, allocations: 43.98 kB / 0.6703 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001783/0.7241, allocations: 137.9 kB / 0.6704 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005973/0.7247, allocations: 133 kB / 0.6705 GB, free: 8.598 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000309/0.725, allocations: 67.98 kB / 0.6706 GB, free: 8.531 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003358/0.7284, allocations: 1.619 MB / 0.6722 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5.11e-07/0.7284, allocations: 0 / 0.6722 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00598/0.7344, allocations: 0.9327 MB / 0.6731 GB, free: 5.973 MB / 0.5137 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.0009707/0.7354, allocations: 181.4 kB / 0.6733 GB, free: 5.789 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009089/0.7445, allocations: 5.352 MB / 0.6785 GB, free: 460 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/0.7446, allocations: 320 / 0.6785 GB, free: 460 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003513/0.7481, allocations: 2.027 MB / 0.6805 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003229/0.7514, allocations: 357.2 kB / 0.6808 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02183/0.7732, allocations: 11.87 MB / 0.6924 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006492/0.7798, allocations: 3.175 MB / 0.6955 GB, free: 14.88 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001331/0.7811, allocations: 251.4 kB / 0.6957 GB, free: 14.64 MB / 0.545 GB Notification: Performance of SimCode: time 1.163e-06/0.7812, allocations: 0 / 0.6957 GB, free: 14.64 MB / 0.545 GB Notification: Performance of Templates: time 0.3003/1.082, allocations: 70.23 MB / 0.7643 GB, free: 164.1 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches