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.001511/0.001511, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002072/0.002072, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2245/0.2245, allocations: 46.1 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 79.86 kB / 481.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4087/0.4101, allocations: 62.43 MB / 0.531 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.01659/0.4267, allocations: 13.24 MB / 0.5439 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01275/0.4395, allocations: 4.854 MB / 0.5487 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003457/0.443, allocations: 88.62 kB / 0.5487 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008356/0.4514, allocations: 3.977 MB / 0.5526 GB, free: 11.53 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008165/0.4597, allocations: 2.159 MB / 0.5547 GB, free: 9.363 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004018/0.4637, allocations: 1.182 MB / 0.5559 GB, free: 8.18 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01228/0.476, allocations: 5.812 MB / 0.5616 GB, free: 2.359 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008411/0.4845, allocations: 5.172 MB / 0.5666 GB, free: 13.12 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005083/0.4896, allocations: 2.161 MB / 0.5687 GB, free: 10.95 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006148/0.4958, allocations: 2.968 MB / 0.5716 GB, free: 7.977 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001814/0.4976, allocations: 0.5 MB / 0.5721 GB, free: 7.477 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004129/0.5018, allocations: 1.643 MB / 0.5737 GB, free: 5.832 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003822/0.5056, allocations: 2.665 MB / 0.5763 GB, free: 3.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004932/0.5106, allocations: 2.995 MB / 0.5792 GB, free: 152 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01379/0.5244, allocations: 9.893 MB / 0.5889 GB, free: 6.223 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.5244, allocations: 0 / 0.5889 GB, free: 6.223 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5244, allocations: 0 / 0.5889 GB, free: 6.223 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003764/0.5248, allocations: 0 / 0.5889 GB, free: 6.223 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.01629/0.5411, allocations: 6.484 MB / 0.5952 GB, free: 15.66 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.5412, allocations: 12.03 kB / 0.5953 GB, free: 15.65 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0178/0.559, allocations: 2.719 MB / 0.5979 GB, free: 12.91 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008942/0.568, allocations: 3.642 MB / 0.6015 GB, free: 9.211 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003335/0.5683, allocations: 346.2 kB / 0.6018 GB, free: 8.863 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001431/0.5698, allocations: 431.7 kB / 0.6022 GB, free: 8.441 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02744/0.5972, allocations: 13.86 MB / 0.6157 GB, free: 9.727 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001635/0.5974, allocations: 55.44 kB / 0.6158 GB, free: 9.672 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005478/0.598, allocations: 203.8 kB / 0.616 GB, free: 9.473 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004167/0.6022, allocations: 2.41 MB / 0.6183 GB, free: 7.062 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02994/0.6321, allocations: 11.77 MB / 0.6298 GB, free: 11.29 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.08425/0.7164, allocations: 51.54 MB / 0.6802 GB, free: 6.27 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01329/0.7297, allocations: 4.75 MB / 0.6848 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004331/0.7341, allocations: 2.956 MB / 0.6877 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01997/0.7541, allocations: 12.94 MB / 0.7003 GB, free: 0.8789 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.041e-05/0.7542, allocations: 59.86 kB / 0.7004 GB, free: 0.8125 MB / 0.545 GB Notification: Performance of pre-optimization done (n=197): time 4.118e-06/0.7542, allocations: 0 / 0.7004 GB, free: 0.8125 MB / 0.545 GB Notification: Performance of matching and sorting (n=248): time 0.4876/1.242, allocations: 43.19 MB / 0.7425 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/1.242, allocations: 227.6 kB / 0.7428 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006796/1.249, allocations: 4.77 MB / 0.7474 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007538/1.25, allocations: 61.7 kB / 0.7475 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002018/1.252, allocations: 3.844 MB / 0.7512 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001151/1.253, allocations: 0.9305 MB / 0.7521 GB, free: 145.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001762/1.255, allocations: 1.511 MB / 0.7536 GB, free: 144.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.116e-05/1.255, allocations: 305.1 kB / 0.7539 GB, free: 144.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003921/1.259, allocations: 3.446 MB / 0.7573 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005169/1.264, allocations: 7.718 MB / 0.7648 GB, free: 130.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01006/1.274, allocations: 11.87 MB / 0.7764 GB, free: 116.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.081e-05/1.274, allocations: 47.94 kB / 0.7765 GB, free: 116.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=967) (initialization): time 0.02626/1.3, allocations: 14.49 MB / 0.7906 GB, free: 102.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.432e-05/1.3, allocations: 71.94 kB / 0.7907 GB, free: 102.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001216/1.3, allocations: 148 kB / 0.7908 GB, free: 102.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01146/1.312, allocations: 4.017 MB / 0.7947 GB, free: 98.14 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005739/1.318, allocations: 1.634 MB / 0.7963 GB, free: 96.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02318/1.341, allocations: 19.85 MB / 0.8157 GB, free: 76.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006722/1.348, allocations: 456.1 kB / 0.8161 GB, free: 76.07 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001105/1.349, allocations: 441.8 kB / 0.8166 GB, free: 75.65 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.003804/1.353, allocations: 2.652 MB / 0.8192 GB, free: 72.98 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007668/1.353, allocations: 438.3 kB / 0.8196 GB, free: 72.55 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01796/1.371, allocations: 8.644 MB / 0.828 GB, free: 63.88 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.564e-05/1.371, allocations: 24 kB / 0.828 GB, free: 63.86 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.731e-05/1.371, allocations: 12 kB / 0.8281 GB, free: 63.85 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.178e-05/1.372, allocations: 15.95 kB / 0.8281 GB, free: 63.83 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03169/1.403, allocations: 17.84 MB / 0.8455 GB, free: 45.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.459e-05/1.403, allocations: 0 / 0.8455 GB, free: 45.98 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002077/1.405, allocations: 407.3 kB / 0.8459 GB, free: 45.58 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01122/1.417, allocations: 4.078 MB / 0.8499 GB, free: 41.49 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004952/1.417, allocations: 40 kB / 0.8499 GB, free: 41.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02085/1.438, allocations: 18.21 MB / 0.8677 GB, free: 23.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/1.438, allocations: 0 / 0.8677 GB, free: 23.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02288/1.461, allocations: 13.25 MB / 0.8806 GB, free: 9.812 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001457/1.462, allocations: 471.5 kB / 0.8811 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001294/1.464, allocations: 39.98 kB / 0.8811 GB, free: 9.289 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003007/1.467, allocations: 219.7 kB / 0.8813 GB, free: 9.074 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006965/1.468, allocations: 150.2 kB / 0.8815 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002882/1.468, allocations: 67.42 kB / 0.8815 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004595/1.472, allocations: 2.973 MB / 0.8844 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.11e-07/1.472, allocations: 0 / 0.8844 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006091/1.479, allocations: 1.465 MB / 0.8858 GB, free: 4.441 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.0006105/1.479, allocations: 219.7 kB / 0.8861 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01236/1.492, allocations: 8.294 MB / 0.8942 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/1.492, allocations: 0 / 0.8942 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004857/1.496, allocations: 3.117 MB / 0.8972 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00329/1.5, allocations: 0.5409 MB / 0.8977 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02398/1.524, allocations: 12.84 MB / 0.9103 GB, free: 11.41 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005436/1.529, allocations: 4.103 MB / 0.9143 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005133/1.534, allocations: 2.19 MB / 0.9164 GB, free: 5.09 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/1.535, allocations: 283.4 kB / 0.9167 GB, free: 4.812 MB / 0.5919 GB Notification: Performance of SimCode: time 1.012e-06/1.535, allocations: 0 / 0.9167 GB, free: 4.812 MB / 0.5919 GB Notification: Performance of Templates: time 0.4909/2.026, allocations: 61.25 MB / 0.9765 GB, free: 201.6 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