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.00102/0.00102, allocations: 115.1 kB / 17.75 MB, free: 5.336 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.001087/0.001087, allocations: 191 kB / 18.68 MB, free: 4.414 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.269/1.269, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2152/0.2152, allocations: 44.18 MB / 336.7 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 63.84 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3592, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01254/0.3718, allocations: 12.33 MB / 0.5309 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008855/0.3807, allocations: 3.926 MB / 0.5347 GB, free: 7.824 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002492/0.3832, allocations: 61.53 kB / 0.5348 GB, free: 7.816 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002941/0.3862, allocations: 1.311 MB / 0.5361 GB, free: 6.918 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005282/0.3916, allocations: 1.757 MB / 0.5378 GB, free: 5.723 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001468/0.393, allocations: 494.8 kB / 0.5383 GB, free: 5.414 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006298/0.3994, allocations: 3.584 MB / 0.5418 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003578/0.403, allocations: 2.017 MB / 0.5437 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002479/0.4055, allocations: 1.205 MB / 0.5449 GB, free: 1.316 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00236/0.4079, allocations: 1.713 MB / 0.5466 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005374/0.4084, allocations: 236 kB / 0.5468 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002154/0.4106, allocations: 0.9555 MB / 0.5477 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001508/0.4121, allocations: 1.593 MB / 0.5493 GB, free: 12.81 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001809/0.4139, allocations: 1.898 MB / 0.5511 GB, free: 10.9 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006236/0.4202, allocations: 6.241 MB / 0.5572 GB, free: 4.641 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4202, allocations: 0 / 0.5572 GB, free: 4.641 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4202, allocations: 0 / 0.5572 GB, free: 4.641 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001216/0.4203, allocations: 0 / 0.5572 GB, free: 4.641 MB / 414.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.007605/0.4279, allocations: 4.155 MB / 0.5613 GB, free: 428 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.428, allocations: 8.031 kB / 0.5613 GB, free: 420 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01039/0.4384, allocations: 3.072 MB / 0.5643 GB, free: 13.33 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003878/0.4423, allocations: 1.904 MB / 0.5662 GB, free: 11.38 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001583/0.4425, allocations: 189 kB / 0.5663 GB, free: 11.19 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007186/0.4432, allocations: 255.8 kB / 0.5666 GB, free: 10.94 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01597/0.4592, allocations: 10.48 MB / 0.5768 GB, free: 24 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001021/0.4594, allocations: 31.83 kB / 0.5768 GB, free: 15.99 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003714/0.4597, allocations: 115.8 kB / 0.577 GB, free: 15.88 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004194/0.4639, allocations: 2.557 MB / 0.5795 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01909/0.4831, allocations: 9.918 MB / 0.5891 GB, free: 3.391 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05273/0.5358, allocations: 34.28 MB / 0.6226 GB, free: 292 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01016/0.5461, allocations: 5.181 MB / 0.6277 GB, free: 10.87 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003545/0.5497, allocations: 2.298 MB / 0.6299 GB, free: 8.574 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0019/0.5516, allocations: 1.88 MB / 0.6318 GB, free: 6.363 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.369e-05/0.5517, allocations: 52.56 kB / 0.6318 GB, free: 6.301 MB / 494.1 MB Notification: Performance of pre-optimization done (n=229): time 5.02e-06/0.5517, allocations: 0 / 0.6318 GB, free: 6.301 MB / 494.1 MB Notification: Performance of matching and sorting (n=235): time 0.03399/0.5857, allocations: 14 MB / 0.6455 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.5858, allocations: 77.33 kB / 0.6455 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004345/0.5901, allocations: 2.631 MB / 0.6481 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003758/0.5905, allocations: 53.7 kB / 0.6482 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001839/0.5924, allocations: 2.635 MB / 0.6507 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001051/0.5934, allocations: 0.8479 MB / 0.6516 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002131/0.5956, allocations: 1.036 MB / 0.6526 GB, free: 0.8672 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.5957, allocations: 305.1 kB / 0.6529 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003685/0.5994, allocations: 2.208 MB / 0.655 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005992/0.6054, allocations: 5.067 MB / 0.66 GB, free: 7.879 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/0.6159, allocations: 7.977 MB / 0.6678 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001269/0.6161, allocations: 28 kB / 0.6678 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01698/0.6331, allocations: 7.887 MB / 0.6755 GB, free: 6.574 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001335/0.6332, allocations: 48 kB / 0.6755 GB, free: 6.527 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002165/0.6335, allocations: 100 kB / 0.6756 GB, free: 6.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002408/0.6359, allocations: 0.7892 MB / 0.6764 GB, free: 5.637 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004243/0.6401, allocations: 1.193 MB / 0.6776 GB, free: 4.441 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005855/0.646, allocations: 4.519 MB / 0.682 GB, free: 15.78 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003511/0.6495, allocations: 291.8 kB / 0.6823 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008996/0.6505, allocations: 303.9 kB / 0.6826 GB, free: 15.2 MB / 0.545 GB 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.003826/0.6543, allocations: 2.02 MB / 0.6845 GB, free: 13.17 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006774/0.655, allocations: 256.6 kB / 0.6848 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008455/0.6634, allocations: 4.725 MB / 0.6894 GB, free: 8.16 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.876e-05/0.6635, allocations: 44 kB / 0.6894 GB, free: 8.117 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.646e-05/0.6636, allocations: 7.938 kB / 0.6894 GB, free: 8.109 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.361e-05/0.6636, allocations: 11.95 kB / 0.6894 GB, free: 8.098 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0201/0.6837, allocations: 10.5 MB / 0.6997 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.703e-05/0.6838, allocations: 8 kB / 0.6997 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001665/0.6855, allocations: 363.4 kB / 0.7001 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002049/0.6875, allocations: 0.6603 MB / 0.7007 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003448/0.6879, allocations: 44 kB / 0.7007 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005119/0.693, allocations: 3.894 MB / 0.7045 GB, free: 8.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/0.693, allocations: 15.92 kB / 0.7046 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01092/0.704, allocations: 7.14 MB / 0.7115 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007719/0.7048, allocations: 309.7 kB / 0.7118 GB, free: 0.7227 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000549/0.7053, allocations: 39.98 kB / 0.7119 GB, free: 0.6836 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001755/0.7071, allocations: 139.8 kB / 0.712 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004493/0.7076, allocations: 133 kB / 0.7121 GB, free: 424 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002023/0.7078, allocations: 67.97 kB / 0.7122 GB, free: 356 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003989/0.7118, allocations: 1.619 MB / 0.7138 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7118, allocations: 0 / 0.7138 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005052/0.7169, allocations: 0.9297 MB / 0.7147 GB, free: 13.79 MB / 0.5762 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.0006049/0.7175, allocations: 182.8 kB / 0.7149 GB, free: 13.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008171/0.7257, allocations: 5.384 MB / 0.7201 GB, free: 8.227 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/0.7257, allocations: 4.062 kB / 0.7201 GB, free: 8.223 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002782/0.7285, allocations: 2.023 MB / 0.7221 GB, free: 6.184 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002321/0.7308, allocations: 372.2 kB / 0.7224 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2855/1.016, allocations: 9.305 MB / 0.7315 GB, free: 184.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004449/1.021, allocations: 3.177 MB / 0.7346 GB, free: 184 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004148/1.025, allocations: 1.952 MB / 0.7365 GB, free: 184 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006524/1.026, allocations: 209.7 kB / 0.7367 GB, free: 184 MB / 0.5762 GB Notification: Performance of SimCode: time 1.212e-06/1.026, allocations: 0 / 0.7367 GB, free: 184 MB / 0.5762 GB Notification: Performance of Templates: time 0.04519/1.071, allocations: 27.01 MB / 0.7631 GB, free: 169.2 MB / 0.5762 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins/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