Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00181/0.00181, allocations: 105.1 kB / 21.22 MB, free: 0.5078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 214.4 kB / 24.51 MB, free: 3.691 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.485/1.485, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2311/0.2311, allocations: 44.93 MB / 359.6 MB, free: 6.059 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002242/0.002242, allocations: 59.91 kB / 0.4938 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3091, allocations: 65.47 MB / 0.5577 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01336/0.3225, allocations: 10.39 MB / 0.5679 GB, free: 13.1 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009276/0.3318, allocations: 4.167 MB / 0.5719 GB, free: 8.922 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001625/0.3334, allocations: 83.56 kB / 0.572 GB, free: 8.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005695/0.3391, allocations: 2.694 MB / 0.5747 GB, free: 6.137 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006068/0.3452, allocations: 2.066 MB / 0.5767 GB, free: 4.062 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002722/0.3479, allocations: 1.01 MB / 0.5777 GB, free: 3.051 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009015/0.3569, allocations: 5.374 MB / 0.5829 GB, free: 13.66 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005054/0.362, allocations: 2.888 MB / 0.5857 GB, free: 10.72 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004029/0.366, allocations: 1.772 MB / 0.5875 GB, free: 8.945 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004669/0.3707, allocations: 2.648 MB / 0.59 GB, free: 6.289 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001232/0.3719, allocations: 372 kB / 0.5904 GB, free: 5.926 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003087/0.375, allocations: 1.307 MB / 0.5917 GB, free: 4.617 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0027/0.3777, allocations: 2.247 MB / 0.5939 GB, free: 2.363 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00302/0.3807, allocations: 1.911 MB / 0.5957 GB, free: 452 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01139/0.3921, allocations: 8.257 MB / 0.6038 GB, free: 8.152 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.3921, allocations: 8 kB / 0.6038 GB, free: 8.145 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3921, allocations: 0 / 0.6038 GB, free: 8.145 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002598/0.3924, allocations: 0 / 0.6038 GB, free: 8.145 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: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.01629/0.4086, allocations: 5.943 MB / 0.6096 GB, free: 2.141 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.33e-05/0.4087, allocations: 12.03 kB / 0.6096 GB, free: 2.129 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002052/0.4089, allocations: 110.8 kB / 0.6097 GB, free: 2.02 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001918/0.4108, allocations: 0.8024 MB / 0.6105 GB, free: 1.207 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0789/0.4897, allocations: 7.238 MB / 0.6176 GB, free: 9.953 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009336/0.4991, allocations: 3.556 MB / 0.6211 GB, free: 6.344 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003688/0.4994, allocations: 262.6 kB / 0.6213 GB, free: 6.086 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001461/0.5009, allocations: 343.7 kB / 0.6216 GB, free: 5.75 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02579/0.5267, allocations: 12.39 MB / 0.6337 GB, free: 8.527 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002619/0.5269, allocations: 51.58 kB / 0.6338 GB, free: 8.477 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001189/0.5281, allocations: 167.8 kB / 0.6339 GB, free: 8.312 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004464/0.5326, allocations: 2.377 MB / 0.6363 GB, free: 5.934 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02379/0.5564, allocations: 10.7 MB / 0.6467 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06564/0.622, allocations: 46.35 MB / 0.692 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01591/0.6379, allocations: 5.178 MB / 0.697 GB, free: 6.371 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005161/0.6431, allocations: 2.846 MB / 0.6998 GB, free: 3.516 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02189/0.665, allocations: 11.28 MB / 0.7108 GB, free: 8.195 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.486e-05/0.665, allocations: 51.88 kB / 0.7109 GB, free: 8.137 MB / 0.545 GB Notification: Performance of pre-optimization done (n=193): time 5.951e-06/0.6651, allocations: 4 kB / 0.7109 GB, free: 8.133 MB / 0.545 GB Notification: Performance of matching and sorting (n=254): time 0.3597/1.025, allocations: 38.58 MB / 0.7486 GB, free: 156.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.248e-05/1.025, allocations: 203.5 kB / 0.7487 GB, free: 156 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005933/1.031, allocations: 4.395 MB / 0.753 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005689/1.031, allocations: 61.17 kB / 0.7531 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001669/1.033, allocations: 3.563 MB / 0.7566 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009277/1.034, allocations: 0.9933 MB / 0.7575 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001682/1.036, allocations: 1.377 MB / 0.7589 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.846e-05/1.036, allocations: 308.2 kB / 0.7592 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003365/1.039, allocations: 3.116 MB / 0.7622 GB, free: 146.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004541/1.044, allocations: 7.088 MB / 0.7691 GB, free: 137.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009616/1.053, allocations: 10.96 MB / 0.7798 GB, free: 124.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001384/1.053, allocations: 44 kB / 0.7799 GB, free: 124.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02248/1.076, allocations: 12.65 MB / 0.7922 GB, free: 111.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/1.076, allocations: 65 kB / 0.7923 GB, free: 111.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001626/1.076, allocations: 136 kB / 0.7924 GB, free: 111.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008842/1.085, allocations: 3.239 MB / 0.7956 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004993/1.09, allocations: 1.536 MB / 0.7971 GB, free: 106.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02087/1.111, allocations: 16.32 MB / 0.813 GB, free: 90.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006113/1.117, allocations: 435.5 kB / 0.8135 GB, free: 89.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001432/1.118, allocations: 405.2 kB / 0.8138 GB, free: 89.48 MB / 0.5606 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.004158/1.122, allocations: 2.353 MB / 0.8161 GB, free: 87.12 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009703/1.123, allocations: 433.1 kB / 0.8166 GB, free: 86.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01379/1.137, allocations: 7.479 MB / 0.8239 GB, free: 79.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.334e-05/1.137, allocations: 28 kB / 0.8239 GB, free: 79.17 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-05/1.137, allocations: 15.5 kB / 0.8239 GB, free: 79.16 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.323e-05/1.137, allocations: 11.95 kB / 0.8239 GB, free: 79.14 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02595/1.163, allocations: 14.37 MB / 0.8379 GB, free: 64.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.127e-05/1.163, allocations: 0 / 0.8379 GB, free: 64.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002071/1.165, allocations: 375.5 kB / 0.8383 GB, free: 64.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008044/1.173, allocations: 2.923 MB / 0.8412 GB, free: 61.46 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005276/1.174, allocations: 43.52 kB / 0.8412 GB, free: 61.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01737/1.191, allocations: 14.56 MB / 0.8554 GB, free: 46.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.191, allocations: 0 / 0.8554 GB, free: 46.73 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01795/1.209, allocations: 11.48 MB / 0.8666 GB, free: 35.18 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/1.21, allocations: 396.9 kB / 0.867 GB, free: 34.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001302/1.212, allocations: 41.12 kB / 0.867 GB, free: 34.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003038/1.215, allocations: 187.7 kB / 0.8672 GB, free: 34.57 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009492/1.216, allocations: 158.6 kB / 0.8674 GB, free: 34.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000293/1.216, allocations: 63.34 kB / 0.8674 GB, free: 34.36 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004351/1.22, allocations: 2.75 MB / 0.8701 GB, free: 31.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/1.22, allocations: 3.938 kB / 0.8701 GB, free: 31.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006385/1.227, allocations: 1.297 MB / 0.8714 GB, free: 30.3 MB / 0.5606 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.01863/1.245, allocations: 12.14 MB / 0.8832 GB, free: 18.09 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01192/1.257, allocations: 7.526 MB / 0.8906 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/1.257, allocations: 0 / 0.8906 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004686/1.262, allocations: 2.889 MB / 0.8934 GB, free: 7.676 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00349/1.265, allocations: 0.509 MB / 0.8939 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1206/1.386, allocations: 60.75 MB / 0.9532 GB, free: 4.148 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007031/1.393, allocations: 3.143 MB / 0.9563 GB, free: 0.9727 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00647/1.4, allocations: 2.169 MB / 0.9584 GB, free: 14.8 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00463/1.404, allocations: 2.218 MB / 0.9606 GB, free: 12.58 MB / 0.6387 GB Notification: Performance of SimCode: time 1.803e-06/1.404, allocations: 0 / 0.9606 GB, free: 12.58 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4119/1.816, allocations: 98.8 MB / 1.057 GB, free: 154.4 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.15/34.96, allocations: 12 kB / 1.057 GB, free: 154.4 MB / 0.6387 GB " [Timeout remaining time 625] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2_fmu --startTime=0 --stopTime=4 --stepSize=0.00079968 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 39.20807147899177]