Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 190 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.5 MB / 244.1 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008418/0.0008417, allocations: 95.39 kB / 296.1 MB, free: 6.703 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.332/0.332, allocations: 44.82 MB / 393 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003164/0.0003165, allocations: 12 kB / 465.9 MB, free: 12.76 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3287, allocations: 62.95 MB / 0.5165 GB, free: 37.37 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1352/0.4639, allocations: 109.4 MB / 0.6233 GB, free: 12.02 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/0.4642, allocations: 79.97 kB / 0.6234 GB, free: 11.94 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.476/0.9402, allocations: 96.07 MB / 0.7172 GB, free: 99.97 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.9403, allocations: 2.625 kB / 0.7172 GB, free: 99.97 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002193/0.9405, allocations: 84.53 kB / 0.7173 GB, free: 99.97 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01692/0.9575, allocations: 4.917 MB / 0.7221 GB, free: 97.89 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.9575, allocations: 8.5 kB / 0.7221 GB, free: 97.89 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02025/0.9778, allocations: 5.089 MB / 0.727 GB, free: 97.23 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01131/0.9891, allocations: 4.673 MB / 0.7316 GB, free: 95.26 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003047/0.9895, allocations: 329 kB / 0.7319 GB, free: 95.13 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002303/0.9918, allocations: 449.3 kB / 0.7323 GB, free: 95 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01997/1.012, allocations: 10.97 MB / 0.7431 GB, free: 89.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001716/1.012, allocations: 78.7 kB / 0.7431 GB, free: 89.31 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006069/1.013, allocations: 210 kB / 0.7433 GB, free: 89.19 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001173/1.014, allocations: 1.024 MB / 0.7443 GB, free: 89 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01631/1.03, allocations: 9.189 MB / 0.7533 GB, free: 85.99 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04825/1.078, allocations: 47.55 MB / 0.7997 GB, free: 39.24 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009639/1.088, allocations: 4.13 MB / 0.8038 GB, free: 34.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002311/1.09, allocations: 1.826 MB / 0.8056 GB, free: 33.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0107/1.101, allocations: 7.425 MB / 0.8128 GB, free: 25.39 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/1.101, allocations: 51.56 kB / 0.8129 GB, free: 25.33 MB / 490.7 MB Notification: Performance of pre-optimization done (n=180): time 5.079e-06/1.101, allocations: 0 / 0.8129 GB, free: 25.33 MB / 490.7 MB Notification: Performance of matching and sorting (n=236): time 0.1457/1.247, allocations: 40.7 MB / 0.8526 GB, free: 0.5859 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/1.247, allocations: 205.9 kB / 0.8528 GB, free: 348 kB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009186/1.256, allocations: 4.259 MB / 0.857 GB, free: 12.06 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006226/1.257, allocations: 61.7 kB / 0.857 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002462/1.259, allocations: 3.238 MB / 0.8602 GB, free: 8.754 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001404/1.261, allocations: 0.8736 MB / 0.861 GB, free: 7.887 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006901/1.262, allocations: 124 kB / 0.8611 GB, free: 7.766 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004415/1.262, allocations: 0.5744 MB / 0.8617 GB, free: 7.184 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005046/1.267, allocations: 3.421 MB / 0.8651 GB, free: 3.758 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007567/1.275, allocations: 7.072 MB / 0.872 GB, free: 10.88 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3436/1.618, allocations: 11.29 MB / 0.883 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001409/1.619, allocations: 37.06 kB / 0.883 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=823) (initialization): time 0.03575/1.654, allocations: 15.46 MB / 0.8981 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/1.654, allocations: 63.47 kB / 0.8982 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001527/1.655, allocations: 127.8 kB / 0.8983 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02286/1.677, allocations: 5.917 MB / 0.9041 GB, free: 129.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005528/1.683, allocations: 1.437 MB / 0.9055 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03171/1.715, allocations: 25 MB / 0.9299 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006565/1.721, allocations: 393.7 kB / 0.9303 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001566/1.723, allocations: 373.7 kB / 0.9306 GB, free: 118.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * 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 (746): * Single equations (assignments): 741 * Array equations: 3 * 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 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006259/1.729, allocations: 2.226 MB / 0.9328 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001189/1.731, allocations: 406.9 kB / 0.9332 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0247/1.755, allocations: 10.82 MB / 0.9437 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.511e-05/1.755, allocations: 25.22 kB / 0.9438 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.412e-05/1.755, allocations: 12.72 kB / 0.9438 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-05/1.755, allocations: 9.375 kB / 0.9438 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04222/1.798, allocations: 20.2 MB / 0.9635 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.991e-05/1.798, allocations: 3.812 kB / 0.9635 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002006/1.8, allocations: 385.8 kB / 0.9639 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01753/1.817, allocations: 4.994 MB / 0.9688 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006481/1.818, allocations: 51.31 kB / 0.9688 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02345/1.841, allocations: 20.18 MB / 0.9885 GB, free: 83.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/1.842, allocations: 11.94 kB / 0.9885 GB, free: 83.43 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02683/1.868, allocations: 13.98 MB / 1.002 GB, free: 69.48 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001395/1.87, allocations: 447.1 kB / 1.003 GB, free: 69.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001437/1.871, allocations: 41.09 kB / 1.003 GB, free: 68.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002917/1.874, allocations: 167.8 kB / 1.003 GB, free: 68.82 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00089/1.875, allocations: 160.2 kB / 1.003 GB, free: 68.67 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004478/1.876, allocations: 60.78 kB / 1.003 GB, free: 68.61 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.007315/1.883, allocations: 2.672 MB / 1.006 GB, free: 65.93 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.112e-06/1.883, allocations: 0.7812 kB / 1.006 GB, free: 65.93 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008655/1.892, allocations: 1.329 MB / 1.007 GB, free: 64.62 MB / 0.5261 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 (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 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000942/1.893, allocations: 204.5 kB / 1.007 GB, free: 64.43 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0115/1.904, allocations: 7.96 MB / 1.015 GB, free: 56.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/1.904, allocations: 0 / 1.015 GB, free: 56.51 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004361/1.909, allocations: 3.119 MB / 1.018 GB, free: 53.38 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007189/1.916, allocations: 0.5155 MB / 1.018 GB, free: 52.88 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02444/1.94, allocations: 13.95 MB / 1.032 GB, free: 38.86 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005865/1.946, allocations: 3.508 MB / 1.035 GB, free: 35.34 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001509/1.948, allocations: 307.4 kB / 1.036 GB, free: 35.04 MB / 0.5261 GB Notification: Performance of SimCode: time 1.363e-06/1.948, allocations: 0 / 1.036 GB, free: 35.04 MB / 0.5261 GB Notification: Performance of Templates: time 0.4077/2.355, allocations: 108.9 MB / 1.142 GB, free: 116 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches