Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 107.8 kB / 16.41 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.397/1.397, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1987/0.1987, allocations: 43.52 MB / 314.1 MB, free: 476 kB / 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.001569/0.001569, allocations: 71.91 kB / 441.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1113, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01243/0.1238, allocations: 12.02 MB / 0.4991 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008701/0.1326, allocations: 4.383 MB / 0.5034 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002072/0.1347, allocations: 71.81 kB / 0.5035 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005262/0.1399, allocations: 2.76 MB / 0.5062 GB, free: 9.012 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005335/0.1454, allocations: 2.039 MB / 0.5082 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002681/0.1481, allocations: 1.014 MB / 0.5092 GB, free: 5.949 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007193/0.1553, allocations: 5.135 MB / 0.5142 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004683/0.16, allocations: 3.44 MB / 0.5175 GB, free: 13.31 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002957/0.163, allocations: 1.76 MB / 0.5193 GB, free: 11.54 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003608/0.1666, allocations: 2.465 MB / 0.5217 GB, free: 9.07 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001394/0.168, allocations: 368 kB / 0.522 GB, free: 8.711 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003157/0.1712, allocations: 1.404 MB / 0.5234 GB, free: 7.305 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003033/0.1742, allocations: 2.217 MB / 0.5256 GB, free: 5.082 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004225/0.1785, allocations: 2.587 MB / 0.5281 GB, free: 2.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2279/0.4064, allocations: 8.265 MB / 0.5362 GB, free: 15.52 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.4064, allocations: 4.203 kB / 0.5362 GB, free: 15.52 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.4064, allocations: 0 / 0.5362 GB, free: 15.52 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003859/0.4068, allocations: 3.891 kB / 0.5362 GB, free: 15.52 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: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.02065/0.4275, allocations: 5.916 MB / 0.5419 GB, free: 13.35 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.4276, allocations: 17.52 kB / 0.542 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001839/0.4294, allocations: 0.8006 MB / 0.5427 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07881/0.5082, allocations: 7.212 MB / 0.5498 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01056/0.5188, allocations: 4.121 MB / 0.5538 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003774/0.5193, allocations: 261.2 kB / 0.5541 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002362/0.5216, allocations: 357.1 kB / 0.5544 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03013/0.5518, allocations: 12.28 MB / 0.5664 GB, free: 5.867 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003022/0.5521, allocations: 52.78 kB / 0.5664 GB, free: 5.863 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002013/0.5542, allocations: 163.3 kB / 0.5666 GB, free: 5.793 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003962/0.5582, allocations: 2.381 MB / 0.5689 GB, free: 4.887 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02316/0.5813, allocations: 10.7 MB / 0.5794 GB, free: 11.62 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07302/0.6544, allocations: 48.62 MB / 0.6268 GB, free: 10.25 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01573/0.6702, allocations: 5.845 MB / 0.6326 GB, free: 4.266 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004304/0.6745, allocations: 3.107 MB / 0.6356 GB, free: 1.152 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02257/0.6971, allocations: 13.03 MB / 0.6483 GB, free: 3.895 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.937e-05/0.6972, allocations: 59.33 kB / 0.6484 GB, free: 3.832 MB / 494.1 MB Notification: Performance of pre-optimization done (n=193): time 7.524e-06/0.6973, allocations: 4 kB / 0.6484 GB, free: 3.828 MB / 494.1 MB Notification: Performance of matching and sorting (n=254): time 0.1204/0.8177, allocations: 38.8 MB / 0.6863 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.8178, allocations: 209.7 kB / 0.6865 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008243/0.8261, allocations: 4.428 MB / 0.6908 GB, free: 8.277 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006801/0.8268, allocations: 64.33 kB / 0.6908 GB, free: 8.211 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002499/0.8293, allocations: 3.428 MB / 0.6942 GB, free: 4.793 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001367/0.8307, allocations: 0.9544 MB / 0.6951 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00328/0.834, allocations: 1.366 MB / 0.6965 GB, free: 2.473 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.341e-05/0.8341, allocations: 301.1 kB / 0.6967 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00481/0.8389, allocations: 3.113 MB / 0.6998 GB, free: 15.06 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007877/0.8468, allocations: 7.043 MB / 0.7067 GB, free: 6.145 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01435/0.8612, allocations: 10.96 MB / 0.7174 GB, free: 9.816 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001606/0.8614, allocations: 40 kB / 0.7174 GB, free: 9.777 MB / 0.5606 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02924/0.8906, allocations: 12.67 MB / 0.7298 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001967/0.8909, allocations: 64 kB / 0.7298 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002947/0.8912, allocations: 136 kB / 0.73 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01006/0.9013, allocations: 3.247 MB / 0.7331 GB, free: 9.895 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005956/0.9073, allocations: 1.54 MB / 0.7346 GB, free: 8.352 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02708/0.9344, allocations: 16.6 MB / 0.7509 GB, free: 7.617 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006822/0.9412, allocations: 427.4 kB / 0.7513 GB, free: 7.199 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001666/0.9429, allocations: 404 kB / 0.7516 GB, free: 6.805 MB / 0.5919 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.006065/0.949, allocations: 2.36 MB / 0.754 GB, free: 4.43 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001228/0.9503, allocations: 406.8 kB / 0.7543 GB, free: 4.027 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2406/1.191, allocations: 7.511 MB / 0.7617 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.931e-05/1.191, allocations: 38.23 kB / 0.7617 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.319e-05/1.191, allocations: 10.69 kB / 0.7617 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.562e-05/1.191, allocations: 12.77 kB / 0.7617 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02682/1.218, allocations: 15.04 MB / 0.7764 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.042e-05/1.218, allocations: 4.812 kB / 0.7764 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001968/1.22, allocations: 380.3 kB / 0.7768 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007842/1.228, allocations: 2.924 MB / 0.7796 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004384/1.228, allocations: 40.91 kB / 0.7797 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01718/1.245, allocations: 14.81 MB / 0.7942 GB, free: 197.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.245, allocations: 3.938 kB / 0.7942 GB, free: 197.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01803/1.263, allocations: 11.49 MB / 0.8054 GB, free: 188.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002597/1.266, allocations: 0.919 MB / 0.8063 GB, free: 188.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009258/1.267, allocations: 36 kB / 0.8063 GB, free: 188.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002183/1.269, allocations: 198 kB / 0.8065 GB, free: 188 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005146/1.27, allocations: 149.8 kB / 0.8066 GB, free: 187.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001885/1.27, allocations: 64 kB / 0.8067 GB, free: 187.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004597/1.275, allocations: 2.767 MB / 0.8094 GB, free: 185 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7.81e-07/1.275, allocations: 4 kB / 0.8094 GB, free: 185 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006836/1.281, allocations: 1.315 MB / 0.8107 GB, free: 183.7 MB / 0.5919 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.01626/1.298, allocations: 12.15 MB / 0.8226 GB, free: 171.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01095/1.309, allocations: 7.855 MB / 0.8302 GB, free: 163.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/1.309, allocations: 0 / 0.8302 GB, free: 163.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004362/1.313, allocations: 3.13 MB / 0.8333 GB, free: 160.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00383/1.317, allocations: 0.5191 MB / 0.8338 GB, free: 160.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08319/1.4, allocations: 60.73 MB / 0.8931 GB, free: 93.27 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003754/1.404, allocations: 3.675 MB / 0.8967 GB, free: 89.57 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004381/1.408, allocations: 2.177 MB / 0.8988 GB, free: 87.39 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002537/1.411, allocations: 2.221 MB / 0.901 GB, free: 85.16 MB / 0.5919 GB Notification: Performance of SimCode: time 3.065e-06/1.411, allocations: 0 / 0.901 GB, free: 85.16 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3699/1.781, allocations: 96.25 MB / 0.995 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.59/29.37, allocations: 17.48 kB / 0.995 GB, free: 204.5 MB / 0.5919 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUPS2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointUPS2/JointUPS2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches