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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 113.1 kB / 17.33 MB, free: 6.02 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.001812/0.001812, allocations: 197.3 kB / 18.25 MB, free: 5.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2261/0.2261, allocations: 44.18 MB / 336.2 MB, free: 2.969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 72.75 kB / 408 MB, free: 27.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1298, allocations: 60.82 MB / 468.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Universal): time 0.03794/0.1678, allocations: 41.39 MB / 0.4983 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2908/0.4587, allocations: 8.749 MB / 0.5068 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01044/0.4691, allocations: 168.5 kB / 0.507 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004838/0.474, allocations: 1.873 MB / 0.5088 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006093/0.4802, allocations: 1.789 MB / 0.5105 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001643/0.4819, allocations: 0.5201 MB / 0.511 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006778/0.4886, allocations: 4.032 MB / 0.515 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004429/0.4931, allocations: 3.006 MB / 0.5179 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00252/0.4956, allocations: 1.459 MB / 0.5193 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002852/0.4985, allocations: 2.208 MB / 0.5215 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007085/0.4992, allocations: 305 kB / 0.5218 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002418/0.5016, allocations: 1.041 MB / 0.5228 GB, free: 8.926 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001971/0.5036, allocations: 1.904 MB / 0.5247 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002048/0.5057, allocations: 2.275 MB / 0.5269 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006644/0.5123, allocations: 7.1 MB / 0.5338 GB, free: 1.867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.5124, allocations: 0 / 0.5338 GB, free: 1.867 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5124, allocations: 0 / 0.5338 GB, free: 1.867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000144/0.5125, allocations: 0 / 0.5338 GB, free: 1.867 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.008726/0.5213, allocations: 4.907 MB / 0.5386 GB, free: 14.55 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.5213, allocations: 9.938 kB / 0.5386 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001062/0.5224, allocations: 0.8173 MB / 0.5394 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01069/0.5331, allocations: 3.148 MB / 0.5425 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004951/0.5381, allocations: 2.487 MB / 0.5449 GB, free: 9.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/0.5383, allocations: 239.6 kB / 0.5451 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000676/0.5389, allocations: 305.2 kB / 0.5454 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02003/0.559, allocations: 12.09 MB / 0.5572 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000141/0.5591, allocations: 29.31 kB / 0.5573 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007282/0.5599, allocations: 143.7 kB / 0.5574 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004879/0.5648, allocations: 2.835 MB / 0.5602 GB, free: 9.871 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02203/0.5868, allocations: 11.36 MB / 0.5713 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05554/0.6424, allocations: 41.28 MB / 0.6116 GB, free: 4.574 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/0.6535, allocations: 6.067 MB / 0.6175 GB, free: 14.28 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004011/0.6576, allocations: 3.01 MB / 0.6205 GB, free: 11.27 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001619/0.6592, allocations: 1.887 MB / 0.6223 GB, free: 9.059 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.6592, allocations: 56.56 kB / 0.6223 GB, free: 8.996 MB / 478.1 MB Notification: Performance of pre-optimization done (n=262): time 4.428e-06/0.6593, allocations: 0 / 0.6223 GB, free: 8.996 MB / 478.1 MB Notification: Performance of matching and sorting (n=283): time 0.04648/0.7057, allocations: 20.14 MB / 0.642 GB, free: 4.691 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.7058, allocations: 77.41 kB / 0.6421 GB, free: 4.602 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004205/0.7101, allocations: 3.039 MB / 0.6451 GB, free: 1.543 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003841/0.7105, allocations: 65.7 kB / 0.6451 GB, free: 1.473 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001937/0.7124, allocations: 2.977 MB / 0.648 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001185/0.7136, allocations: 1.025 MB / 0.649 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001682/0.7153, allocations: 1.194 MB / 0.6502 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.7154, allocations: 301.1 kB / 0.6505 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003981/0.7194, allocations: 2.842 MB / 0.6533 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006144/0.7255, allocations: 6.025 MB / 0.6591 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0118/0.7374, allocations: 9.658 MB / 0.6686 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.117e-05/0.7375, allocations: 32 kB / 0.6686 GB, free: 6.336 MB / 0.5137 GB Notification: Performance of matching and sorting (n=788) (initialization): time 0.01906/0.7565, allocations: 10.02 MB / 0.6784 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/0.7567, allocations: 52 kB / 0.6784 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002298/0.757, allocations: 111.9 kB / 0.6785 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00376/0.7607, allocations: 1.37 MB / 0.6799 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005101/0.7659, allocations: 1.369 MB / 0.6812 GB, free: 9.398 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/0.7763, allocations: 7.821 MB / 0.6889 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004564/0.7809, allocations: 371.6 kB / 0.6892 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001197/0.7821, allocations: 340 kB / 0.6895 GB, free: 0.7461 MB / 0.5294 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.004944/0.7871, allocations: 2.293 MB / 0.6918 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007868/0.7879, allocations: 304.1 kB / 0.6921 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01138/0.7993, allocations: 6.63 MB / 0.6985 GB, free: 7.457 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.46e-05/0.7994, allocations: 47.98 kB / 0.6986 GB, free: 7.41 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.7994, allocations: 7.938 kB / 0.6986 GB, free: 7.402 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.521e-05/0.7994, allocations: 11.97 kB / 0.6986 GB, free: 7.391 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2799/1.079, allocations: 14.02 MB / 0.7123 GB, free: 200 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.788e-05/1.079, allocations: 7.797 kB / 0.7123 GB, free: 200 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001983/1.081, allocations: 459.1 kB / 0.7127 GB, free: 200 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004005/1.085, allocations: 1.209 MB / 0.7139 GB, free: 199.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000306/1.086, allocations: 53.28 kB / 0.714 GB, free: 199.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009345/1.095, allocations: 6.966 MB / 0.7208 GB, free: 196.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.868e-06/1.095, allocations: 13.25 kB / 0.7208 GB, free: 196.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01536/1.11, allocations: 9.861 MB / 0.7304 GB, free: 192.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009589/1.111, allocations: 350.9 kB / 0.7308 GB, free: 192.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004469/1.112, allocations: 54.69 kB / 0.7308 GB, free: 192.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/1.113, allocations: 189.2 kB / 0.731 GB, free: 192.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005437/1.114, allocations: 163.1 kB / 0.7311 GB, free: 192.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002125/1.114, allocations: 74.44 kB / 0.7312 GB, free: 192.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002668/1.117, allocations: 1.882 MB / 0.733 GB, free: 191.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.91e-07/1.117, allocations: 3.719 kB / 0.7331 GB, free: 191.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005095/1.122, allocations: 1.128 MB / 0.7342 GB, free: 191.8 MB / 0.545 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.01235/1.134, allocations: 10.51 MB / 0.7444 GB, free: 187.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0171/1.151, allocations: 11.99 MB / 0.7561 GB, free: 176 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/1.152, allocations: 0 / 0.7561 GB, free: 176 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003423/1.155, allocations: 2.862 MB / 0.7589 GB, free: 173.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002533/1.157, allocations: 420.3 kB / 0.7593 GB, free: 172.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06473/1.222, allocations: 55.02 MB / 0.8131 GB, free: 111.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003343/1.226, allocations: 3.582 MB / 0.8166 GB, free: 108 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004386/1.23, allocations: 2.2 MB / 0.8187 GB, free: 105.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002466/1.233, allocations: 2.065 MB / 0.8207 GB, free: 103.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.062e-06/1.233, allocations: 0 / 0.8207 GB, free: 103.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09305/1.326, allocations: 73.18 MB / 0.8922 GB, free: 30.89 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/1.326, allocations: 215.2 kB / 0.8924 GB, free: 30.64 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.565/4.891, allocations: 0 / 0.8924 GB, free: 30.64 MB / 0.545 GB (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 --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) 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) Reference file matches