Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 103 kB / 16.41 MB, free: 6.457 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.001164/0.001164, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.542/1.542, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2228/0.2228, allocations: 43.52 MB / 314.1 MB, free: 456 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.001409/0.001409, allocations: 63.91 kB / 441.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.153, allocations: 57.78 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01676/0.1698, allocations: 15.1 MB / 0.5026 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.1819, allocations: 4.819 MB / 0.5073 GB, free: 7.789 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003387/0.1853, allocations: 91.75 kB / 0.5074 GB, free: 7.699 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006331/0.1917, allocations: 3.165 MB / 0.5105 GB, free: 4.523 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008206/0.1999, allocations: 2.564 MB / 0.513 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00267/0.2026, allocations: 0.9866 MB / 0.514 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01077/0.2134, allocations: 6.647 MB / 0.5205 GB, free: 10.3 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007281/0.2207, allocations: 4.377 MB / 0.5247 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005328/0.2261, allocations: 2.25 MB / 0.5269 GB, free: 3.59 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006027/0.2322, allocations: 3.248 MB / 0.5301 GB, free: 340 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.3232/0.5554, allocations: 490.8 kB / 0.5306 GB, free: 11.63 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005529/0.561, allocations: 1.482 MB / 0.532 GB, free: 11.63 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005302/0.5663, allocations: 2.875 MB / 0.5348 GB, free: 11.63 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01249/0.5789, allocations: 3.26 MB / 0.538 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02313/0.602, allocations: 10.5 MB / 0.5483 GB, free: 8.898 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.15e-05/0.6021, allocations: 1.094 kB / 0.5483 GB, free: 8.898 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.6021, allocations: 0 / 0.5483 GB, free: 8.898 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006684/0.6028, allocations: 0 / 0.5483 GB, free: 8.898 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.03158/0.6344, allocations: 7.511 MB / 0.5556 GB, free: 6.008 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.6344, allocations: 16.08 kB / 0.5556 GB, free: 6.004 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02027/0.6547, allocations: 3.964 MB / 0.5595 GB, free: 5.457 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01475/0.6695, allocations: 4.312 MB / 0.5637 GB, free: 3.117 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003972/0.67, allocations: 314.9 kB / 0.564 GB, free: 3.023 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004167/0.6742, allocations: 438.6 kB / 0.5644 GB, free: 2.922 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03986/0.714, allocations: 15.73 MB / 0.5798 GB, free: 9.328 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002539/0.7144, allocations: 58.48 kB / 0.5798 GB, free: 9.297 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001378/0.7158, allocations: 201.6 kB / 0.58 GB, free: 9.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005871/0.7216, allocations: 3.216 MB / 0.5832 GB, free: 5.98 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03626/0.7579, allocations: 14.17 MB / 0.597 GB, free: 8.035 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1032/0.8612, allocations: 57.6 MB / 0.6533 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01568/0.8769, allocations: 6.605 MB / 0.6597 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006281/0.8832, allocations: 3.761 MB / 0.6634 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0274/0.9106, allocations: 14.8 MB / 0.6778 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.258e-05/0.9108, allocations: 63 kB / 0.6779 GB, free: 3.836 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=292): time 8.757e-06/0.9108, allocations: 3.938 kB / 0.6779 GB, free: 3.832 MB / 0.5137 GB Notification: Performance of matching and sorting (n=342): time 0.1561/1.067, allocations: 42.88 MB / 0.7198 GB, free: 9.055 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/1.067, allocations: 213.3 kB / 0.72 GB, free: 8.805 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01014/1.077, allocations: 5.503 MB / 0.7254 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001284/1.079, allocations: 73.7 kB / 0.7254 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003896/1.082, allocations: 4.524 MB / 0.7298 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002458/1.085, allocations: 1.327 MB / 0.7311 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003496/1.088, allocations: 1.876 MB / 0.733 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001044/1.089, allocations: 304.9 kB / 0.7333 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008489/1.097, allocations: 4.835 MB / 0.738 GB, free: 6.398 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01628/1.113, allocations: 9.826 MB / 0.7476 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3763/1.49, allocations: 15.62 MB / 0.7628 GB, free: 196.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002871/1.49, allocations: 50 kB / 0.7629 GB, free: 196.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.05937/1.549, allocations: 19.64 MB / 0.7821 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/1.55, allocations: 79.84 kB / 0.7821 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002105/1.55, allocations: 173.1 kB / 0.7823 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02242/1.572, allocations: 5.939 MB / 0.7881 GB, free: 191.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008394/1.581, allocations: 2.123 MB / 0.7902 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0298/1.611, allocations: 26.16 MB / 0.8157 GB, free: 170.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009845/1.62, allocations: 0.5596 MB / 0.8163 GB, free: 169.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002375/1.623, allocations: 0.5144 MB / 0.8168 GB, free: 169.3 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1099): * Single equations (assignments): 1091 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009235/1.632, allocations: 3.105 MB / 0.8198 GB, free: 166.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002004/1.634, allocations: 0.5174 MB / 0.8203 GB, free: 166.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03071/1.665, allocations: 13.01 MB / 0.833 GB, free: 153 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001555/1.665, allocations: 55.98 kB / 0.8331 GB, free: 153 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.113e-05/1.665, allocations: 8 kB / 0.8331 GB, free: 153 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001096/1.665, allocations: 11.95 kB / 0.8331 GB, free: 152.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05105/1.716, allocations: 24.63 MB / 0.8571 GB, free: 127.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.417e-05/1.716, allocations: 4.594 kB / 0.8571 GB, free: 127.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003403/1.72, allocations: 0.5889 MB / 0.8577 GB, free: 127.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0191/1.739, allocations: 4.965 MB / 0.8626 GB, free: 122.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00133/1.74, allocations: 53.17 kB / 0.8626 GB, free: 122.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02381/1.764, allocations: 21.38 MB / 0.8835 GB, free: 100.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/1.764, allocations: 8.062 kB / 0.8835 GB, free: 100.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03464/1.799, allocations: 17.61 MB / 0.9007 GB, free: 83.04 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004144/1.803, allocations: 1.278 MB / 0.9019 GB, free: 81.74 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001997/1.805, allocations: 52 kB / 0.902 GB, free: 81.69 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00392/1.809, allocations: 268.6 kB / 0.9023 GB, free: 81.43 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008037/1.81, allocations: 196 kB / 0.9024 GB, free: 81.23 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003033/1.81, allocations: 88.92 kB / 0.9025 GB, free: 81.15 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006527/1.817, allocations: 3.414 MB / 0.9059 GB, free: 77.75 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.61e-07/1.817, allocations: 0 / 0.9059 GB, free: 77.75 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0116/1.828, allocations: 1.767 MB / 0.9076 GB, free: 75.99 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * 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 (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009893/1.829, allocations: 209.7 kB / 0.9078 GB, free: 75.78 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01601/1.845, allocations: 11.05 MB / 0.9186 GB, free: 64.74 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.456e-05/1.845, allocations: 0 / 0.9186 GB, free: 64.74 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005568/1.851, allocations: 4.135 MB / 0.9226 GB, free: 60.59 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004902/1.856, allocations: 0.6169 MB / 0.9232 GB, free: 59.99 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02906/1.885, allocations: 16.32 MB / 0.9391 GB, free: 43.57 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006314/1.891, allocations: 4.64 MB / 0.9437 GB, free: 38.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006733/1.898, allocations: 2.982 MB / 0.9466 GB, free: 35.91 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001722/1.9, allocations: 347.4 kB / 0.9469 GB, free: 35.57 MB / 0.5919 GB Notification: Performance of SimCode: time 1.643e-06/1.9, allocations: 0 / 0.9469 GB, free: 35.57 MB / 0.5919 GB Notification: Performance of Templates: time 0.4655/2.365, allocations: 77.22 MB / 1.022 GB, free: 176.9 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches