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.000982/0.0009824, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001506/0.001507, allocations: 178.3 kB / 16.58 MB, free: 6.84 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.853/1.853, allocations: 205.4 MB / 222.8 MB, free: 5.879 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.4269/0.4269, allocations: 43.58 MB / 314.6 MB, free: 8.641 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.0005976/0.0005979, allocations: 12 kB / 383.9 MB, free: 8.035 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.1501, allocations: 58.87 MB / 442.8 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3544/0.5046, allocations: 48.46 MB / 491.3 MB, free: 20.63 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0286/0.5333, allocations: 10.64 MB / 0.4902 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01263/0.546, allocations: 229.9 kB / 0.4904 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009386/0.5554, allocations: 2.507 MB / 0.4928 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02795/0.5834, allocations: 7.588 MB / 0.5002 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00504/0.5884, allocations: 0.865 MB / 0.5011 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.051/0.6395, allocations: 36.62 MB / 0.5368 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01048/0.65, allocations: 5.13 MB / 0.5418 GB, free: 10.75 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005607/0.6557, allocations: 1.899 MB / 0.5437 GB, free: 8.84 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006435/0.6621, allocations: 3.135 MB / 0.5468 GB, free: 5.695 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002034/0.6642, allocations: 236 kB / 0.547 GB, free: 5.465 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004355/0.6686, allocations: 1.12 MB / 0.5481 GB, free: 4.344 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004995/0.6736, allocations: 2.579 MB / 0.5506 GB, free: 1.758 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00305/0.6767, allocations: 1.189 MB / 0.5518 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01254/0.6893, allocations: 7.981 MB / 0.5596 GB, free: 8.559 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.6893, allocations: 0 / 0.5596 GB, free: 8.559 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6893, allocations: 0 / 0.5596 GB, free: 8.559 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004669/0.6898, allocations: 0 / 0.5596 GB, free: 8.559 MB / 430.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.01875/0.7085, allocations: 6.173 MB / 0.5656 GB, free: 2.305 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.7086, allocations: 8.562 kB / 0.5656 GB, free: 2.297 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01575/0.7244, allocations: 4.024 MB / 0.5695 GB, free: 14.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/0.7352, allocations: 4.156 MB / 0.5736 GB, free: 10.04 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002866/0.7355, allocations: 320 kB / 0.5739 GB, free: 9.727 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001798/0.7373, allocations: 431.6 kB / 0.5743 GB, free: 9.305 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0301/0.7674, allocations: 15.73 MB / 0.5897 GB, free: 8.648 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001677/0.7676, allocations: 59.47 kB / 0.5897 GB, free: 8.59 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005882/0.7682, allocations: 203.8 kB / 0.5899 GB, free: 8.391 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004952/0.7732, allocations: 3.22 MB / 0.5931 GB, free: 5.168 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03027/0.8035, allocations: 14.12 MB / 0.6068 GB, free: 7.02 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4197/1.223, allocations: 57.78 MB / 0.6633 GB, free: 100.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01272/1.236, allocations: 6.589 MB / 0.6697 GB, free: 99.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004693/1.241, allocations: 3.753 MB / 0.6734 GB, free: 98.38 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02471/1.265, allocations: 14.78 MB / 0.6878 GB, free: 90.89 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.884e-05/1.266, allocations: 62.19 kB / 0.6879 GB, free: 90.83 MB / 494.1 MB Notification: Performance of pre-optimization done (n=292): time 6.732e-06/1.266, allocations: 0 / 0.6879 GB, free: 90.83 MB / 494.1 MB Notification: Performance of matching and sorting (n=342): time 0.1375/1.403, allocations: 42.78 MB / 0.7296 GB, free: 73.57 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/1.403, allocations: 214 kB / 0.7298 GB, free: 73.32 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008777/1.412, allocations: 5.459 MB / 0.7352 GB, free: 67.88 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001194/1.413, allocations: 73.7 kB / 0.7352 GB, free: 67.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002931/1.416, allocations: 4.346 MB / 0.7395 GB, free: 63.46 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001929/1.418, allocations: 1.263 MB / 0.7407 GB, free: 62.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005136/1.419, allocations: 180 kB / 0.7409 GB, free: 62.03 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003978/1.419, allocations: 0.6983 MB / 0.7416 GB, free: 61.32 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005931/1.425, allocations: 4.8 MB / 0.7463 GB, free: 56.51 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008305/1.433, allocations: 9.796 MB / 0.7558 GB, free: 44.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008834/1.442, allocations: 6.686 MB / 0.7624 GB, free: 37.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001238/1.442, allocations: 55.95 kB / 0.7624 GB, free: 37.51 MB / 494.1 MB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04294/1.485, allocations: 19.56 MB / 0.7815 GB, free: 17.91 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002566/1.486, allocations: 80 kB / 0.7816 GB, free: 17.83 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004402/1.486, allocations: 176 kB / 0.7818 GB, free: 17.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01969/1.506, allocations: 5.99 MB / 0.7876 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008115/1.514, allocations: 2.133 MB / 0.7897 GB, free: 9.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03395/1.548, allocations: 24.78 MB / 0.8139 GB, free: 484 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01108/1.559, allocations: 0.5671 MB / 0.8144 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003114/1.562, allocations: 0.5116 MB / 0.8149 GB, free: 15.39 MB / 0.5137 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01052/1.573, allocations: 3.094 MB / 0.818 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002186/1.575, allocations: 0.4974 MB / 0.8184 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3737/1.949, allocations: 13.01 MB / 0.8312 GB, free: 154.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001179/1.949, allocations: 52.3 kB / 0.8312 GB, free: 154.8 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.446e-05/1.949, allocations: 12.88 kB / 0.8312 GB, free: 154.8 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.483e-05/1.949, allocations: 13.08 kB / 0.8312 GB, free: 154.8 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05227/2.001, allocations: 24.74 MB / 0.8554 GB, free: 148.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.034e-05/2.001, allocations: 6.531 kB / 0.8554 GB, free: 148.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003528/2.005, allocations: 0.5834 MB / 0.856 GB, free: 148.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01968/2.025, allocations: 4.997 MB / 0.8608 GB, free: 147.9 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001293/2.026, allocations: 63.97 kB / 0.8609 GB, free: 147.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03081/2.057, allocations: 19.97 MB / 0.8804 GB, free: 138.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/2.057, allocations: 6.75 kB / 0.8804 GB, free: 138.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03565/2.093, allocations: 17.57 MB / 0.8976 GB, free: 130.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004166/2.097, allocations: 1.267 MB / 0.8988 GB, free: 129.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001757/2.099, allocations: 58.23 kB / 0.8989 GB, free: 129.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003521/2.102, allocations: 262.8 kB / 0.8991 GB, free: 129.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007044/2.103, allocations: 196 kB / 0.8993 GB, free: 129.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002884/2.103, allocations: 83.66 kB / 0.8994 GB, free: 129.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00552/2.109, allocations: 3.388 MB / 0.9027 GB, free: 127.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.8e-07/2.109, allocations: 0 / 0.9027 GB, free: 127.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01058/2.119, allocations: 1.768 MB / 0.9044 GB, free: 127 MB / 0.5137 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001815/2.121, allocations: 211.1 kB / 0.9046 GB, free: 126.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02095/2.142, allocations: 10.95 MB / 0.9153 GB, free: 116 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.591e-05/2.142, allocations: 0 / 0.9153 GB, free: 116 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006361/2.148, allocations: 4.123 MB / 0.9193 GB, free: 111.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007517/2.156, allocations: 0.6054 MB / 0.9199 GB, free: 111.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03618/2.192, allocations: 18.68 MB / 0.9382 GB, free: 92.65 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006705/2.199, allocations: 4.633 MB / 0.9427 GB, free: 87.98 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007216/2.206, allocations: 2.982 MB / 0.9456 GB, free: 85 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001511/2.208, allocations: 355.4 kB / 0.946 GB, free: 84.65 MB / 0.5137 GB Notification: Performance of SimCode: time 2.214e-06/2.208, allocations: 0 / 0.946 GB, free: 84.65 MB / 0.5137 GB Notification: Performance of Templates: time 0.3886/2.596, allocations: 75.55 MB / 1.02 GB, free: 147.3 MB / 0.5137 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","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches