Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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: translateModel(ModelicaTest.MultiBody.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2") translateModel(ModelicaTest.MultiBody.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001236/0.001236, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 208.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.245/0.245, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 75.88 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.442/0.4434, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.01847/0.4619, allocations: 13.24 MB / 0.5439 GB, free: 3.207 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01699/0.4789, allocations: 4.856 MB / 0.5487 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004762/0.4838, allocations: 83.81 kB / 0.5488 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008368/0.4922, allocations: 3.97 MB / 0.5526 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009091/0.5013, allocations: 2.229 MB / 0.5548 GB, free: 9.27 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003985/0.5053, allocations: 1.189 MB / 0.556 GB, free: 8.078 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01132/0.5167, allocations: 5.805 MB / 0.5616 GB, free: 2.262 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009252/0.526, allocations: 5.172 MB / 0.5667 GB, free: 13.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005756/0.5318, allocations: 2.158 MB / 0.5688 GB, free: 10.86 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006409/0.5382, allocations: 2.972 MB / 0.5717 GB, free: 7.879 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00297/0.5412, allocations: 0.5 MB / 0.5722 GB, free: 7.379 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005317/0.5466, allocations: 1.642 MB / 0.5738 GB, free: 5.734 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005043/0.5517, allocations: 2.665 MB / 0.5764 GB, free: 3.062 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006897/0.5586, allocations: 2.999 MB / 0.5793 GB, free: 48 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01798/0.5766, allocations: 9.89 MB / 0.589 GB, free: 6.125 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.335e-05/0.5767, allocations: 0 / 0.589 GB, free: 6.125 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.5767, allocations: 0 / 0.589 GB, free: 6.125 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006601/0.5774, allocations: 0 / 0.589 GB, free: 6.125 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02303/0.6004, allocations: 6.492 MB / 0.5953 GB, free: 15.55 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.735e-05/0.6005, allocations: 8.031 kB / 0.5953 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01864/0.6191, allocations: 2.712 MB / 0.598 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01053/0.6297, allocations: 3.642 MB / 0.6015 GB, free: 9.113 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004898/0.6302, allocations: 358.2 kB / 0.6019 GB, free: 8.754 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002434/0.6327, allocations: 427.7 kB / 0.6023 GB, free: 8.336 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0325/0.6652, allocations: 13.85 MB / 0.6158 GB, free: 9.629 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000327/0.6656, allocations: 59.47 kB / 0.6159 GB, free: 9.57 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001993/0.6676, allocations: 199.8 kB / 0.6161 GB, free: 9.375 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00426/0.6719, allocations: 2.417 MB / 0.6184 GB, free: 6.957 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02869/0.7006, allocations: 11.77 MB / 0.6299 GB, free: 11.18 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08462/0.7853, allocations: 51.53 MB / 0.6802 GB, free: 6.168 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01378/0.7991, allocations: 4.75 MB / 0.6849 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004686/0.8038, allocations: 2.968 MB / 0.6878 GB, free: 14.27 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02504/0.8289, allocations: 12.92 MB / 0.7004 GB, free: 0.7812 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.693e-05/0.829, allocations: 67.78 kB / 0.7005 GB, free: 0.707 MB / 0.545 GB Notification: Performance of pre-optimization done (n=197): time 6.181e-06/0.829, allocations: 0 / 0.7005 GB, free: 0.707 MB / 0.545 GB Notification: Performance of matching and sorting (n=248): time 0.5531/1.382, allocations: 43.18 MB / 0.7426 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/1.382, allocations: 235.5 kB / 0.7428 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006697/1.389, allocations: 4.77 MB / 0.7475 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007871/1.39, allocations: 65.53 kB / 0.7476 GB, free: 150.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001901/1.392, allocations: 3.833 MB / 0.7513 GB, free: 146.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001174/1.393, allocations: 0.9413 MB / 0.7522 GB, free: 145.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001918/1.395, allocations: 1.511 MB / 0.7537 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.964e-05/1.395, allocations: 305 kB / 0.754 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004115/1.399, allocations: 3.45 MB / 0.7574 GB, free: 140.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005504/1.405, allocations: 7.707 MB / 0.7649 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01178/1.416, allocations: 11.87 MB / 0.7765 GB, free: 116.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001275/1.417, allocations: 44 kB / 0.7765 GB, free: 116.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=967) (initialization): time 0.02909/1.446, allocations: 14.47 MB / 0.7907 GB, free: 102.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002131/1.446, allocations: 74.44 kB / 0.7907 GB, free: 102.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000343/1.446, allocations: 156.2 kB / 0.7909 GB, free: 102 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01192/1.458, allocations: 4.02 MB / 0.7948 GB, free: 97.97 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005843/1.464, allocations: 1.638 MB / 0.7964 GB, free: 96.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02634/1.49, allocations: 19.86 MB / 0.8158 GB, free: 76.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006458/1.497, allocations: 455.4 kB / 0.8162 GB, free: 75.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001509/1.498, allocations: 432 kB / 0.8166 GB, free: 75.48 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 (884): * Single equations (assignments): 880 * Array equations: 3 * 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 {(2,58,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005436/1.504, allocations: 2.656 MB / 0.8192 GB, free: 72.81 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001354/1.505, allocations: 430.4 kB / 0.8196 GB, free: 72.39 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01799/1.523, allocations: 8.64 MB / 0.8281 GB, free: 63.72 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-05/1.523, allocations: 30.66 kB / 0.8281 GB, free: 63.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.311e-05/1.523, allocations: 16 kB / 0.8281 GB, free: 63.68 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-05/1.523, allocations: 11.95 kB / 0.8281 GB, free: 63.67 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0354/1.559, allocations: 17.84 MB / 0.8456 GB, free: 45.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.209e-05/1.559, allocations: 3.984 kB / 0.8456 GB, free: 45.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002012/1.561, allocations: 399.4 kB / 0.8459 GB, free: 45.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01105/1.572, allocations: 4.08 MB / 0.8499 GB, free: 41.32 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007465/1.573, allocations: 47.73 kB / 0.85 GB, free: 41.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02198/1.595, allocations: 18.2 MB / 0.8678 GB, free: 22.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/1.595, allocations: 5.656 kB / 0.8678 GB, free: 22.93 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02311/1.618, allocations: 13.25 MB / 0.8807 GB, free: 9.637 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001742/1.62, allocations: 471.3 kB / 0.8811 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001646/1.621, allocations: 39.44 kB / 0.8812 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0034/1.625, allocations: 215.7 kB / 0.8814 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009416/1.626, allocations: 146.2 kB / 0.8815 GB, free: 8.766 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004162/1.626, allocations: 60 kB / 0.8816 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005599/1.632, allocations: 2.981 MB / 0.8845 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.4e-07/1.632, allocations: 0 / 0.8845 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007212/1.639, allocations: 1.47 MB / 0.8859 GB, free: 4.266 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (173): * Single equations (assignments): 169 * Array equations: 3 * 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 {(2,52,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009371/1.64, allocations: 218 kB / 0.8861 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01377/1.654, allocations: 8.285 MB / 0.8942 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.575e-06/1.654, allocations: 0 / 0.8942 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005665/1.66, allocations: 3.116 MB / 0.8973 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004329/1.664, allocations: 0.524 MB / 0.8978 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02593/1.69, allocations: 12.87 MB / 0.9103 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008829/1.699, allocations: 4.095 MB / 0.9143 GB, free: 7.125 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00584/1.705, allocations: 2.194 MB / 0.9165 GB, free: 4.926 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001249/1.706, allocations: 279.4 kB / 0.9168 GB, free: 4.652 MB / 0.5919 GB Notification: Performance of SimCode: time 1.282e-06/1.706, allocations: 0 / 0.9168 GB, free: 4.652 MB / 0.5919 GB Notification: Performance of Templates: time 0.4161/2.122, allocations: 60.89 MB / 0.9762 GB, free: 201.9 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUSP2/JointUSP2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches