Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001344, allocations: 194.4 kB / 16.78 MB, free: 4.918 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 226.5 MB / 244.1 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007409/0.0007406, allocations: 102 kB / 296.1 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3102/0.3102, allocations: 44.82 MB / 392.9 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003114/0.0003115, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3289, allocations: 62.94 MB / 0.5165 GB, free: 37 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1313/0.4602, allocations: 112.2 MB / 0.626 GB, free: 9.109 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.4605, allocations: 79.97 kB / 0.6261 GB, free: 9.031 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5481/1.009, allocations: 127.9 MB / 0.751 GB, free: 88.7 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.038e-06/1.009, allocations: 0 / 0.751 GB, free: 88.7 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003756/1.009, allocations: 116.8 kB / 0.7511 GB, free: 88.69 MB / 490.7 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.02139/1.03, allocations: 6.564 MB / 0.7575 GB, free: 84.38 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/1.03, allocations: 11.66 kB / 0.7575 GB, free: 84.38 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02644/1.057, allocations: 6.67 MB / 0.764 GB, free: 78.95 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0177/1.075, allocations: 5.742 MB / 0.7696 GB, free: 73.14 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006849/1.075, allocations: 452.1 kB / 0.7701 GB, free: 72.7 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004346/1.08, allocations: 0.586 MB / 0.7706 GB, free: 72.12 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03558/1.115, allocations: 15.61 MB / 0.7859 GB, free: 55.34 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004561/1.116, allocations: 75.28 kB / 0.786 GB, free: 55.27 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003374/1.119, allocations: 287.8 kB / 0.7862 GB, free: 54.98 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002445/1.122, allocations: 1.624 MB / 0.7878 GB, free: 53.36 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02833/1.15, allocations: 13.84 MB / 0.8013 GB, free: 39.49 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0863/1.236, allocations: 63.96 MB / 0.8638 GB, free: 5.652 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01469/1.251, allocations: 6.381 MB / 0.87 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005529/1.257, allocations: 3.564 MB / 0.8735 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3456/1.602, allocations: 14.31 MB / 0.8875 GB, free: 128.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.429e-05/1.602, allocations: 62.62 kB / 0.8875 GB, free: 128.3 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=289): time 5.03e-06/1.602, allocations: 1.859 kB / 0.8875 GB, free: 128.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=339): time 0.1404/1.743, allocations: 41.42 MB / 0.928 GB, free: 125 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.307e-05/1.743, allocations: 219.8 kB / 0.9282 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01024/1.753, allocations: 5.408 MB / 0.9335 GB, free: 123.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001051/1.754, allocations: 75.3 kB / 0.9336 GB, free: 123.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003519/1.758, allocations: 4.424 MB / 0.9379 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001893/1.76, allocations: 1.253 MB / 0.9391 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001356/1.761, allocations: 170.1 kB / 0.9393 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0009565/1.762, allocations: 0.6835 MB / 0.9399 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007085/1.769, allocations: 4.565 MB / 0.9444 GB, free: 117 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01099/1.78, allocations: 9.552 MB / 0.9537 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01938/1.8, allocations: 15.2 MB / 0.9686 GB, free: 97.68 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003277/1.8, allocations: 50.25 kB / 0.9686 GB, free: 97.68 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.0434/1.844, allocations: 18.74 MB / 0.9869 GB, free: 84.34 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003123/1.844, allocations: 83.94 kB / 0.987 GB, free: 84.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000432/1.844, allocations: 172 kB / 0.9871 GB, free: 84.09 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01945/1.864, allocations: 5.613 MB / 0.9926 GB, free: 80.72 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007886/1.872, allocations: 2.058 MB / 0.9946 GB, free: 78.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02747/1.899, allocations: 23.68 MB / 1.018 GB, free: 55.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008593/1.908, allocations: 0.5344 MB / 1.018 GB, free: 54.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002269/1.91, allocations: 0.5023 MB / 1.019 GB, free: 54.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 793 * 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 (1061): * Single equations (assignments): 1053 * 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.008706/1.919, allocations: 3.092 MB / 1.022 GB, free: 51.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001743/1.921, allocations: 0.5046 MB / 1.022 GB, free: 50.79 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02872/1.95, allocations: 12.43 MB / 1.034 GB, free: 38.29 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.382e-05/1.95, allocations: 56.84 kB / 1.034 GB, free: 38.24 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.499e-05/1.95, allocations: 8 kB / 1.034 GB, free: 38.23 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.081e-05/1.95, allocations: 15.94 kB / 1.035 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05082/2.001, allocations: 24.02 MB / 1.058 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.234e-05/2.001, allocations: 8.062 kB / 1.058 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003072/2.004, allocations: 0.5772 MB / 1.059 GB, free: 13.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01607/2.02, allocations: 4.643 MB / 1.063 GB, free: 8.48 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008741/2.021, allocations: 57.31 kB / 1.063 GB, free: 8.426 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02399/2.045, allocations: 18.95 MB / 1.082 GB, free: 5.211 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.096e-05/2.045, allocations: 4 kB / 1.082 GB, free: 5.207 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.345/2.39, allocations: 16.77 MB / 1.098 GB, free: 131.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001897/2.392, allocations: 0.5294 MB / 1.099 GB, free: 131.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001747/2.394, allocations: 61.77 kB / 1.099 GB, free: 131.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003706/2.397, allocations: 244.8 kB / 1.099 GB, free: 131.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00105/2.398, allocations: 199.4 kB / 1.099 GB, free: 131.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003394/2.399, allocations: 91.53 kB / 1.099 GB, free: 131.2 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.006661/2.405, allocations: 3.35 MB / 1.102 GB, free: 131 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.91e-07/2.406, allocations: 3.219 kB / 1.102 GB, free: 131 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0107/2.416, allocations: 1.71 MB / 1.104 GB, free: 131 MB / 0.5417 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 (254): * Single equations (assignments): 246 * 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.00122/2.417, allocations: 221.5 kB / 1.104 GB, free: 131 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01976/2.437, allocations: 10.51 MB / 1.115 GB, free: 130.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.809e-05/2.437, allocations: 0.875 kB / 1.115 GB, free: 130.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00674/2.444, allocations: 3.991 MB / 1.118 GB, free: 128.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009809/2.454, allocations: 0.619 MB / 1.119 GB, free: 128.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0343/2.488, allocations: 19.11 MB / 1.138 GB, free: 118.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008883/2.497, allocations: 4.64 MB / 1.142 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002314/2.5, allocations: 418.2 kB / 1.143 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of SimCode: time 9.82e-07/2.5, allocations: 0 / 1.143 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of Templates: time 0.4572/2.957, allocations: 148.5 MB / 1.288 GB, free: 147.2 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches