Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.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.JointUPS2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2") translateModel(ModelicaTest.MultiBody.Joints.JointUPS2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.00127, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001402/0.001402, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2763/0.2764, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 74.88 kB / 417.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1352, allocations: 62.46 MB / 480 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01508/0.1503, allocations: 11.94 MB / 492 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01108/0.1615, allocations: 4.379 MB / 496.3 MB, free: 4.891 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002638/0.1641, allocations: 71.81 kB / 496.4 MB, free: 4.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005984/0.1701, allocations: 2.756 MB / 499.2 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006093/0.1763, allocations: 2 MB / 0.4894 GB, free: 48 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00263/0.179, allocations: 1.002 MB / 0.4904 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007899/0.1869, allocations: 5.365 MB / 0.4956 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005237/0.1922, allocations: 3.436 MB / 0.499 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003505/0.1957, allocations: 1.737 MB / 0.5007 GB, free: 4.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004433/0.2001, allocations: 2.449 MB / 0.5031 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001625/0.2018, allocations: 364 kB / 0.5034 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003628/0.2054, allocations: 1.404 MB / 0.5048 GB, free: 228 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2728/0.4782, allocations: 2.168 MB / 0.5069 GB, free: 18.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005576/0.4839, allocations: 2.481 MB / 0.5093 GB, free: 17.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01492/0.4988, allocations: 7.739 MB / 0.5169 GB, free: 16.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.4989, allocations: 0 / 0.5169 GB, free: 16.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4989, allocations: 1.375 kB / 0.5169 GB, free: 16.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000358/0.4992, allocations: 1.375 kB / 0.5169 GB, free: 16.23 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.02252/0.5218, allocations: 5.735 MB / 0.5225 GB, free: 14.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.5218, allocations: 11.25 kB / 0.5225 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01795/0.5398, allocations: 2.601 MB / 0.5251 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008905/0.5487, allocations: 3.093 MB / 0.5281 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003252/0.5491, allocations: 252 kB / 0.5283 GB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002341/0.5515, allocations: 346.3 kB / 0.5286 GB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02946/0.5809, allocations: 12.37 MB / 0.5407 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003663/0.5814, allocations: 55.42 kB / 0.5408 GB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002183/0.5836, allocations: 165.4 kB / 0.5409 GB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004115/0.5877, allocations: 2.381 MB / 0.5433 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02585/0.6136, allocations: 10.84 MB / 0.5538 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07434/0.688, allocations: 48.8 MB / 0.6015 GB, free: 8.672 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01692/0.705, allocations: 6.045 MB / 0.6074 GB, free: 2.488 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004632/0.7096, allocations: 3.302 MB / 0.6106 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02223/0.7319, allocations: 13.51 MB / 0.6238 GB, free: 1.422 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.877e-05/0.732, allocations: 63.25 kB / 0.6239 GB, free: 1.355 MB / 462.1 MB Notification: Performance of pre-optimization done (n=204): time 5.09e-06/0.732, allocations: 0 / 0.6239 GB, free: 1.355 MB / 462.1 MB Notification: Performance of matching and sorting (n=265): time 0.1126/0.8446, allocations: 36.3 MB / 0.6593 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/0.8447, allocations: 209.9 kB / 0.6595 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009754/0.8545, allocations: 4.353 MB / 0.6638 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001089/0.8556, allocations: 65.7 kB / 0.6638 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003307/0.859, allocations: 3.378 MB / 0.6671 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001932/0.8609, allocations: 0.9838 MB / 0.6681 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004584/0.8655, allocations: 1.419 MB / 0.6695 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.8657, allocations: 305.1 kB / 0.6698 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006498/0.8722, allocations: 3.289 MB / 0.673 GB, free: 14.89 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01206/0.8843, allocations: 7.207 MB / 0.68 GB, free: 5.84 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01767/0.902, allocations: 11.23 MB / 0.691 GB, free: 9.25 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002166/0.9022, allocations: 40 kB / 0.691 GB, free: 9.211 MB / 0.5294 GB Notification: Performance of matching and sorting (n=919) (initialization): time 0.3291/1.231, allocations: 13.27 MB / 0.704 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001261/1.232, allocations: 62.25 kB / 0.704 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002542/1.232, allocations: 143.9 kB / 0.7042 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01114/1.243, allocations: 3.407 MB / 0.7075 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006482/1.249, allocations: 1.586 MB / 0.7091 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02314/1.273, allocations: 17.55 MB / 0.7262 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007087/1.28, allocations: 432.9 kB / 0.7266 GB, free: 168.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001546/1.281, allocations: 413.6 kB / 0.727 GB, free: 168.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 36 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.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],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (841): * Single equations (assignments): 837 * 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 {(5,50,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005574/1.287, allocations: 2.351 MB / 0.7293 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009391/1.288, allocations: 399.6 kB / 0.7297 GB, free: 167.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01487/1.303, allocations: 8 MB / 0.7375 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.983e-05/1.303, allocations: 33.69 kB / 0.7375 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.331e-05/1.303, allocations: 12 kB / 0.7375 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.435e-05/1.303, allocations: 15.89 kB / 0.7376 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0344/1.337, allocations: 15.52 MB / 0.7527 GB, free: 148 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.133e-05/1.337, allocations: 0 / 0.7527 GB, free: 148 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002193/1.34, allocations: 387.4 kB / 0.7531 GB, free: 147.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009125/1.349, allocations: 3.173 MB / 0.7562 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009603/1.35, allocations: 46.91 kB / 0.7562 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02095/1.371, allocations: 15.76 MB / 0.7716 GB, free: 128.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/1.371, allocations: 7.938 kB / 0.7716 GB, free: 128.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02077/1.392, allocations: 12.14 MB / 0.7835 GB, free: 116.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/1.393, allocations: 451.2 kB / 0.7839 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001599/1.395, allocations: 43.94 kB / 0.784 GB, free: 116.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003161/1.398, allocations: 184.4 kB / 0.7841 GB, free: 116 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008137/1.399, allocations: 154.2 kB / 0.7843 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000351/1.399, allocations: 67.98 kB / 0.7843 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005457/1.405, allocations: 2.725 MB / 0.787 GB, free: 113 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.01e-07/1.405, allocations: 0 / 0.787 GB, free: 113 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008093/1.413, allocations: 1.353 MB / 0.7883 GB, free: 111.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (197): * Single equations (assignments): 193 * 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 {(5,44,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009635/1.414, allocations: 180.5 kB / 0.7885 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01805/1.432, allocations: 10.93 MB / 0.7992 GB, free: 100.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/1.432, allocations: 4 kB / 0.7992 GB, free: 100.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005818/1.438, allocations: 3.316 MB / 0.8024 GB, free: 97.27 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004901/1.443, allocations: 0.5057 MB / 0.8029 GB, free: 96.78 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02514/1.468, allocations: 11.99 MB / 0.8146 GB, free: 84.76 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006909/1.475, allocations: 3.67 MB / 0.8182 GB, free: 81.06 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0064/1.481, allocations: 2.173 MB / 0.8203 GB, free: 78.88 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001525/1.483, allocations: 279.4 kB / 0.8206 GB, free: 78.61 MB / 0.5294 GB Notification: Performance of SimCode: time 1.052e-06/1.483, allocations: 4 kB / 0.8206 GB, free: 78.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.1008/1.584, allocations: 60.28 MB / 0.8795 GB, free: 18.54 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUPS2/JointUPS2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches