Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.00139/0.00139, allocations: 187.1 kB / 18.71 MB, free: 4.371 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.441/1.441, allocations: 222.9 MB / 242.4 MB, free: 15.2 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.2298/0.2298, allocations: 44.19 MB / 336.7 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 60.09 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4706/0.4718, allocations: 60.83 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01706/0.4889, allocations: 15.04 MB / 0.5336 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01327/0.5022, allocations: 4.818 MB / 0.5383 GB, free: 4.922 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004244/0.5065, allocations: 92.44 kB / 0.5384 GB, free: 4.906 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006944/0.5135, allocations: 3.16 MB / 0.5415 GB, free: 2.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01174/0.5253, allocations: 2.548 MB / 0.5439 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003633/0.529, allocations: 0.9921 MB / 0.5449 GB, free: 316 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01235/0.5414, allocations: 6.97 MB / 0.5517 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00565/0.5471, allocations: 4.375 MB / 0.556 GB, free: 5.918 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004808/0.5519, allocations: 2.227 MB / 0.5582 GB, free: 3.684 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005001/0.5569, allocations: 3.252 MB / 0.5613 GB, free: 432 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001356/0.5583, allocations: 484 kB / 0.5618 GB, free: 15.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003492/0.5618, allocations: 1.502 MB / 0.5633 GB, free: 14.45 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002888/0.5647, allocations: 2.86 MB / 0.5661 GB, free: 11.58 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004286/0.569, allocations: 3.254 MB / 0.5692 GB, free: 8.305 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01104/0.5801, allocations: 10.44 MB / 0.5794 GB, free: 13.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.5801, allocations: 0 / 0.5794 GB, free: 13.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5801, allocations: 0 / 0.5794 GB, free: 13.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002996/0.5804, allocations: 0 / 0.5794 GB, free: 13.82 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01567/0.5961, allocations: 7.314 MB / 0.5866 GB, free: 6.426 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.5962, allocations: 8.031 kB / 0.5866 GB, free: 6.418 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01559/0.6118, allocations: 3.931 MB / 0.5904 GB, free: 2.473 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01047/0.6223, allocations: 4.188 MB / 0.5945 GB, free: 14.22 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002712/0.6226, allocations: 312.4 kB / 0.5948 GB, free: 13.91 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001665/0.6242, allocations: 431.6 kB / 0.5952 GB, free: 13.49 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03033/0.6546, allocations: 15.74 MB / 0.6106 GB, free: 12.82 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001858/0.6548, allocations: 55.53 kB / 0.6107 GB, free: 12.76 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007678/0.6556, allocations: 199.8 kB / 0.6108 GB, free: 12.57 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004974/0.6606, allocations: 3.227 MB / 0.614 GB, free: 9.336 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02982/0.6904, allocations: 14.16 MB / 0.6278 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08724/0.7777, allocations: 57.5 MB / 0.684 GB, free: 76 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01544/0.7932, allocations: 6.59 MB / 0.6904 GB, free: 9.23 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006159/0.7994, allocations: 3.747 MB / 0.6941 GB, free: 5.473 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02835/0.8278, allocations: 14.78 MB / 0.7085 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.327e-05/0.8279, allocations: 64.44 kB / 0.7086 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=292): time 7.163e-06/0.8279, allocations: 4 kB / 0.7086 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of matching and sorting (n=342): time 0.5306/1.359, allocations: 42.48 MB / 0.7501 GB, free: 155 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8e-05/1.359, allocations: 210 kB / 0.7503 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006815/1.366, allocations: 5.471 MB / 0.7556 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009676/1.367, allocations: 73.7 kB / 0.7557 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002169/1.369, allocations: 4.344 MB / 0.7599 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001774/1.37, allocations: 1.264 MB / 0.7612 GB, free: 143.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002563/1.373, allocations: 1.863 MB / 0.763 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.668e-05/1.373, allocations: 301.1 kB / 0.7633 GB, free: 141.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005438/1.379, allocations: 4.839 MB / 0.768 GB, free: 136.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007773/1.386, allocations: 9.83 MB / 0.7776 GB, free: 124.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01567/1.402, allocations: 15.62 MB / 0.7928 GB, free: 106.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001586/1.402, allocations: 52 kB / 0.7929 GB, free: 106.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04211/1.444, allocations: 19.61 MB / 0.812 GB, free: 86.56 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/1.445, allocations: 80 kB / 0.8121 GB, free: 86.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001898/1.445, allocations: 172 kB / 0.8123 GB, free: 86.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02176/1.466, allocations: 5.949 MB / 0.8181 GB, free: 80.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007574/1.474, allocations: 2.125 MB / 0.8202 GB, free: 78.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02788/1.502, allocations: 26.15 MB / 0.8457 GB, free: 51.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008577/1.511, allocations: 0.5694 MB / 0.8463 GB, free: 51.22 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001643/1.512, allocations: 0.5039 MB / 0.8468 GB, free: 50.72 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1099): * Single equations (assignments): 1091 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00538/1.518, allocations: 3.102 MB / 0.8498 GB, free: 47.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001212/1.519, allocations: 497.5 kB / 0.8503 GB, free: 47.11 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02846/1.547, allocations: 13.01 MB / 0.863 GB, free: 34.03 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.813e-05/1.548, allocations: 55.98 kB / 0.863 GB, free: 33.98 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.911e-05/1.548, allocations: 16 kB / 0.863 GB, free: 33.96 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-05/1.548, allocations: 15.94 kB / 0.8631 GB, free: 33.95 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04745/1.595, allocations: 24.62 MB / 0.8871 GB, free: 8.844 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.249e-05/1.595, allocations: 4.594 kB / 0.8871 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003123/1.598, allocations: 0.5889 MB / 0.8877 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01899/1.617, allocations: 4.977 MB / 0.8925 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008649/1.618, allocations: 55.67 kB / 0.8926 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02782/1.646, allocations: 21.33 MB / 0.9134 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.186e-06/1.646, allocations: 8.062 kB / 0.9134 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03815/1.684, allocations: 17.58 MB / 0.9306 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001795/1.686, allocations: 0.5258 MB / 0.9311 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001896/1.688, allocations: 59.92 kB / 0.9312 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004549/1.693, allocations: 263.7 kB / 0.9314 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001381/1.694, allocations: 193.6 kB / 0.9316 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00074/1.695, allocations: 92.22 kB / 0.9317 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.007823/1.703, allocations: 3.394 MB / 0.935 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of sort global known variables: time 6.82e-07/1.703, allocations: 4 kB / 0.935 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009527/1.712, allocations: 1.771 MB / 0.9367 GB, free: 5.555 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001036/1.713, allocations: 197.1 kB / 0.9369 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.3341/2.047, allocations: 11.04 MB / 0.9477 GB, free: 203.5 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.275e-05/2.047, allocations: 2.234 kB / 0.9477 GB, free: 203.5 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.006835/2.054, allocations: 4.132 MB / 0.9518 GB, free: 201.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005086/2.059, allocations: 0.6207 MB / 0.9524 GB, free: 201.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03041/2.09, allocations: 16.08 MB / 0.9681 GB, free: 194.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006684/2.097, allocations: 4.621 MB / 0.9726 GB, free: 193.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.007725/2.104, allocations: 2.976 MB / 0.9755 GB, free: 192.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002468/2.107, allocations: 349.8 kB / 0.9758 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of SimCode: time 2.454e-06/2.107, allocations: 0 / 0.9758 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of Templates: time 0.1136/2.22, allocations: 74.12 MB / 1.048 GB, free: 119.2 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches