Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2") translateModel(ModelicaTest.MultiBody.Joints.JointUSP2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 174.4 kB / 16.58 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.02/2.02, allocations: 205.4 MB / 222.8 MB, free: 5.883 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4712/0.4712, allocations: 43.58 MB / 314.6 MB, free: 8.668 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005256/0.0005259, allocations: 20 kB / 384 MB, free: 8.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1527, allocations: 58.86 MB / 442.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.3152/0.468, allocations: 43.7 MB / 486.5 MB, free: 24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02459/0.4927, allocations: 10.12 MB / 496.6 MB, free: 17.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01208/0.5048, allocations: 212.2 kB / 496.8 MB, free: 17.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01045/0.5153, allocations: 2.23 MB / 499.1 MB, free: 16.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02454/0.5399, allocations: 6.794 MB / 0.494 GB, free: 13.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00602/0.5459, allocations: 0.9804 MB / 0.495 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03307/0.579, allocations: 20.49 MB / 0.515 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01047/0.5895, allocations: 6.292 MB / 0.5211 GB, free: 20 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005415/0.595, allocations: 1.705 MB / 0.5228 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005576/0.6006, allocations: 2.687 MB / 0.5254 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00171/0.6024, allocations: 200 kB / 0.5256 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004364/0.6067, allocations: 1.202 MB / 0.5268 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00466/0.6114, allocations: 2.275 MB / 0.529 GB, free: 7.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003247/0.6147, allocations: 1.092 MB / 0.5301 GB, free: 6.828 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01253/0.6273, allocations: 7.708 MB / 0.5376 GB, free: 15.1 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.6273, allocations: 4 kB / 0.5376 GB, free: 15.1 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.328e-06/0.6273, allocations: 0 / 0.5376 GB, free: 15.1 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004579/0.6278, allocations: 3.938 kB / 0.5376 GB, free: 15.09 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.01588/0.6437, allocations: 5.458 MB / 0.5429 GB, free: 9.562 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.6438, allocations: 16.03 kB / 0.5429 GB, free: 9.547 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01631/0.6601, allocations: 2.781 MB / 0.5457 GB, free: 6.754 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01061/0.6707, allocations: 3.659 MB / 0.5492 GB, free: 3.035 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005206/0.6713, allocations: 357.8 kB / 0.5496 GB, free: 2.676 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00225/0.6736, allocations: 423.7 kB / 0.55 GB, free: 2.262 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03423/0.7078, allocations: 13.86 MB / 0.5635 GB, free: 3.551 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002974/0.7082, allocations: 51.53 kB / 0.5636 GB, free: 3.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00189/0.7101, allocations: 203.8 kB / 0.5637 GB, free: 3.301 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004091/0.7142, allocations: 2.41 MB / 0.5661 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0262/0.7404, allocations: 11.74 MB / 0.5776 GB, free: 5.133 MB / 446.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.3957/1.136, allocations: 51.81 MB / 0.6282 GB, free: 127.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01184/1.148, allocations: 4.729 MB / 0.6328 GB, free: 126.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004182/1.152, allocations: 2.945 MB / 0.6356 GB, free: 126.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01769/1.17, allocations: 12.86 MB / 0.6482 GB, free: 122.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.584e-05/1.17, allocations: 54.22 kB / 0.6483 GB, free: 122.1 MB / 494.1 MB Notification: Performance of pre-optimization done (n=197): time 6.201e-06/1.17, allocations: 0 / 0.6483 GB, free: 122.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=248): time 0.1439/1.314, allocations: 43.34 MB / 0.6906 GB, free: 110 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.78e-05/1.314, allocations: 233.8 kB / 0.6908 GB, free: 109.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006831/1.321, allocations: 4.764 MB / 0.6955 GB, free: 107.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008787/1.322, allocations: 61.33 kB / 0.6955 GB, free: 107.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00279/1.325, allocations: 3.845 MB / 0.6993 GB, free: 103.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001501/1.326, allocations: 0.9325 MB / 0.7002 GB, free: 102.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004283/1.327, allocations: 148 kB / 0.7003 GB, free: 102.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003839/1.327, allocations: 0.6161 MB / 0.7009 GB, free: 102 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005157/1.332, allocations: 3.415 MB / 0.7043 GB, free: 98.55 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006205/1.338, allocations: 7.677 MB / 0.7118 GB, free: 88.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006158/1.345, allocations: 4.956 MB / 0.7166 GB, free: 83.98 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-05/1.345, allocations: 44 kB / 0.7166 GB, free: 83.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=967) (initialization): time 0.02707/1.372, allocations: 14.43 MB / 0.7307 GB, free: 69.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002147/1.372, allocations: 68 kB / 0.7308 GB, free: 69.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002944/1.372, allocations: 148 kB / 0.7309 GB, free: 69.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01098/1.383, allocations: 4.045 MB / 0.7349 GB, free: 65.23 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005607/1.389, allocations: 1.63 MB / 0.7365 GB, free: 63.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02441/1.413, allocations: 18.66 MB / 0.7547 GB, free: 44.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007152/1.421, allocations: 474.3 kB / 0.7552 GB, free: 44.35 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001949/1.423, allocations: 428 kB / 0.7556 GB, free: 43.93 MB / 494.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006232/1.429, allocations: 2.653 MB / 0.7582 GB, free: 41.27 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001338/1.43, allocations: 427.2 kB / 0.7586 GB, free: 40.84 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01742/1.448, allocations: 8.633 MB / 0.767 GB, free: 32.18 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-05/1.448, allocations: 24 kB / 0.767 GB, free: 32.16 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.285e-05/1.448, allocations: 12 kB / 0.767 GB, free: 32.15 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.517e-05/1.448, allocations: 15.92 kB / 0.767 GB, free: 32.13 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03572/1.484, allocations: 17.9 MB / 0.7845 GB, free: 14.22 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.405e-05/1.484, allocations: 0 / 0.7845 GB, free: 14.22 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001954/1.486, allocations: 399.4 kB / 0.7849 GB, free: 13.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01062/1.496, allocations: 4.069 MB / 0.7889 GB, free: 9.75 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005472/1.497, allocations: 40 kB / 0.7889 GB, free: 9.711 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02498/1.522, allocations: 17.11 MB / 0.8056 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/1.522, allocations: 7.891 kB / 0.8056 GB, free: 8.461 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3125/1.834, allocations: 13.19 MB / 0.8185 GB, free: 153.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003341/1.838, allocations: 0.9681 MB / 0.8195 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001577/1.839, allocations: 38.75 kB / 0.8195 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003134/1.842, allocations: 216.5 kB / 0.8197 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000665/1.843, allocations: 149.6 kB / 0.8198 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002363/1.843, allocations: 61.72 kB / 0.8199 GB, free: 153.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005526/1.849, allocations: 2.975 MB / 0.8228 GB, free: 153.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.61e-07/1.849, allocations: 2.438 kB / 0.8228 GB, free: 153.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008337/1.857, allocations: 1.491 MB / 0.8243 GB, free: 153.4 MB / 0.5137 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008714/1.858, allocations: 204.9 kB / 0.8245 GB, free: 153.3 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01364/1.872, allocations: 8.222 MB / 0.8325 GB, free: 152 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/1.872, allocations: 0 / 0.8325 GB, free: 152 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005295/1.877, allocations: 3.107 MB / 0.8355 GB, free: 150.6 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005975/1.883, allocations: 0.49 MB / 0.836 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03252/1.916, allocations: 15.13 MB / 0.8508 GB, free: 143 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009299/1.925, allocations: 4.108 MB / 0.8548 GB, free: 141.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.009328/1.935, allocations: 2.199 MB / 0.8569 GB, free: 141.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002188/1.937, allocations: 280.2 kB / 0.8572 GB, free: 141.5 MB / 0.5137 GB Notification: Performance of SimCode: time 1.563e-06/1.937, allocations: 4 kB / 0.8572 GB, free: 141.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.1123/2.049, allocations: 59.92 MB / 0.9157 GB, free: 102.4 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointUSP2/JointUSP2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches