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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001397/0.001397, allocations: 172.8 kB / 8 MB, free: 1.074 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.545/1.545, allocations: 205.3 MB / 213.7 MB, free: 1.66 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009003/0.0009, allocations: 86.16 kB / 261.8 MB, free: 1.609 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2137/0.2137, allocations: 43.49 MB / 353.2 MB, free: 276 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.351e-05/1.353e-05, allocations: 0 / 418.3 MB, free: 28.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1162, allocations: 58.85 MB / 477.1 MB, free: 1.645 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4345/0.5507, allocations: 108.7 MB / 0.5721 GB, free: 3.082 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.551, allocations: 73.97 kB / 0.5721 GB, free: 3.047 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.313/0.864, allocations: 124.6 MB / 0.6938 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.645e-06/0.8641, allocations: 4 kB / 0.6938 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003287/0.8644, allocations: 116 kB / 0.6939 GB, free: 14.03 MB / 0.4948 GB 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.02259/0.887, allocations: 6.325 MB / 0.7001 GB, free: 7.633 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.615e-05/0.8871, allocations: 8.031 kB / 0.7001 GB, free: 7.625 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4097/1.297, allocations: 8.317 MB / 0.7082 GB, free: 106.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02249/1.319, allocations: 7.37 MB / 0.7154 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004804/1.32, allocations: 191.4 kB / 0.7156 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003748/1.324, allocations: 351 kB / 0.7159 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0216/1.345, allocations: 10.17 MB / 0.7258 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03155/1.377, allocations: 14.09 MB / 0.7396 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002565/1.377, allocations: 70.19 kB / 0.7397 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009278/1.378, allocations: 37.12 kB / 0.7397 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002022/1.38, allocations: 1.629 MB / 0.7413 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07483/1.455, allocations: 61.5 MB / 0.8014 GB, free: 64.34 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006432/1.461, allocations: 5.599 MB / 0.8068 GB, free: 61.35 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004073/1.466, allocations: 3.435 MB / 0.8102 GB, free: 59.94 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02063/1.486, allocations: 14.14 MB / 0.824 GB, free: 52.77 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.767e-05/1.486, allocations: 55.62 kB / 0.824 GB, free: 52.71 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=289): time 8.927e-06/1.486, allocations: 0 / 0.824 GB, free: 52.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=339): time 0.06588/1.552, allocations: 30.95 MB / 0.8543 GB, free: 29.57 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.05e-05/1.552, allocations: 213.4 kB / 0.8545 GB, free: 29.32 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006822/1.559, allocations: 4.296 MB / 0.8587 GB, free: 25.57 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.00107/1.56, allocations: 29.7 kB / 0.8587 GB, free: 25.54 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002612/1.563, allocations: 4.522 MB / 0.8631 GB, free: 21.43 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001769/1.565, allocations: 1.218 MB / 0.8643 GB, free: 20.33 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005202/1.565, allocations: 0 / 0.8643 GB, free: 20.33 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004652/1.566, allocations: 0.6921 MB / 0.865 GB, free: 19.74 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004745/1.571, allocations: 4.399 MB / 0.8693 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006775/1.577, allocations: 9.592 MB / 0.8786 GB, free: 4.285 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008272/1.586, allocations: 6.407 MB / 0.8849 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001614/1.586, allocations: 59.95 kB / 0.8849 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.04511/1.631, allocations: 17.7 MB / 0.9022 GB, free: 296 kB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001506/1.631, allocations: 84 kB / 0.9023 GB, free: 212 kB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002596/1.631, allocations: 192 kB / 0.9025 GB, free: 24 kB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3687/2, allocations: 5.619 MB / 0.908 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008588/2.009, allocations: 2.151 MB / 0.9101 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02714/2.036, allocations: 21.62 MB / 0.9312 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007512/2.044, allocations: 388.4 kB / 0.9316 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001144/2.045, allocations: 0.5291 MB / 0.9321 GB, free: 104.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 841 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1109): * Single equations (assignments): 1101 * 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.00141/2.046, allocations: 0.5638 MB / 0.9326 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001363/2.047, allocations: 482.9 kB / 0.9331 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02837/2.076, allocations: 12.09 MB / 0.9449 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001075/2.076, allocations: 60.31 kB / 0.945 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/2.076, allocations: 7.656 kB / 0.945 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.741e-05/2.076, allocations: 17.59 kB / 0.945 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04821/2.124, allocations: 22.59 MB / 0.967 GB, free: 96.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.57e-05/2.125, allocations: 7.562 kB / 0.967 GB, free: 96.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003267/2.128, allocations: 0.5651 MB / 0.9676 GB, free: 96.83 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01735/2.145, allocations: 4.633 MB / 0.9721 GB, free: 96.15 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000818/2.146, allocations: 15.58 kB / 0.9721 GB, free: 96.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01939/2.165, allocations: 17.34 MB / 0.9891 GB, free: 87.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/2.165, allocations: 7 kB / 0.9891 GB, free: 87.63 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03069/2.196, allocations: 17.08 MB / 1.006 GB, free: 81.16 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00348/2.2, allocations: 1.194 MB / 1.007 GB, free: 80.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009752/2.201, allocations: 3.875 kB / 1.007 GB, free: 80.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002731/2.203, allocations: 206.3 kB / 1.007 GB, free: 80.58 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005931/2.204, allocations: 192 kB / 1.007 GB, free: 80.55 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002533/2.204, allocations: 88.66 kB / 1.007 GB, free: 80.54 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004696/2.209, allocations: 2.861 MB / 1.01 GB, free: 78.28 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.61e-07/2.209, allocations: 0 / 1.01 GB, free: 78.28 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00963/2.219, allocations: 1.492 MB / 1.012 GB, free: 76.79 MB / 0.5105 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 () * 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.0008344/2.22, allocations: 173.1 kB / 1.012 GB, free: 76.67 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01707/2.237, allocations: 10.07 MB / 1.022 GB, free: 67.82 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/2.237, allocations: 0 / 1.022 GB, free: 67.82 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004896/2.242, allocations: 3.856 MB / 1.025 GB, free: 64.27 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003693/2.245, allocations: 467.5 kB / 1.026 GB, free: 63.88 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03004/2.275, allocations: 13.38 MB / 1.039 GB, free: 51.93 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007757/2.283, allocations: 4.763 MB / 1.044 GB, free: 47.53 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008551/2.292, allocations: 3.098 MB / 1.047 GB, free: 44.62 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001887/2.294, allocations: 342.7 kB / 1.047 GB, free: 44.29 MB / 0.5105 GB Notification: Performance of SimCode: time 1.162e-06/2.294, allocations: 0 / 1.047 GB, free: 44.29 MB / 0.5105 GB Notification: Performance of Templates: time 0.4057/2.699, allocations: 67.96 MB / 1.113 GB, free: 107.5 MB / 0.5261 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