Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.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.001612/0.001612, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001696/0.001696, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.503/1.503, allocations: 230.6 MB / 258.3 MB, free: 7.777 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.257/0.257, allocations: 44.93 MB / 359.6 MB, free: 6.047 MB / 286.1 MB " [Timeout remaining time 179] 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.Universal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Universal",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Universal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Universal",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.002292/0.002292, allocations: 71.89 kB / 0.4938 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3657, allocations: 65.47 MB / 0.5577 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Universal): time 0.01421/0.3799, allocations: 11.64 MB / 0.5691 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00882/0.3887, allocations: 4.017 MB / 0.573 GB, free: 7.781 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00218/0.3909, allocations: 83.69 kB / 0.5731 GB, free: 7.699 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004501/0.3954, allocations: 1.919 MB / 0.575 GB, free: 5.773 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005426/0.4008, allocations: 1.946 MB / 0.5769 GB, free: 3.82 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001727/0.4026, allocations: 0.5575 MB / 0.5774 GB, free: 3.262 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006358/0.4089, allocations: 4.049 MB / 0.5814 GB, free: 15.21 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003866/0.4128, allocations: 2.431 MB / 0.5838 GB, free: 12.72 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002962/0.4158, allocations: 1.468 MB / 0.5852 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003752/0.4195, allocations: 2.211 MB / 0.5873 GB, free: 9.027 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001092/0.4206, allocations: 304 kB / 0.5876 GB, free: 8.73 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002709/0.4233, allocations: 0.9166 MB / 0.5885 GB, free: 7.812 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002686/0.426, allocations: 1.897 MB / 0.5904 GB, free: 5.91 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003804/0.4298, allocations: 1.61 MB / 0.592 GB, free: 4.289 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01131/0.4411, allocations: 7.352 MB / 0.5991 GB, free: 12.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.4411, allocations: 0 / 0.5991 GB, free: 12.91 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4411, allocations: 0 / 0.5991 GB, free: 12.91 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003114/0.4414, allocations: 3.984 kB / 0.5991 GB, free: 12.9 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01457/0.456, allocations: 4.945 MB / 0.604 GB, free: 7.898 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.321e-05/0.4561, allocations: 12.03 kB / 0.604 GB, free: 7.887 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002531/0.4563, allocations: 114.2 kB / 0.6041 GB, free: 7.773 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00242/0.4587, allocations: 0.8196 MB / 0.6049 GB, free: 6.945 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01149/0.4702, allocations: 3.172 MB / 0.608 GB, free: 3.766 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006289/0.4765, allocations: 2.359 MB / 0.6103 GB, free: 1.375 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002789/0.4768, allocations: 246 kB / 0.6105 GB, free: 1.133 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001321/0.4781, allocations: 303.8 kB / 0.6108 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02223/0.5003, allocations: 12.08 MB / 0.6226 GB, free: 4.207 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001317/0.5005, allocations: 35.75 kB / 0.6226 GB, free: 4.172 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006841/0.5011, allocations: 147.8 kB / 0.6228 GB, free: 4.027 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005112/0.5063, allocations: 2.839 MB / 0.6256 GB, free: 1.184 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02463/0.5309, allocations: 11.34 MB / 0.6366 GB, free: 5.82 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07176/0.6026, allocations: 39.08 MB / 0.6748 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01271/0.6154, allocations: 4.904 MB / 0.6796 GB, free: 8.844 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004498/0.6199, allocations: 2.761 MB / 0.6823 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001406/0.6213, allocations: 0.5517 MB / 0.6828 GB, free: 5.523 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.7e-05/0.6213, allocations: 72.42 kB / 0.6829 GB, free: 5.441 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=262): time 8.115e-06/0.6213, allocations: 0 / 0.6829 GB, free: 5.441 MB / 0.5137 GB Notification: Performance of matching and sorting (n=283): time 0.05839/0.6797, allocations: 20.03 MB / 0.7025 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.142e-05/0.6798, allocations: 89.33 kB / 0.7025 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006522/0.6863, allocations: 3.032 MB / 0.7055 GB, free: 14.14 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005308/0.6869, allocations: 61.7 kB / 0.7056 GB, free: 14.08 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003004/0.6899, allocations: 3.112 MB / 0.7086 GB, free: 10.94 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001999/0.6919, allocations: 1.069 MB / 0.7096 GB, free: 9.863 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003299/0.6952, allocations: 1.199 MB / 0.7108 GB, free: 8.652 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.6953, allocations: 309.1 kB / 0.7111 GB, free: 8.348 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005225/0.7005, allocations: 2.846 MB / 0.7139 GB, free: 5.496 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008225/0.7088, allocations: 6.018 MB / 0.7198 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01436/0.7231, allocations: 9.653 MB / 0.7292 GB, free: 2.73 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001372/0.7233, allocations: 32 kB / 0.7292 GB, free: 2.699 MB / 0.5606 GB Notification: Performance of matching and sorting (n=788) (initialization): time 0.2991/1.022, allocations: 10.03 MB / 0.739 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.942e-05/1.022, allocations: 54.31 kB / 0.7391 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000134/1.023, allocations: 108.9 kB / 0.7392 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003204/1.026, allocations: 1.358 MB / 0.7405 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00465/1.03, allocations: 1.367 MB / 0.7418 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008289/1.039, allocations: 7.629 MB / 0.7493 GB, free: 151.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004567/1.043, allocations: 368.2 kB / 0.7496 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/1.044, allocations: 343.5 kB / 0.75 GB, free: 150.6 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 501 * Number of states: 0 () * Number of discrete variables: 32 (axis1.headAtOrigin,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (718): * Single equations (assignments): 711 * Array equations: 6 * 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 {(3,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003881/1.048, allocations: 2.287 MB / 0.7522 GB, free: 148.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005849/1.049, allocations: 324.9 kB / 0.7525 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009193/1.058, allocations: 6.613 MB / 0.759 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.556e-05/1.058, allocations: 52.59 kB / 0.759 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/1.058, allocations: 4 kB / 0.759 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-05/1.058, allocations: 15.95 kB / 0.759 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02208/1.08, allocations: 13.34 MB / 0.7721 GB, free: 129 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.414e-05/1.08, allocations: 8 kB / 0.7721 GB, free: 129 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002412/1.083, allocations: 450 kB / 0.7725 GB, free: 128.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003186/1.086, allocations: 1.218 MB / 0.7737 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006444/1.086, allocations: 51.94 kB / 0.7737 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007181/1.094, allocations: 6.853 MB / 0.7804 GB, free: 120.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/1.094, allocations: 11.94 kB / 0.7804 GB, free: 120.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01332/1.107, allocations: 9.871 MB / 0.7901 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000803/1.108, allocations: 286.7 kB / 0.7904 GB, free: 110.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001012/1.109, allocations: 55.98 kB / 0.7904 GB, free: 110.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002177/1.111, allocations: 195.6 kB / 0.7906 GB, free: 109.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007437/1.112, allocations: 169.6 kB / 0.7908 GB, free: 109.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004384/1.112, allocations: 79.44 kB / 0.7908 GB, free: 109.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00331/1.115, allocations: 1.874 MB / 0.7927 GB, free: 107.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/1.115, allocations: 0 / 0.7927 GB, free: 107.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005519/1.121, allocations: 1.101 MB / 0.7937 GB, free: 106.7 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (218): * Single equations (assignments): 211 * Array equations: 6 * 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 {(4,16,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01509/1.136, allocations: 10.53 MB / 0.804 GB, free: 95.96 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009905/1.146, allocations: 6.678 MB / 0.8105 GB, free: 89.29 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/1.146, allocations: 0.875 kB / 0.8105 GB, free: 89.29 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003806/1.15, allocations: 2.649 MB / 0.8131 GB, free: 86.62 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003216/1.153, allocations: 437.9 kB / 0.8136 GB, free: 86.21 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07768/1.231, allocations: 49.09 MB / 0.8615 GB, free: 32.13 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005815/1.236, allocations: 3.042 MB / 0.8645 GB, free: 29.05 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005429/1.242, allocations: 2.2 MB / 0.8666 GB, free: 26.84 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004532/1.246, allocations: 2.069 MB / 0.8686 GB, free: 24.77 MB / 0.5606 GB Notification: Performance of SimCode: time 2.174e-06/1.246, allocations: 0 / 0.8686 GB, free: 24.77 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1286/1.375, allocations: 73.18 MB / 0.9401 GB, free: 236 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.78/27.15, allocations: 11.34 kB / 0.9401 GB, free: 228 kB / 0.6075 GB " [Timeout remaining time 633] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Universal_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Universal.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Universal/Universal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Universal.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: 31.33525584603194]