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.001508/0.001508, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001483/0.001483, allocations: 210 kB / 23.73 MB, free: 4.387 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.451/1.451, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2533/0.2533, allocations: 44.94 MB / 358.8 MB, free: 6.133 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.Universal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Universal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Universal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Universal",fmuType="me",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.003054/0.003054, allocations: 63.89 kB / 0.493 GB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3679, allocations: 65.47 MB / 0.557 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Universal): time 0.01599/0.3839, allocations: 11.72 MB / 0.5684 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0112/0.3951, allocations: 4.028 MB / 0.5724 GB, free: 7.691 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00254/0.3976, allocations: 75.75 kB / 0.5724 GB, free: 7.617 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004689/0.4023, allocations: 1.927 MB / 0.5743 GB, free: 5.684 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005932/0.4083, allocations: 1.954 MB / 0.5762 GB, free: 3.723 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001743/0.41, allocations: 0.5537 MB / 0.5768 GB, free: 3.168 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0064/0.4164, allocations: 4.037 MB / 0.5807 GB, free: 15.12 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003771/0.4202, allocations: 2.427 MB / 0.5831 GB, free: 12.64 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002795/0.423, allocations: 1.464 MB / 0.5845 GB, free: 11.17 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00374/0.4267, allocations: 2.098 MB / 0.5865 GB, free: 9.066 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001242/0.428, allocations: 308 kB / 0.5868 GB, free: 8.766 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00294/0.4309, allocations: 0.9049 MB / 0.5877 GB, free: 7.859 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003147/0.434, allocations: 1.901 MB / 0.5896 GB, free: 5.953 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003607/0.4376, allocations: 1.607 MB / 0.5912 GB, free: 4.336 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.4488, allocations: 7.356 MB / 0.5983 GB, free: 12.95 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.4488, allocations: 0 / 0.5983 GB, free: 12.95 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.566e-06/0.4488, allocations: 0 / 0.5983 GB, free: 12.95 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002689/0.4491, allocations: 3.984 kB / 0.5983 GB, free: 12.95 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.01265/0.4617, allocations: 4.949 MB / 0.6032 GB, free: 7.938 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/0.4618, allocations: 8.031 kB / 0.6032 GB, free: 7.93 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001439/0.4632, allocations: 0.8196 MB / 0.604 GB, free: 7.102 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01102/0.4742, allocations: 3.176 MB / 0.6071 GB, free: 3.918 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007295/0.4815, allocations: 2.359 MB / 0.6094 GB, free: 1.527 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002678/0.4818, allocations: 234.2 kB / 0.6096 GB, free: 1.297 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000895/0.4827, allocations: 315.7 kB / 0.6099 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02454/0.5072, allocations: 12.08 MB / 0.6217 GB, free: 4.363 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002314/0.5075, allocations: 39.69 kB / 0.6217 GB, free: 4.324 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00133/0.5088, allocations: 151.8 kB / 0.6219 GB, free: 4.176 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006048/0.5148, allocations: 2.831 MB / 0.6247 GB, free: 1.34 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02775/0.5426, allocations: 11.33 MB / 0.6357 GB, free: 5.996 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07406/0.6167, allocations: 39.07 MB / 0.6739 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01259/0.6292, allocations: 4.888 MB / 0.6786 GB, free: 9.047 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004521/0.6338, allocations: 2.779 MB / 0.6814 GB, free: 6.258 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001388/0.6351, allocations: 0.5478 MB / 0.6819 GB, free: 5.711 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.399e-05/0.6352, allocations: 64.48 kB / 0.6819 GB, free: 5.637 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=262): time 5.991e-06/0.6352, allocations: 0 / 0.6819 GB, free: 5.637 MB / 0.5137 GB Notification: Performance of matching and sorting (n=283): time 0.05587/0.6911, allocations: 20.04 MB / 0.7015 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.283e-05/0.6912, allocations: 81.39 kB / 0.7016 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006811/0.698, allocations: 3.214 MB / 0.7047 GB, free: 14.16 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004585/0.6984, allocations: 69.61 kB / 0.7048 GB, free: 14.09 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002927/0.7014, allocations: 3.108 MB / 0.7078 GB, free: 10.95 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002353/0.7037, allocations: 1.066 MB / 0.7089 GB, free: 9.875 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004287/0.708, allocations: 1.203 MB / 0.71 GB, free: 8.66 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002013/0.7082, allocations: 301.1 kB / 0.7103 GB, free: 8.363 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005894/0.7141, allocations: 2.842 MB / 0.7131 GB, free: 5.516 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009094/0.7232, allocations: 6.014 MB / 0.719 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01561/0.7388, allocations: 9.673 MB / 0.7284 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000153/0.739, allocations: 32 kB / 0.7285 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of matching and sorting (n=788) (initialization): time 0.3243/1.063, allocations: 10.02 MB / 0.7382 GB, free: 153.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.071e-05/1.063, allocations: 55.66 kB / 0.7383 GB, free: 153.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001003/1.063, allocations: 107.5 kB / 0.7384 GB, free: 153.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003115/1.066, allocations: 1.364 MB / 0.7397 GB, free: 153 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004049/1.071, allocations: 1.368 MB / 0.7411 GB, free: 152.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007826/1.078, allocations: 7.633 MB / 0.7485 GB, free: 149.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004084/1.082, allocations: 359.1 kB / 0.7489 GB, free: 149 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007004/1.083, allocations: 343.3 kB / 0.7492 GB, free: 148.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.002997/1.086, allocations: 2.301 MB / 0.7514 GB, free: 146.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004678/1.087, allocations: 327.1 kB / 0.7518 GB, free: 146.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008595/1.095, allocations: 6.615 MB / 0.7582 GB, free: 141 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.817e-05/1.095, allocations: 51.92 kB / 0.7583 GB, free: 140.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/1.095, allocations: 4 kB / 0.7583 GB, free: 140.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.139e-05/1.095, allocations: 11.95 kB / 0.7583 GB, free: 140.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01809/1.113, allocations: 13.34 MB / 0.7713 GB, free: 127.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.46e-05/1.113, allocations: 11.56 kB / 0.7713 GB, free: 127.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001734/1.115, allocations: 455.3 kB / 0.7717 GB, free: 127 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002824/1.118, allocations: 1.21 MB / 0.7729 GB, free: 125.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002054/1.118, allocations: 59.92 kB / 0.773 GB, free: 125.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00671/1.125, allocations: 6.849 MB / 0.7797 GB, free: 118.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.125, allocations: 11.94 kB / 0.7797 GB, free: 118.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01119/1.136, allocations: 9.868 MB / 0.7893 GB, free: 109 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007194/1.137, allocations: 289.9 kB / 0.7896 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004247/1.137, allocations: 47.67 kB / 0.7896 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/1.139, allocations: 199.6 kB / 0.7898 GB, free: 108.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003728/1.139, allocations: 170.4 kB / 0.79 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001737/1.139, allocations: 75.98 kB / 0.7901 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002143/1.141, allocations: 1.874 MB / 0.7919 GB, free: 106.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/1.141, allocations: 0 / 0.7919 GB, free: 106.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00369/1.145, allocations: 1.108 MB / 0.793 GB, free: 105.3 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.01138/1.156, allocations: 10.53 MB / 0.8033 GB, free: 94.59 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008256/1.165, allocations: 6.677 MB / 0.8098 GB, free: 87.91 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/1.165, allocations: 3.484 kB / 0.8098 GB, free: 87.91 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00317/1.168, allocations: 2.654 MB / 0.8124 GB, free: 85.24 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002529/1.17, allocations: 423.9 kB / 0.8128 GB, free: 84.84 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05939/1.23, allocations: 49.08 MB / 0.8607 GB, free: 30.79 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004947/1.235, allocations: 3.053 MB / 0.8637 GB, free: 27.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004277/1.239, allocations: 2.2 MB / 0.8658 GB, free: 25.49 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002927/1.242, allocations: 2.061 MB / 0.8679 GB, free: 23.43 MB / 0.5606 GB Notification: Performance of SimCode: time 1.613e-06/1.242, allocations: 0 / 0.8679 GB, free: 23.43 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1466/1.389, allocations: 70.78 MB / 0.937 GB, free: 1.305 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.23/17.62, allocations: 3.859 kB / 0.937 GB, free: 1.301 MB / 0.6075 GB " [Timeout remaining time 642] (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: 21.06680848216638]