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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00172/0.00172, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001913/0.001913, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.212/0.212, allocations: 46.11 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 82.64 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1197, allocations: 62.43 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01255/0.1323, allocations: 11.95 MB / 492.1 MB, free: 9.184 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009215/0.1416, allocations: 4.382 MB / 496.5 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002156/0.1437, allocations: 71.81 kB / 496.5 MB, free: 4.715 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005289/0.1491, allocations: 2.756 MB / 499.3 MB, free: 1.949 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005434/0.1546, allocations: 1.995 MB / 0.4895 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002306/0.1569, allocations: 1.006 MB / 0.4905 GB, free: 14.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007654/0.1645, allocations: 5.362 MB / 0.4957 GB, free: 9.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004802/0.1694, allocations: 3.444 MB / 0.4991 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003033/0.1724, allocations: 1.733 MB / 0.5008 GB, free: 4.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0039/0.1764, allocations: 2.445 MB / 0.5032 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001229/0.1776, allocations: 364 kB / 0.5035 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003344/0.181, allocations: 1.4 MB / 0.5049 GB, free: 132 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2221/0.4031, allocations: 2.165 MB / 0.507 GB, free: 18.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007072/0.4102, allocations: 2.554 MB / 0.5095 GB, free: 17.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0149/0.4252, allocations: 7.925 MB / 0.5173 GB, free: 16.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.4253, allocations: 1.094 kB / 0.5173 GB, free: 16.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4253, allocations: 0 / 0.5173 GB, free: 16.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003367/0.4256, allocations: 0 / 0.5173 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.02051/0.4461, allocations: 5.883 MB / 0.523 GB, free: 14.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.15e-05/0.4462, allocations: 9.5 kB / 0.523 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003365/0.4496, allocations: 0.7976 MB / 0.5238 GB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08848/0.5381, allocations: 7.212 MB / 0.5308 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008394/0.5465, allocations: 3.535 MB / 0.5343 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.5468, allocations: 259.6 kB / 0.5345 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001889/0.5487, allocations: 353.5 kB / 0.5349 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02236/0.5711, allocations: 12.29 MB / 0.5469 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001602/0.5713, allocations: 54.59 kB / 0.5469 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005572/0.5719, allocations: 168.8 kB / 0.5471 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003734/0.5756, allocations: 2.377 MB / 0.5494 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0236/0.5992, allocations: 10.69 MB / 0.5598 GB, free: 4.168 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0635/0.6628, allocations: 48.78 MB / 0.6075 GB, free: 2.605 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01582/0.6786, allocations: 5.851 MB / 0.6132 GB, free: 12.62 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00445/0.6831, allocations: 3.114 MB / 0.6162 GB, free: 9.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0217/0.7048, allocations: 13.01 MB / 0.6289 GB, free: 12.23 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.329e-05/0.7049, allocations: 55.44 kB / 0.629 GB, free: 12.17 MB / 478.1 MB Notification: Performance of pre-optimization done (n=193): time 6.362e-06/0.7049, allocations: 0 / 0.629 GB, free: 12.17 MB / 478.1 MB Notification: Performance of matching and sorting (n=254): time 0.1244/0.8294, allocations: 38.69 MB / 0.6668 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.8295, allocations: 209.2 kB / 0.667 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008491/0.838, allocations: 4.38 MB / 0.6713 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0008211/0.8389, allocations: 61.7 kB / 0.6713 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003355/0.8422, allocations: 3.431 MB / 0.6747 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001839/0.8441, allocations: 0.9438 MB / 0.6756 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005071/0.8492, allocations: 1.364 MB / 0.6769 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.8494, allocations: 309.1 kB / 0.6772 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005504/0.8549, allocations: 3.113 MB / 0.6803 GB, free: 7.535 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008019/0.8629, allocations: 7.04 MB / 0.6871 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01331/0.8763, allocations: 10.96 MB / 0.6978 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001001/0.8764, allocations: 40 kB / 0.6979 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.2206/1.097, allocations: 12.66 MB / 0.7102 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001347/1.097, allocations: 64.09 kB / 0.7103 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002517/1.097, allocations: 139.2 kB / 0.7104 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009501/1.107, allocations: 3.255 MB / 0.7136 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005505/1.113, allocations: 1.536 MB / 0.7151 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01989/1.132, allocations: 16.6 MB / 0.7313 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005689/1.138, allocations: 431.5 kB / 0.7317 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001133/1.139, allocations: 414.9 kB / 0.7321 GB, free: 169.4 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * 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 (808): * Single equations (assignments): 804 * 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 {(8,47,54.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00411/1.143, allocations: 2.345 MB / 0.7344 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008148/1.144, allocations: 406.8 kB / 0.7348 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01269/1.157, allocations: 7.518 MB / 0.7421 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.149e-05/1.157, allocations: 27.98 kB / 0.7422 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/1.157, allocations: 12 kB / 0.7422 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.2e-05/1.157, allocations: 11.97 kB / 0.7422 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02328/1.18, allocations: 15.2 MB / 0.757 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.309e-05/1.18, allocations: 0 / 0.757 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00188/1.182, allocations: 391.3 kB / 0.7574 GB, free: 144 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007382/1.19, allocations: 2.927 MB / 0.7603 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003199/1.19, allocations: 49.58 kB / 0.7603 GB, free: 141 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01634/1.206, allocations: 14.76 MB / 0.7747 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.206, allocations: 4.703 kB / 0.7747 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01595/1.222, allocations: 11.47 MB / 0.7859 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/1.224, allocations: 447.7 kB / 0.7864 GB, free: 114.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007709/1.224, allocations: 45.88 kB / 0.7864 GB, free: 114.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002133/1.227, allocations: 193.1 kB / 0.7866 GB, free: 114 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005474/1.227, allocations: 141.8 kB / 0.7867 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00019/1.227, allocations: 64 kB / 0.7868 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004032/1.231, allocations: 2.746 MB / 0.7895 GB, free: 111 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.01e-07/1.231, allocations: 0 / 0.7895 GB, free: 111 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006727/1.238, allocations: 1.296 MB / 0.7907 GB, free: 109.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 (189): * Single equations (assignments): 185 * 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 {(6,40,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01822/1.256, allocations: 12.15 MB / 0.8026 GB, free: 97.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01657/1.273, allocations: 10.37 MB / 0.8127 GB, free: 87.16 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/1.273, allocations: 0 / 0.8127 GB, free: 87.16 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004602/1.278, allocations: 3.12 MB / 0.8158 GB, free: 84.02 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003342/1.281, allocations: 0.5134 MB / 0.8163 GB, free: 83.52 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09141/1.372, allocations: 68.18 MB / 0.8829 GB, free: 6.832 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003556/1.376, allocations: 3.662 MB / 0.8864 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005291/1.381, allocations: 2.169 MB / 0.8886 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00387/1.385, allocations: 2.227 MB / 0.8907 GB, free: 14.79 MB / 0.545 GB Notification: Performance of SimCode: time 1.313e-06/1.385, allocations: 0 / 0.8907 GB, free: 14.79 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3647/1.75, allocations: 98.25 MB / 0.9867 GB, free: 129.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/13.4, allocations: 0.9375 kB / 0.9867 GB, free: 129.4 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUPS2/JointUPS2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches