Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007729/0.00773, allocations: 100.9 kB / 15.87 MB, free: 6.309 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.001594/0.001594, allocations: 196.2 kB / 16.79 MB, free: 6.238 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.762/1.762, allocations: 205.1 MB / 222.6 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4514/0.4514, allocations: 43.49 MB / 313.5 MB, free: 8.223 MB / 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.001923/0.001924, allocations: 68.33 kB / 382 MB, free: 8.492 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1594/0.1614, allocations: 57.79 MB / 439.8 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3417/0.5031, allocations: 47.05 MB / 486.9 MB, free: 22.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02805/0.5312, allocations: 10.13 MB / 497 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01462/0.5459, allocations: 206.2 kB / 497.2 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00694/0.5529, allocations: 2.719 MB / 499.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007871/0.5608, allocations: 1.892 MB / 0.4901 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002418/0.5633, allocations: 0.8363 MB / 0.4909 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01362/0.5769, allocations: 7.438 MB / 0.4981 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005999/0.5829, allocations: 3.329 MB / 0.5014 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00485/0.5878, allocations: 1.537 MB / 0.5029 GB, free: 8.941 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0082/0.5961, allocations: 2.685 MB / 0.5055 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002592/0.5987, allocations: 268.6 kB / 0.5058 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005771/0.6045, allocations: 1.357 MB / 0.5071 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004881/0.6094, allocations: 2.103 MB / 0.5091 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005818/0.6152, allocations: 2.344 MB / 0.5114 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01345/0.6287, allocations: 7.575 MB / 0.5188 GB, free: 184 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/0.6288, allocations: 3.938 kB / 0.5188 GB, free: 180 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.6288, allocations: 0 / 0.5188 GB, free: 180 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002913/0.6291, allocations: 2.562 kB / 0.5188 GB, free: 180 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01627/0.6454, allocations: 5.528 MB / 0.5242 GB, free: 10.9 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.6454, allocations: 8.031 kB / 0.5242 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01144/0.6569, allocations: 2.475 MB / 0.5267 GB, free: 8.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009523/0.6665, allocations: 3.462 MB / 0.53 GB, free: 4.891 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003347/0.6669, allocations: 242.6 kB / 0.5303 GB, free: 4.652 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001942/0.6688, allocations: 343.5 kB / 0.5306 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02293/0.6918, allocations: 10.88 MB / 0.5412 GB, free: 8.699 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000243/0.6921, allocations: 47.53 kB / 0.5413 GB, free: 8.652 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009168/0.693, allocations: 155.9 kB / 0.5414 GB, free: 8.5 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003466/0.6965, allocations: 1.998 MB / 0.5434 GB, free: 6.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02142/0.7179, allocations: 9.444 MB / 0.5526 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06163/0.7796, allocations: 41.25 MB / 0.5929 GB, free: 2.594 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01074/0.7904, allocations: 4.261 MB / 0.597 GB, free: 14.19 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002987/0.7934, allocations: 1.927 MB / 0.5989 GB, free: 12.26 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01238/0.8058, allocations: 7.622 MB / 0.6064 GB, free: 4.262 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.46e-05/0.806, allocations: 47.56 kB / 0.6064 GB, free: 4.203 MB / 478.1 MB Notification: Performance of pre-optimization done (n=180): time 5.821e-06/0.806, allocations: 0 / 0.6064 GB, free: 4.203 MB / 478.1 MB Notification: Performance of matching and sorting (n=236): time 0.4468/1.253, allocations: 40.97 MB / 0.6464 GB, free: 139.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/1.253, allocations: 205.6 kB / 0.6466 GB, free: 138.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007784/1.261, allocations: 4.335 MB / 0.6508 GB, free: 137.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007901/1.262, allocations: 57.14 kB / 0.6509 GB, free: 137.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002781/1.264, allocations: 3.168 MB / 0.654 GB, free: 134.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001564/1.266, allocations: 0.8836 MB / 0.6549 GB, free: 134.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002613/1.269, allocations: 1.352 MB / 0.6562 GB, free: 133.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/1.269, allocations: 303.1 kB / 0.6565 GB, free: 133.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008075/1.277, allocations: 3.628 MB / 0.66 GB, free: 131.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009718/1.286, allocations: 7.296 MB / 0.6671 GB, free: 125.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01735/1.304, allocations: 11.63 MB / 0.6785 GB, free: 117.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002197/1.304, allocations: 35.75 kB / 0.6785 GB, free: 117.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04226/1.346, allocations: 16.21 MB / 0.6944 GB, free: 111.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002382/1.347, allocations: 60.78 kB / 0.6944 GB, free: 111.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002828/1.347, allocations: 127.7 kB / 0.6945 GB, free: 111.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02172/1.369, allocations: 6.227 MB / 0.7006 GB, free: 105.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005489/1.374, allocations: 1.497 MB / 0.7021 GB, free: 104.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03019/1.404, allocations: 26.14 MB / 0.7276 GB, free: 77.98 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007211/1.412, allocations: 411.4 kB / 0.728 GB, free: 77.58 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001529/1.413, allocations: 388 kB / 0.7284 GB, free: 77.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (779): * Single equations (assignments): 774 * Array equations: 3 * 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 {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005016/1.418, allocations: 2.22 MB / 0.7305 GB, free: 74.97 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001064/1.419, allocations: 402.9 kB / 0.7309 GB, free: 74.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02494/1.444, allocations: 11.29 MB / 0.7419 GB, free: 63.25 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.536e-05/1.444, allocations: 35.52 kB / 0.742 GB, free: 63.22 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.066e-05/1.444, allocations: 8 kB / 0.742 GB, free: 63.21 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.132e-05/1.444, allocations: 13.03 kB / 0.742 GB, free: 63.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03868/1.483, allocations: 20.71 MB / 0.7622 GB, free: 42.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.109e-05/1.483, allocations: 4 kB / 0.7622 GB, free: 42.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002051/1.485, allocations: 387.4 kB / 0.7626 GB, free: 41.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01837/1.504, allocations: 5.305 MB / 0.7678 GB, free: 36.39 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006518/1.504, allocations: 46.5 kB / 0.7678 GB, free: 36.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02367/1.528, allocations: 21.21 MB / 0.7885 GB, free: 14.87 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/1.528, allocations: 12.03 kB / 0.7885 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02828/1.556, allocations: 14.6 MB / 0.8028 GB, free: 172 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003375/1.56, allocations: 0.9803 MB / 0.8038 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001644/1.562, allocations: 47.94 kB / 0.8038 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002973/1.565, allocations: 175.7 kB / 0.804 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000754/1.565, allocations: 161 kB / 0.8041 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002254/1.566, allocations: 64 kB / 0.8042 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005046/1.571, allocations: 2.729 MB / 0.8068 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/1.571, allocations: 0 / 0.8068 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00878/1.579, allocations: 1.373 MB / 0.8082 GB, free: 10.62 MB / 0.4981 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000741/1.58, allocations: 190.2 kB / 0.8084 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.2399/1.82, allocations: 8.311 MB / 0.8165 GB, free: 148.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/1.82, allocations: 1.031 kB / 0.8165 GB, free: 148.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004296/1.824, allocations: 3.209 MB / 0.8196 GB, free: 147.6 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003971/1.828, allocations: 496.5 kB / 0.8201 GB, free: 147.4 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02326/1.852, allocations: 14.08 MB / 0.8338 GB, free: 140.2 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005086/1.857, allocations: 3.52 MB / 0.8373 GB, free: 138.9 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005772/1.863, allocations: 1.96 MB / 0.8392 GB, free: 138.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/1.864, allocations: 264.6 kB / 0.8394 GB, free: 138.8 MB / 0.4981 GB Notification: Performance of SimCode: time 1.202e-06/1.864, allocations: 3.938 kB / 0.8395 GB, free: 138.8 MB / 0.4981 GB Notification: Performance of Templates: time 0.1064/1.97, allocations: 67.56 MB / 0.9054 GB, free: 95.15 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches